summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/X86/fast-isel-x86-64.ll
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2011-04-19 04:22:17 +0000
committerChris Lattner <sabre@nondot.org>2011-04-19 04:22:17 +0000
commit2c8a4c3b1b9806b7f7024e3a94aebfdd57e137da (patch)
treec004d5fefb1daa4db139a31344140c73e765ed85 /llvm/test/CodeGen/X86/fast-isel-x86-64.ll
parent176761e530a96289fb5fed331272bc08ad4acf5b (diff)
downloadbcm5719-llvm-2c8a4c3b1b9806b7f7024e3a94aebfdd57e137da.tar.gz
bcm5719-llvm-2c8a4c3b1b9806b7f7024e3a94aebfdd57e137da.zip
fix rdar://9297006 - fast isel bails out on trunc to i1 -> bools cry,
a common cause of fast isel rejects on c++ code. llvm-svn: 129748
Diffstat (limited to 'llvm/test/CodeGen/X86/fast-isel-x86-64.ll')
-rw-r--r--llvm/test/CodeGen/X86/fast-isel-x86-64.ll17
1 files changed, 17 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/X86/fast-isel-x86-64.ll b/llvm/test/CodeGen/X86/fast-isel-x86-64.ll
index bf886e079f6..fe8530ca296 100644
--- a/llvm/test/CodeGen/X86/fast-isel-x86-64.ll
+++ b/llvm/test/CodeGen/X86/fast-isel-x86-64.ll
@@ -127,3 +127,20 @@ define i32 @test11(i32 %X) nounwind {
; CHECK: sarl $3,
}
+
+; rdar://9297006 - Trunc to bool.
+define void @test12(i8 %tmp) nounwind ssp noredzone {
+entry:
+ %tobool = trunc i8 %tmp to i1
+ br i1 %tobool, label %if.then, label %if.end
+
+if.then: ; preds = %entry
+ call void @test12(i8 0) noredzone
+ br label %if.end
+
+if.end: ; preds = %if.then, %entry
+ ret void
+; CHECK: test12:
+; CHECK: testb $1,
+}
+
OpenPOWER on IntegriCloud