summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/AMDGPU
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2018-07-15 15:14:40 +0000
committerSanjay Patel <spatel@rotateright.com>2018-07-15 15:14:40 +0000
commit810f51ec1bde01b0b52257b1fd76b95af0163a97 (patch)
tree731069d493f54e10c4bd901ebc282098f6729011 /llvm/test/CodeGen/AMDGPU
parent92d0c1c1290aa4e570cce83cf671d4d6d2d6d9c3 (diff)
downloadbcm5719-llvm-810f51ec1bde01b0b52257b1fd76b95af0163a97.tar.gz
bcm5719-llvm-810f51ec1bde01b0b52257b1fd76b95af0163a97.zip
[AMDGPU] adjusted test checks because minnum with NaN gets simplified
This was improved with rL337127, but I missed the failure in this test. I'm not sure what the expected result will be, so I've generalized it and added a FIXME comment. llvm-svn: 337128
Diffstat (limited to 'llvm/test/CodeGen/AMDGPU')
-rw-r--r--llvm/test/CodeGen/AMDGPU/fcanonicalize-elimination.ll9
1 files changed, 5 insertions, 4 deletions
diff --git a/llvm/test/CodeGen/AMDGPU/fcanonicalize-elimination.ll b/llvm/test/CodeGen/AMDGPU/fcanonicalize-elimination.ll
index 48e4828557e..a4db46b4750 100644
--- a/llvm/test/CodeGen/AMDGPU/fcanonicalize-elimination.ll
+++ b/llvm/test/CodeGen/AMDGPU/fcanonicalize-elimination.ll
@@ -379,11 +379,12 @@ define amdgpu_kernel void @test_fold_canonicalize_minnum_value_f32(float addrspa
ret void
}
+; FIXME: Should there be more checks here? minnum with NaN operand is simplified away.
+
; GCN-LABEL: test_fold_canonicalize_sNaN_value_f32:
-; GCN: v_min_f32_e32 [[V0:v[0-9]+]], 0x7f800001, v{{[0-9]+}}
-; GCN-FLUSH: v_mul_f32_e32 [[RESULT:v[0-9]+]], 1.0, [[V0]]
-; GCN-DENORM: v_max_f32_e32 [[RESULT:v[0-9]+]], [[V0]], [[V0]]
-; GCN: {{flat|global}}_store_dword v[{{[0-9:]+}}], [[RESULT]]
+; VI: v_add_u32_e32 v{{[0-9]+}}
+; GFX9: v_add_co_u32_e32 v{{[0-9]+}}
+; GCN: {{flat|global}}_store_dword v[{{[0-9:]+}}]
define amdgpu_kernel void @test_fold_canonicalize_sNaN_value_f32(float addrspace(1)* %arg) {
%id = tail call i32 @llvm.amdgcn.workitem.id.x()
%gep = getelementptr inbounds float, float addrspace(1)* %arg, i32 %id
OpenPOWER on IntegriCloud