Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / MC / AMDGPU / gfx8_err_pos.s
blob1e8457d54049a64ebb1ac946ed178fe0b7296f15
1 // RUN: not llvm-mc -triple=amdgcn -mcpu=tonga %s 2>&1 | FileCheck %s --implicit-check-not=error: --strict-whitespace
3 //==============================================================================
4 // a16 modifier is not supported on this GPU
6 image_gather4 v[5:8], v1, s[8:15], s[12:15] dmask:0x1 a16
7 // CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: a16 modifier is not supported on this GPU
8 // CHECK-NEXT:{{^}}image_gather4 v[5:8], v1, s[8:15], s[12:15] dmask:0x1 a16
9 // CHECK-NEXT:{{^}} ^
11 image_gather4 v[5:8], v1, s[8:15], s[12:15] dmask:0x1 noa16
12 // CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: a16 modifier is not supported on this GPU
13 // CHECK-NEXT:{{^}}image_gather4 v[5:8], v1, s[8:15], s[12:15] dmask:0x1 noa16
14 // CHECK-NEXT:{{^}} ^
16 //==============================================================================
17 // expected a 20-bit unsigned offset
19 s_atc_probe 0x7, s[4:5], -1
20 // CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: expected a 20-bit unsigned offset
21 // CHECK-NEXT:{{^}}s_atc_probe 0x7, s[4:5], -1
22 // CHECK-NEXT:{{^}} ^
24 s_store_dword s1, s[2:3], 0xFFFFFFFFFFF00000
25 // CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: expected a 20-bit unsigned offset
26 // CHECK-NEXT:{{^}}s_store_dword s1, s[2:3], 0xFFFFFFFFFFF00000
27 // CHECK-NEXT:{{^}} ^
29 //==============================================================================
30 // flat offset modifier is not supported on this GPU
32 flat_atomic_add v[3:4], v5 inst_offset:8 slc
33 // CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: flat offset modifier is not supported on this GPU
34 // CHECK-NEXT:{{^}}flat_atomic_add v[3:4], v5 inst_offset:8 slc
35 // CHECK-NEXT:{{^}} ^
37 //==============================================================================
38 // image data size does not match dmask and tfe
40 image_gather4 v[5:6], v1, s[8:15], s[12:15] dmask:0x1 d16
41 // CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: image data size does not match dmask and tfe
42 // CHECK-NEXT:{{^}}image_gather4 v[5:6], v1, s[8:15], s[12:15] dmask:0x1 d16
43 // CHECK-NEXT:{{^}}^
45 //==============================================================================
46 // not a valid operand
48 v_cndmask_b32_sdwa v5, v1, sext(v2), vcc dst_sel:DWORD dst_unused:UNUSED_PRESERVE src0_sel:BYTE_0 src1_sel:WORD_0
49 // CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: not a valid operand.
50 // CHECK-NEXT:{{^}}v_cndmask_b32_sdwa v5, v1, sext(v2), vcc dst_sel:DWORD dst_unused:UNUSED_PRESERVE src0_sel:BYTE_0 src1_sel:WORD_0
51 // CHECK-NEXT:{{^}} ^