summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/X86/pr9127.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/X86/pr9127.ll')
-rw-r--r--test/CodeGen/X86/pr9127.ll12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/CodeGen/X86/pr9127.ll b/test/CodeGen/X86/pr9127.ll
new file mode 100644
index 0000000..45b0c6c
--- /dev/null
+++ b/test/CodeGen/X86/pr9127.ll
@@ -0,0 +1,12 @@
+; RUN: llc -march=x86-64 < %s | FileCheck %s
+
+define i8 @foobar(double %d, double* %x) {
+entry:
+ %tmp2 = load double* %x, align 8
+ %cmp = fcmp oeq double %tmp2, %d
+ %conv3 = zext i1 %cmp to i8
+ ret i8 %conv3
+}
+
+; test that the load is folded.
+; CHECK: ucomisd (%rdi), %xmm0
OpenPOWER on IntegriCloud