From 7a0e6593d03bd2dd21c3ac7dcf189f1da86b16da Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Thu, 21 Aug 2008 17:25:26 +0000 Subject: MVT::getMVT uses iPTR for pointer types, while we need the actual intptr_t type in this case. FastISel can now select simple getelementptr instructions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55125 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CodeGen/X86/fast-isel.ll | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'test/CodeGen/X86/fast-isel.ll') diff --git a/test/CodeGen/X86/fast-isel.ll b/test/CodeGen/X86/fast-isel.ll index ba7e861..f74e97e 100644 --- a/test/CodeGen/X86/fast-isel.ll +++ b/test/CodeGen/X86/fast-isel.ll @@ -3,10 +3,11 @@ ; This tests very minimal fast-isel functionality. -define i32 @foo(i32* %p, i32* %q) { +define i32* @foo(i32* %p, i32* %q, i32** %z) { entry: %r = load i32* %p %s = load i32* %q + %y = load i32** %z br label %fast fast: @@ -17,10 +18,12 @@ fast: %t4 = or i32 %t3, %s %t5 = xor i32 %t4, %s %t6 = add i32 %t5, 2 + %t7 = getelementptr i32* %y, i32 1 + %t8 = getelementptr i32* %t7, i32 %t6 br label %exit exit: - ret i32 %t6 + ret i32* %t8 } define double @bar(double* %p, double* %q) { -- cgit v1.1