[llvm-commits] CVS: llvm/test/Regression/CodeGen/X86/2006-05-22-FPSetEQ.ll
Evan Cheng
evan.cheng at apple.com
Mon May 22 23:41:35 PDT 2006
Changes in directory llvm/test/Regression/CodeGen/X86:
2006-05-22-FPSetEQ.ll added (r1.1)
---
Log message:
Added a test case for FP equality check.
---
Diffs of the changes: (+9 -0)
2006-05-22-FPSetEQ.ll | 9 +++++++++
1 files changed, 9 insertions(+)
Index: llvm/test/Regression/CodeGen/X86/2006-05-22-FPSetEQ.ll
diff -c /dev/null llvm/test/Regression/CodeGen/X86/2006-05-22-FPSetEQ.ll:1.1
*** /dev/null Tue May 23 01:41:33 2006
--- llvm/test/Regression/CodeGen/X86/2006-05-22-FPSetEQ.ll Tue May 23 01:41:23 2006
***************
*** 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
+ }
More information about the llvm-commits
mailing list