summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/X86/fast-isel.ll
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
commitefb7d2d03dc5ed96a304ab18b9407de5875ec5e3 (patch)
tree98a2ef3ebfa6a1700c170edefd7f126766fbee07 /llvm/test/CodeGen/X86/fast-isel.ll
parentd3582c9bda11b1b5e0eea19d3f093814a3eaf101 (diff)
downloadbcm5719-llvm-efb7d2d03dc5ed96a304ab18b9407de5875ec5e3.tar.gz
bcm5719-llvm-efb7d2d03dc5ed96a304ab18b9407de5875ec5e3.zip
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. llvm-svn: 55125
Diffstat (limited to 'llvm/test/CodeGen/X86/fast-isel.ll')
-rw-r--r--llvm/test/CodeGen/X86/fast-isel.ll7
1 files changed, 5 insertions, 2 deletions
diff --git a/llvm/test/CodeGen/X86/fast-isel.ll b/llvm/test/CodeGen/X86/fast-isel.ll
index ba7e861600a..f74e97e4d3c 100644
--- a/llvm/test/CodeGen/X86/fast-isel.ll
+++ b/llvm/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) {
OpenPOWER on IntegriCloud