1 // RUN
: llvm-mc
-arch
=amdgcn
-mcpu
=gfx950
-show-encoding
%s | FileCheck
--check-prefix
=GFX950
%s
2 // RUN
: not llvm-mc
-triple
=amdgcn
-mcpu
=gfx940
%s
2>&1 | FileCheck
-check-prefix
=GFX940-ERR
--strict-whitespace
%s
4 v_cvt_pk_bf16_f32 v5
, v1
, v2
5 // GFX950
: v_cvt_pk_bf16_f32 v5
, v1
, v2 ; encoding
: [0x05,0x00,0x68,0xd2,0x01,0x05,0x02,0x00]
6 // GFX940-ERR
: :[[@LINE-
2]]:{{[0-9]+}}: error
: instruction
not supported on this GPU
8 v_cvt_pk_bf16_f32 v5
, v255
, v255
9 // GFX950
: v_cvt_pk_bf16_f32 v5
, v255
, v255 ; encoding
: [0x05,0x00,0x68,0xd2,0xff,0xff,0x03,0x00]
10 // GFX940-ERR
: :[[@LINE-
2]]:{{[0-9]+}}: error
: instruction
not supported on this GPU
12 v_cvt_pk_bf16_f32 v5
, v1
, s2
13 // GFX950
: v_cvt_pk_bf16_f32 v5
, v1
, s2 ; encoding
: [0x05,0x00,0x68,0xd2,0x01,0x05,0x00,0x00]
14 // GFX940-ERR
: :[[@LINE-
2]]:{{[0-9]+}}: error
: instruction
not supported on this GPU
16 v_cvt_pk_bf16_f32 v5
, m0
, 0.5
17 // GFX950
: v_cvt_pk_bf16_f32 v5
, m0
, 0.5 ; encoding
: [0x05,0x00,0x68,0xd2,0x7c,0xe0,0x01,0x00]
18 // GFX940-ERR
: :[[@LINE-
2]]:{{[0-9]+}}: error
: instruction
not supported on this GPU
20 v_cvt_pk_bf16_f32 v5
, -1, exec_hi
21 // GFX950
: v_cvt_pk_bf16_f32 v5
, -1, exec_hi ; encoding
: [0x05,0x00,0x68,0xd2,0xc1,0xfe,0x00,0x00]
22 // GFX940-ERR
: :[[@LINE-
2]]:{{[0-9]+}}: error
: instruction
not supported on this GPU
24 v_cvt_pk_bf16_f32 v5
, 0.5, m0
mul:2
25 // GFX950
: v_cvt_pk_bf16_f32 v5
, 0.5, m0
mul:2 ; encoding
: [0x05,0x00,0x68,0xd2,0xf0,0xf8,0x00,0x08]
26 // GFX940-ERR
: :[[@LINE-
2]]:{{[0-9]+}}: error
: instruction
not supported on this GPU