summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2006-05-23 06:41:23 +0000
committerEvan Cheng <evan.cheng@apple.com>2006-05-23 06:41:23 +0000
commit13fcf6f8113d56cb3ec2d0cf8208f29541dcfc12 (patch)
tree65f1cd2770eb10f96b7a65adedab5d0ffbe0cf57 /test
parentf6f9581983c85f8b4d2775b22870c1a4516fabdf (diff)
downloadllvm-13fcf6f8113d56cb3ec2d0cf8208f29541dcfc12.tar.gz
llvm-13fcf6f8113d56cb3ec2d0cf8208f29541dcfc12.tar.bz2
llvm-13fcf6f8113d56cb3ec2d0cf8208f29541dcfc12.tar.xz
Added a test case for FP equality check.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28434 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/CodeGen/X86/2006-05-22-FPSetEQ.ll9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/CodeGen/X86/2006-05-22-FPSetEQ.ll b/test/CodeGen/X86/2006-05-22-FPSetEQ.ll
new file mode 100644
index 0000000000..999716e393
--- /dev/null
+++ b/test/CodeGen/X86/2006-05-22-FPSetEQ.ll
@@ -0,0 +1,9 @@
+; RUN: llvm-as < %s | llc -march=x86 &&
+; RUN: llvm-as < %s | llc -march=x86 | grep 'setnp'
+; RUN: llvm-as < %s | llc -march=x86 -enable-unsafe-fp-math | not grep 'setnp'
+
+uint %test(float %f) {
+ %tmp = seteq float %f, 0.000000e+00
+ %tmp = cast bool %tmp to uint
+ ret uint %tmp
+}