llvm-6502/test/CodeGen/X86/2008-05-01-InvalidOrdCompare.ll
Chris Lattner 6bf30ab347 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
2008-05-01 07:26:11 +00:00

16 lines
304 B
LLVM

; 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
}