summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2008-09-08 17:15:42 +0000
committerEvan Cheng <evan.cheng@apple.com>2008-09-08 17:15:42 +0000
commitdebdea0a6693193d8a2968616c9c51c0bbede4ae (patch)
tree367fbe6dca284953bceceeb732f9db1062aeef38 /test/CodeGen/X86
parent245d0ab166219708b511f04519d9e65d46a3df23 (diff)
downloadllvm-debdea0a6693193d8a2968616c9c51c0bbede4ae.tar.gz
llvm-debdea0a6693193d8a2968616c9c51c0bbede4ae.tar.bz2
llvm-debdea0a6693193d8a2968616c9c51c0bbede4ae.tar.xz
Handle calls which produce i1 results: promote to i8 but and it with 1 to get the low bit.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55925 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86')
-rw-r--r--test/CodeGen/X86/fast-isel-call.ll13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/CodeGen/X86/fast-isel-call.ll b/test/CodeGen/X86/fast-isel-call.ll
new file mode 100644
index 0000000000..9945746807
--- /dev/null
+++ b/test/CodeGen/X86/fast-isel-call.ll
@@ -0,0 +1,13 @@
+; RUN: llvm-as < %s | llc -fast-isel -march=x86 | grep and
+
+define i32 @t() nounwind {
+tak:
+ %tmp = call i1 @foo()
+ br i1 %tmp, label %BB1, label %BB2
+BB1:
+ ret i32 1
+BB2:
+ ret i32 0
+}
+
+declare i1 @foo() zeroext nounwind