1 // RUN
: not llvm-mc
-arch
=amdgcn
-mcpu
=tonga
%s
2>&1 | FileCheck
-check-prefix
=GCN
-check-prefix
=VI
%s
3 s_set_gpr_idx_on s0
, s1
4 // VI
: error
: expected absolute expression
6 s_set_gpr_idx_on s0
, 16
7 // VI
: error
: invalid immediate
: only
4-bit values are legal
9 s_set_gpr_idx_on s0
, -1
10 // VI
: error
: invalid immediate
: only
4-bit values are legal
12 s_set_gpr_idx_on s0
, gpr_idx
13 // VI
: error
: expected absolute expression
15 s_set_gpr_idx_on s0
, gpr_idx
(
16 // VI
: error
: expected
a VGPR index mode
or a closing parenthesis
18 s_set_gpr_idx_on s0
, gpr_idx
(X
)
19 // VI
: error
: expected
a VGPR index mode
21 s_set_gpr_idx_on s0
, gpr_idx
(SRC0
,DST,SRC1
,DST)
22 // VI
: error
: duplicate VGPR index mode
24 s_set_gpr_idx_on s0
, gpr_idx
(DST
25 // VI
: error
: expected
a comma
or a closing parenthesis
27 s_set_gpr_idx_on s0
, gpr_idx
(SRC0
,
28 // VI
: error
: expected
a VGPR index mode
30 s_cmp_eq_i32
0x12345678, 0x12345679
31 // GCN
: error
: only one literal operand is allowed
33 s_cmp_eq_u64
0x12345678, 0x12345679
34 // GCN
: error
: only one literal operand is allowed