summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-08-21 17:25:26 +0000
committerDan Gohman <gohman@apple.com>2008-08-21 17:25:26 +0000
commit7a0e6593d03bd2dd21c3ac7dcf189f1da86b16da (patch)
treeccf7606e9167f7ba4979a36ebfea4904ad6c53cd /test
parentad3460c3c968e33c5b9a07104b9fe5a5c27ff55b (diff)
downloadllvm-7a0e6593d03bd2dd21c3ac7dcf189f1da86b16da.tar.gz
llvm-7a0e6593d03bd2dd21c3ac7dcf189f1da86b16da.tar.bz2
llvm-7a0e6593d03bd2dd21c3ac7dcf189f1da86b16da.tar.xz
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')
-rw-r--r--test/CodeGen/X86/fast-isel.ll7
1 files changed, 5 insertions, 2 deletions
diff --git a/test/CodeGen/X86/fast-isel.ll b/test/CodeGen/X86/fast-isel.ll
index ba7e861600..f74e97e4d3 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) {