diff options
author | Tom Stellard <thomas.stellard@amd.com> | 2013-09-28 02:50:50 +0000 |
---|---|---|
committer | Tom Stellard <thomas.stellard@amd.com> | 2013-09-28 02:50:50 +0000 |
commit | 9c598cfebcc3387676995873e65ae4fed96b3edc (patch) | |
tree | 1da7067848100b72dee7a60974c1734b2e468769 /test/CodeGen/R600/selectcc-opt.ll | |
parent | bbafe422d6f9036b03992ee5eacb5d09644c3267 (diff) | |
download | llvm-9c598cfebcc3387676995873e65ae4fed96b3edc.tar.gz llvm-9c598cfebcc3387676995873e65ae4fed96b3edc.tar.bz2 llvm-9c598cfebcc3387676995873e65ae4fed96b3edc.tar.xz |
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<vljn at ovi.com>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191603 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/R600/selectcc-opt.ll')
-rw-r--r-- | test/CodeGen/R600/selectcc-opt.ll | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/CodeGen/R600/selectcc-opt.ll b/test/CodeGen/R600/selectcc-opt.ll index 7e2d55950a..834c030695 100644 --- a/test/CodeGen/R600/selectcc-opt.ll +++ b/test/CodeGen/R600/selectcc-opt.ll @@ -6,7 +6,7 @@ define void @test_a(i32 addrspace(1)* %out, float %in) { entry: - %0 = fcmp ult float %in, 0.000000e+00 + %0 = fcmp olt float %in, 0.000000e+00 %1 = select i1 %0, float 1.000000e+00, float 0.000000e+00 %2 = fsub float -0.000000e+00, %1 %3 = fptosi float %2 to i32 @@ -34,7 +34,7 @@ ENDIF: ; CHECK-NEXT: ALU clause starting define void @test_b(i32 addrspace(1)* %out, float %in) { entry: - %0 = fcmp ult float %in, 0.0 + %0 = fcmp olt float %in, 0.0 %1 = select i1 %0, float 1.000000e+00, float 0.000000e+00 %2 = fsub float -0.000000e+00, %1 %3 = fptosi float %2 to i32 |