From 0351ea2010e01419aa35e9674587a14cfe559f90 Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Sat, 28 Sep 2013 02:50:50 +0000 Subject: R600: Fix handling of NAN in comparison instructions We were completely ignoring the unorder/ordered attributes of condition codes and also incorrectly lowering seto and setuo. Reviewed-by: Vincent Lejeune llvm-svn: 191603 --- llvm/test/CodeGen/R600/fmax.ll | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/test/CodeGen/R600/fmax.ll') diff --git a/llvm/test/CodeGen/R600/fmax.ll b/llvm/test/CodeGen/R600/fmax.ll index 8b704e56484..be25c9ce8d8 100644 --- a/llvm/test/CodeGen/R600/fmax.ll +++ b/llvm/test/CodeGen/R600/fmax.ll @@ -5,7 +5,7 @@ define void @test() { %r0 = call float @llvm.R600.load.input(i32 0) %r1 = call float @llvm.R600.load.input(i32 1) - %r2 = fcmp uge float %r0, %r1 + %r2 = fcmp oge float %r0, %r1 %r3 = select i1 %r2, float %r0, float %r1 call void @llvm.AMDGPU.store.output(float %r3, i32 0) ret void -- cgit v1.2.3