[PATCH] D70531: AMDGPU: Fix lit test checks with dag option
David Stuttard via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 21 03:41:32 PST 2019
dstuttard created this revision.
Herald added subscribers: llvm-commits, t-tye, tpr, yaxunl, nhaehnle, wdng, jvesely, kzhuravl.
Herald added a project: LLVM.
dstuttard added a reviewer: rampitec.
I was seeing some failures on a test with slightly different instruction
ordering. Adding in some DAG directives solved the issue.
Change-Id: If5a3d3969055fb19279943bd45161bb70a3dabce
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D70531
Files:
llvm/test/CodeGen/AMDGPU/llvm.amdgcn.mfma.ll
Index: llvm/test/CodeGen/AMDGPU/llvm.amdgcn.mfma.ll
===================================================================
--- llvm/test/CodeGen/AMDGPU/llvm.amdgcn.mfma.ll
+++ llvm/test/CodeGen/AMDGPU/llvm.amdgcn.mfma.ll
@@ -1295,13 +1295,13 @@
}
; GCN-LABEL: {{^}}test_mfma_f32_32x32x1f32_vecarg:
-; GCN-DAG: v_mov_b32_e32 [[TWO:v[0-9]+]], 2.0
-; GCN-DAG: v_mov_b32_e32 [[ONE:v[0-9]+]], 1.0
-; GCN-COUNT-8: global_load_dwordx4
-; GCN-COUNT-16: v_accvgpr_write_b32 a{{[0-9]+}}, v{{[0-9]+}}
-; GCN: v_mfma_f32_32x32x1f32 a[{{[0-9]+:[0-9]+}}], [[ONE]], [[TWO]], a[{{[0-9]+:[0-9]+}}] cbsz:1 abid:2 blgp:3
-; GCN-COUNT-32: v_accvgpr_read_b32
-; GCN-COUNT-8: global_store_dwordx4
+; GCN-DAG: v_mov_b32_e32 [[TWO:v[0-9]+]], 2.0
+; GCN-DAG: v_mov_b32_e32 [[ONE:v[0-9]+]], 1.0
+; GCN-DAG-COUNT-8: global_load_dwordx4
+; GCN-DAG-COUNT-16: v_accvgpr_write_b32 a{{[0-9]+}}, v{{[0-9]+}}
+; GCN: v_mfma_f32_32x32x1f32 a[{{[0-9]+:[0-9]+}}], [[ONE]], [[TWO]], a[{{[0-9]+:[0-9]+}}] cbsz:1 abid:2 blgp:3
+; GCN-COUNT-32: v_accvgpr_read_b32
+; GCN-COUNT-8: global_store_dwordx4
define amdgpu_kernel void @test_mfma_f32_32x32x1f32_vecarg(<32 x float> addrspace(1)* %arg) {
bb:
%tid = call i32 @llvm.amdgcn.workitem.id.x()
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D70531.230418.patch
Type: text/x-patch
Size: 1313 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191121/9473ee2d/attachment.bin>
More information about the llvm-commits
mailing list