aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/negative_zero.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/X86/negative_zero.ll')
-rw-r--r--test/CodeGen/X86/negative_zero.ll6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/CodeGen/X86/negative_zero.ll b/test/CodeGen/X86/negative_zero.ll
new file mode 100644
index 0000000000..3328a6afec
--- /dev/null
+++ b/test/CodeGen/X86/negative_zero.ll
@@ -0,0 +1,6 @@
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -mattr=-sse2,-sse3 | grep fchs
+
+
+double %T() {
+ ret double -1.0 ;; codegen as fld1/fchs, not as a load from cst pool
+}