diff options
-rw-r--r-- | test/CodeGen/X86/2006-05-22-FPSetEQ.ll | 9 |
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 +} |