aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/CodeGen/X86/2006-11-27-SelectLegalize.ll8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/CodeGen/X86/2006-11-27-SelectLegalize.ll b/test/CodeGen/X86/2006-11-27-SelectLegalize.ll
new file mode 100644
index 0000000000..368cc34936
--- /dev/null
+++ b/test/CodeGen/X86/2006-11-27-SelectLegalize.ll
@@ -0,0 +1,8 @@
+; RUN: llvm-as < %s | llc -march=x86 | grep test.*1
+; PR1016
+
+int %test(int %A, int %B, int %C) {
+ %a = trunc int %A to bool
+ %D = select bool %a, int %B, int %C
+ ret int %D
+}