Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / MC / AMDGPU / sopc-err.s
blob8f74038e4f04d0d3b252422c455de8d5472e684a
1 // RUN: not llvm-mc -triple=amdgcn -mcpu=tonga %s 2>&1 | FileCheck -check-prefix=GCN -check-prefix=VI --implicit-check-not=error: %s
3 s_set_gpr_idx_on s0, s1
4 // VI: :[[@LINE-1]]:{{[0-9]+}}: error: expected absolute expression
6 s_set_gpr_idx_on s0, 16
7 // VI: :[[@LINE-1]]:{{[0-9]+}}: error: invalid immediate: only 4-bit values are legal
9 s_set_gpr_idx_on s0, -1
10 // VI: :[[@LINE-1]]:{{[0-9]+}}: error: invalid immediate: only 4-bit values are legal
12 s_set_gpr_idx_on s0, gpr_idx
13 // VI: :[[@LINE-1]]:{{[0-9]+}}: error: expected absolute expression
15 s_set_gpr_idx_on s0, gpr_idx(
16 // VI: :[[@LINE-1]]:{{[0-9]+}}: error: expected a VGPR index mode or a closing parenthesis
18 s_set_gpr_idx_on s0, gpr_idx(X)
19 // VI: :[[@LINE-1]]:{{[0-9]+}}: error: expected a VGPR index mode
21 s_set_gpr_idx_on s0, gpr_idx(SRC0,DST,SRC1,DST)
22 // VI: :[[@LINE-1]]:{{[0-9]+}}: error: duplicate VGPR index mode
24 s_set_gpr_idx_on s0, gpr_idx(DST
25 // VI: :[[@LINE-1]]:{{[0-9]+}}: error: expected a comma or a closing parenthesis
27 s_set_gpr_idx_on s0, gpr_idx(SRC0,
28 // VI: :[[@LINE-1]]:{{[0-9]+}}: error: expected a VGPR index mode
30 s_cmp_eq_i32 0x12345678, 0x12345679
31 // GCN: :[[@LINE-1]]:{{[0-9]+}}: error: only one unique literal operand is allowed
33 s_cmp_eq_u64 0x12345678, 0x12345679
34 // GCN: :[[@LINE-1]]:{{[0-9]+}}: error: only one unique literal operand is allowed