llvm.org GIT mirror llvm / 24d52ec
[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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@337128 91177308-0d34-0410-b5e6-96231b3b80d8 Sanjay Patel 1 year, 7 months ago
1 changed file(s) with 5 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
378378 ret void
379379 }
380380
381 ; FIXME: Should there be more checks here? minnum with NaN operand is simplified away.
382
381383 ; GCN-LABEL: test_fold_canonicalize_sNaN_value_f32:
382 ; GCN: v_min_f32_e32 [[V0:v[0-9]+]], 0x7f800001, v{{[0-9]+}}
383 ; GCN-FLUSH: v_mul_f32_e32 [[RESULT:v[0-9]+]], 1.0, [[V0]]
384 ; GCN-DENORM: v_max_f32_e32 [[RESULT:v[0-9]+]], [[V0]], [[V0]]
385 ; GCN: {{flat|global}}_store_dword v[{{[0-9:]+}}], [[RESULT]]
384 ; VI: v_add_u32_e32 v{{[0-9]+}}
385 ; GFX9: v_add_co_u32_e32 v{{[0-9]+}}
386 ; GCN: {{flat|global}}_store_dword v[{{[0-9:]+}}]
386387 define amdgpu_kernel void @test_fold_canonicalize_sNaN_value_f32(float addrspace(1)* %arg) {
387388 %id = tail call i32 @llvm.amdgcn.workitem.id.x()
388389 %gep = getelementptr inbounds float, float addrspace(1)* %arg, i32 %id