1 // RUN
: not llvm-mc
-triple
=amdgcn
-mcpu
=gfx900
%s
2>&1 | FileCheck
-check-prefix
=GFX9
--implicit-check-
not=error
: %s
2 // RUN
: not llvm-mc
-triple
=amdgcn
-mcpu
=gfx1010
%s
2>&1 | FileCheck
-check-prefix
=GFX10
--implicit-check-
not=error
: %s
4 v_pk_add_f16 v1
, -17, v2
5 // GFX9
: :[[@LINE-
1]]:{{[0-9]+}}: error
: literal operands are
not supported
7 v_pk_add_f16 v1
, 65, v2
8 // GFX9
: :[[@LINE-
1]]:{{[0-9]+}}: error
: literal operands are
not supported
10 v_pk_add_f16 v1
, 64.0, v2
11 // GFX9
: :[[@LINE-
1]]:{{[0-9]+}}: error
: literal operands are
not supported
13 v_pk_add_f16 v1
, -0.15915494, v2
14 // GFX9
: :[[@LINE-
1]]:{{[0-9]+}}: error
: literal operands are
not supported
16 v_pk_add_f16 v1
, -0.0, v2
17 // GFX9
: :[[@LINE-
1]]:{{[0-9]+}}: error
: literal operands are
not supported
19 v_pk_add_f16 v1
, -32768, v2
20 // GFX9
: :[[@LINE-
1]]:{{[0-9]+}}: error
: literal operands are
not supported
22 v_pk_add_f16 v1
, 32767, v2
23 // GFX9
: :[[@LINE-
1]]:{{[0-9]+}}: error
: literal operands are
not supported
25 v_pk_add_f16 v1
, 0xffffffffffff000f, v2
26 // GFX9
: :[[@LINE-
1]]:{{[0-9]+}}: error
: literal operands are
not supported
28 v_pk_add_f16 v1
, 0x1000ffff, v2
29 // GFX9
: :[[@LINE-
1]]:{{[0-9]+}}: error
: literal operands are
not supported
31 v_pk_mad_i16 v5
, 0x3c00, 0x4000, 0x4400
32 // GFX9
: :[[@LINE-
1]]:{{[0-9]+}}: error
: literal operands are
not supported
33 // GFX10
: :[[@LINE-
2]]:{{[0-9]+}}: error
: only one unique literal operand is allowed
35 v_pk_mad_i16 v5
, 0x3c00, 0x4000, 2
36 // GFX9
: :[[@LINE-
1]]:{{[0-9]+}}: error
: literal operands are
not supported
37 // GFX10
: :[[@LINE-
2]]:{{[0-9]+}}: error
: only one unique literal operand is allowed
39 v_pk_mad_i16 v5
, 0x3c00, 3, 2
40 // GFX9
: :[[@LINE-
1]]:{{[0-9]+}}: error
: literal operands are
not supported
42 v_pk_mad_i16 v5
, 3, 0x3c00, 2
43 // GFX9
: :[[@LINE-
1]]:{{[0-9]+}}: error
: literal operands are
not supported
45 v_pk_mad_i16 v5
, 3, 2, 0x3c00
46 // GFX9
: :[[@LINE-
1]]:{{[0-9]+}}: error
: literal operands are
not supported