diff options
author | Chris Lattner <sabre@nondot.org> | 2008-05-01 07:26:11 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-05-01 07:26:11 +0000 |
commit | 6bf30ab347bc00a8dc7115244298d78f7721ea34 (patch) | |
tree | 00f33e60ead2644b9b718b7732797d76eeac827c /test/CodeGen/X86/2008-05-01-InvalidOrdCompare.ll | |
parent | 56b4f2bdf6072651d44d8e48a8dce14101e70b0b (diff) | |
download | llvm-6bf30ab347bc00a8dc7115244298d78f7721ea34.tar.gz llvm-6bf30ab347bc00a8dc7115244298d78f7721ea34.tar.bz2 llvm-6bf30ab347bc00a8dc7115244298d78f7721ea34.tar.xz |
don't randomly miscompile seto/setuo just because we are in
ffastmath mode. This fixes rdar://5902801, a miscompilation
of gcc.dg/builtins-8.c.
Bill, please pull this into Tak.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50523 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/2008-05-01-InvalidOrdCompare.ll')
-rw-r--r-- | test/CodeGen/X86/2008-05-01-InvalidOrdCompare.ll | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/CodeGen/X86/2008-05-01-InvalidOrdCompare.ll b/test/CodeGen/X86/2008-05-01-InvalidOrdCompare.ll new file mode 100644 index 0000000000..dae3b83b1a --- /dev/null +++ b/test/CodeGen/X86/2008-05-01-InvalidOrdCompare.ll @@ -0,0 +1,15 @@ +; RUN: llvm-as < %s | llc -enable-unsafe-fp-math | grep jnp +; rdar://5902801 + +declare void @test2() + +define i32 @test(double %p) nounwind { + %tmp5 = fcmp uno double %p, 0.000000e+00 + br i1 %tmp5, label %bb, label %UnifiedReturnBlock +bb: + call void @test2() + ret i32 17 +UnifiedReturnBlock: + ret i32 42 +} + |