diff options
author | Dan Gohman <gohman@apple.com> | 2008-08-21 17:25:26 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-08-21 17:25:26 +0000 |
commit | 7a0e6593d03bd2dd21c3ac7dcf189f1da86b16da (patch) | |
tree | ccf7606e9167f7ba4979a36ebfea4904ad6c53cd /test/CodeGen | |
parent | ad3460c3c968e33c5b9a07104b9fe5a5c27ff55b (diff) | |
download | external_llvm-7a0e6593d03bd2dd21c3ac7dcf189f1da86b16da.zip external_llvm-7a0e6593d03bd2dd21c3ac7dcf189f1da86b16da.tar.gz external_llvm-7a0e6593d03bd2dd21c3ac7dcf189f1da86b16da.tar.bz2 |
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
Diffstat (limited to 'test/CodeGen')
-rw-r--r-- | test/CodeGen/X86/fast-isel.ll | 7 |
1 files changed, 5 insertions, 2 deletions
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) { |