|
3 | 3 | ; RUN: llc -mtriple=amdgcn -mcpu=gfx942 -stress-regalloc=10 -verify-machineinstrs < %s | FileCheck -enable-var-scope --check-prefixes=GCN,GFX940,AGPRCD %s
|
4 | 4 | ; RUN: llc -mtriple=amdgcn -mcpu=gfx942 -stress-regalloc=10 -global-isel -verify-machineinstrs < %s | FileCheck -enable-var-scope --check-prefixes=GCN,GISEL,AGPRCD %s
|
5 | 5 |
|
| 6 | +; RUN: llc -mtriple=amdgcn -mcpu=gfx950 -verify-machineinstrs < %s | FileCheck -enable-var-scope --check-prefixes=GCN,GFX940,VGPRCD %s |
| 7 | +; RUN: llc -mtriple=amdgcn -mcpu=gfx950 -global-isel -verify-machineinstrs < %s | FileCheck -enable-var-scope --check-prefixes=GCN,GISEL,VGPRCD %s |
| 8 | +; RUN: llc -mtriple=amdgcn -mcpu=gfx950 -stress-regalloc=10 -verify-machineinstrs < %s | FileCheck -enable-var-scope --check-prefixes=GCN,GFX940,AGPRCD %s |
| 9 | +; RUN: llc -mtriple=amdgcn -mcpu=gfx950 -stress-regalloc=10 -global-isel -verify-machineinstrs < %s | FileCheck -enable-var-scope --check-prefixes=GCN,GISEL,AGPRCD %s |
| 10 | + |
6 | 11 | declare <4 x i32> @llvm.amdgcn.mfma.i32.16x16x32.i8(i64, i64, <4 x i32>, i32, i32, i32)
|
7 | 12 | declare <16 x i32> @llvm.amdgcn.mfma.i32.32x32x16.i8(i64, i64, <16 x i32>, i32, i32, i32)
|
8 |
| -declare <4 x float> @llvm.amdgcn.mfma.f32.16x16x8.xf32(<2 x float>, <2 x float>, <4 x float>, i32, i32, i32) |
9 |
| -declare <16 x float> @llvm.amdgcn.mfma.f32.32x32x4.xf32(<2 x float>, <2 x float>, <16 x float>, i32, i32, i32) |
10 | 13 | declare <4 x float> @llvm.amdgcn.mfma.f32.16x16x32.bf8.bf8(i64, i64, <4 x float>, i32, i32, i32)
|
11 | 14 | declare <4 x float> @llvm.amdgcn.mfma.f32.16x16x32.bf8.fp8(i64, i64, <4 x float>, i32, i32, i32)
|
12 | 15 | declare <4 x float> @llvm.amdgcn.mfma.f32.16x16x32.fp8.bf8(i64, i64, <4 x float>, i32, i32, i32)
|
|
66 | 69 | ret void
|
67 | 70 | }
|
68 | 71 |
|
69 |
| -; GCN-LABEL: {{^}}test_mfma_f32_16x16x8xf32: |
70 |
| -; GFX940-DAG: v_mov_b32_e32 v[[ONE:[0-9]+]], 1.0 |
71 |
| -; GFX940-DAG: v_mov_b32_e32 v[[TWO:[0-9]+]], 2.0 |
72 |
| -; GFX940-DAG: v_mov_b32_e32 v[[THREE:[0-9]+]], 0x40400000 |
73 |
| -; GFX940-DAG: v_mov_b32_e32 v[[FOUR:[0-9]+]], 4.0 |
74 |
| -; GCN-COUNT-4: v_accvgpr_write_b32 a{{[0-9]+}}, s{{[0-9]+}} |
75 |
| -; GFX940: v_mfma_f32_16x16x8_xf32 a[{{[0-9]+:[0-9]+}}], v[[[ONE]]:[[TWO]]], v[[[THREE]]:[[FOUR]]], a[{{[0-9]+:[0-9]+}}] cbsz:1 abid:2 blgp:3 |
76 |
| -; GISEL: v_mfma_f32_16x16x8_xf32 a[{{[0-9]+:[0-9]+}}], v[{{[0-9]+:[0-9]+}}], v[{{[0-9]+:[0-9]+}}], a[{{[0-9]+:[0-9]+}}] cbsz:1 abid:2 blgp:3 |
77 |
| -; GCN-NOT: v_accvgpr_read_b32 |
78 |
| -; GCN: global_store_dwordx4 v{{[0-9]+}}, a[{{[0-9:]+}}] |
79 |
| -define amdgpu_kernel void @test_mfma_f32_16x16x8xf32(ptr addrspace(1) %arg) #0 { |
80 |
| -bb: |
81 |
| - %in.1 = load <4 x float>, ptr addrspace(1) %arg |
82 |
| - %mai.1 = tail call <4 x float> @llvm.amdgcn.mfma.f32.16x16x8.xf32(<2 x float> <float 1.0, float 2.0>, <2 x float> <float 3.0, float 4.0>, <4 x float> %in.1, i32 1, i32 2, i32 3) |
83 |
| - store <4 x float> %mai.1, ptr addrspace(1) %arg |
84 |
| - ret void |
85 |
| -} |
86 |
| - |
87 |
| -; GCN-LABEL: {{^}}test_mfma_f32_32x32x4xf32: |
88 |
| -; GFX940-DAG: v_mov_b32_e32 v[[ONE:[0-9]+]], 1.0 |
89 |
| -; GFX940-DAG: v_mov_b32_e32 v[[TWO:[0-9]+]], 2.0 |
90 |
| -; GFX940-DAG: v_mov_b32_e32 v[[THREE:[0-9]+]], 0x40400000 |
91 |
| -; GFX940-DAG: v_mov_b32_e32 v[[FOUR:[0-9]+]], 4.0 |
92 |
| -; GCN-COUNT-4: v_accvgpr_write_b32 a{{[0-9]+}}, s{{[0-9]+}} |
93 |
| -; GFX940: v_mfma_f32_32x32x4_xf32 a[{{[0-9]+:[0-9]+}}], v[[[ONE]]:[[TWO]]], v[[[THREE]]:[[FOUR]]], a[{{[0-9]+:[0-9]+}}] cbsz:1 abid:2 blgp:3 |
94 |
| -; GISEL: v_mfma_f32_32x32x4_xf32 a[{{[0-9]+:[0-9]+}}], v[{{[0-9]+:[0-9]+}}], v[{{[0-9]+:[0-9]+}}], a[{{[0-9]+:[0-9]+}}] cbsz:1 abid:2 blgp:3 |
95 |
| -; GCN-NOT: v_accvgpr_read_b32 |
96 |
| -; GCN: global_store_dwordx4 v{{[0-9]+}}, a[{{[0-9:]+}}] |
97 |
| -define amdgpu_kernel void @test_mfma_f32_32x32x4xf32(ptr addrspace(1) %arg) #0 { |
98 |
| -bb: |
99 |
| - %in.1 = load <16 x float>, ptr addrspace(1) %arg |
100 |
| - %mai.1 = tail call <16 x float> @llvm.amdgcn.mfma.f32.32x32x4.xf32(<2 x float> <float 1.0, float 2.0>, <2 x float> <float 3.0, float 4.0>, <16 x float> %in.1, i32 1, i32 2, i32 3) |
101 |
| - store <16 x float> %mai.1, ptr addrspace(1) %arg |
102 |
| - ret void |
103 |
| -} |
104 |
| - |
105 | 72 | ; GCN-LABEL: {{^}}test_mfma_f32_16x16x32_bf8_bf8:
|
106 | 73 | ; GFX940-DAG: v_mov_b32_e32 v[[ONE:[0-9]+]], 1
|
107 | 74 | ; GFX940-DAG: v_mov_b32_e32 v[[TWO:[0-9]+]], 2
|
|
0 commit comments