xref: /llvm-project/llvm/test/MC/AMDGPU/gfx950_asm_vop3.s (revision 6da676ad35863ecea004ffa4059297a5c86dc6b2)
1// RUN: not llvm-mc -triple=amdgcn -mcpu=gfx906 -show-encoding %s 2>&1 | FileCheck -check-prefix=GFX906-ERR %s
2// RUN: not llvm-mc -triple=amdgcn -mcpu=gfx940 -show-encoding %s 2>&1 | FileCheck -check-prefix=GFX940-ERR %s
3// RUN: llvm-mc -triple=amdgcn -mcpu=gfx950 -show-encoding < %s | FileCheck --check-prefix=GFX950 %s
4// RUN: not llvm-mc -triple=amdgcn -mcpu=gfx1200 -show-encoding %s 2>&1 | FileCheck -check-prefix=GFX12-ERR %s
5
6v_cvt_pk_bf16_f32 v5, v1, v2
7// GFX906-ERR: error: instruction not supported on this GPU
8// GFX940-ERR: error: instruction not supported on this GPU
9// GFX950: v_cvt_pk_bf16_f32 v5, v1, v2            ; encoding: [0x05,0x00,0x68,0xd2,0x01,0x05,0x02,0x00]
10// GFX12-ERR: error: instruction not supported on this GPU
11
12v_cvt_pk_bf16_f32 v5, v255, v255
13// GFX906-ERR: error: instruction not supported on this GPU
14// GFX940-ERR: error: instruction not supported on this GPU
15// GFX950: v_cvt_pk_bf16_f32 v5, v255, v255        ; encoding: [0x05,0x00,0x68,0xd2,0xff,0xff,0x03,0x00]
16// GFX12-ERR: error: instruction not supported on this GPU
17
18v_cvt_pk_bf16_f32 v5, v1, s2
19// GFX906-ERR: error: instruction not supported on this GPU
20// GFX940-ERR: error: instruction not supported on this GPU
21// GFX950: v_cvt_pk_bf16_f32 v5, v1, s2           ; encoding: [0x05,0x00,0x68,0xd2,0x01,0x05,0x00,0x00]
22// GFX12-ERR: error: instruction not supported on this GPU
23
24v_cvt_pk_bf16_f32 v5, m0, 0.5
25// GFX906-ERR: error: instruction not supported on this GPU
26// GFX940-ERR: error: instruction not supported on this GPU
27// GFX950: v_cvt_pk_bf16_f32 v5, m0, 0.5           ; encoding: [0x05,0x00,0x68,0xd2,0x7c,0xe0,0x01,0x00]
28// GFX12-ERR: error: instruction not supported on this GPU
29
30v_cvt_pk_bf16_f32 v5, -1, exec_hi
31// GFX906-ERR: error: instruction not supported on this GPU
32// GFX940-ERR: error: instruction not supported on this GPU
33// GFX950: v_cvt_pk_bf16_f32 v5, -1, exec_hi       ; encoding: [0x05,0x00,0x68,0xd2,0xc1,0xfe,0x00,0x00]
34// GFX12-ERR: error: instruction not supported on this GPU
35
36v_cvt_pk_bf16_f32 v5, 0.5, m0 mul:2
37// GFX906-ERR: error: instruction not supported on this GPU
38// GFX940-ERR: error: instruction not supported on this GPU
39// GFX950: v_cvt_pk_bf16_f32 v5, 0.5, m0 mul:2     ; encoding: [0x05,0x00,0x68,0xd2,0xf0,0xf8,0x00,0x08]
40// GFX12-ERR: error: instruction not supported on this GPU
41
42v_bitop3_b32 v5, v1, v2, s3
43// GFX906-ERR: error: instruction not supported on this GPU
44// GFX940-ERR: error: instruction not supported on this GPU
45// GFX950: v_bitop3_b32 v5, v1, v2, s3             ; encoding: [0x05,0x00,0x34,0xd2,0x01,0x05,0x0e,0x00]
46// GFX12-ERR: error: instruction not supported on this GPU
47
48v_bitop3_b32 v5, v1, v2, s3 bitop3:161
49// GFX906-ERR: error: instruction not supported on this GPU
50// GFX940-ERR: error: instruction not supported on this GPU
51// GFX950: v_bitop3_b32 v5, v1, v2, s3 bitop3:0xa1 ; encoding: [0x05,0x04,0x34,0xd2,0x01,0x05,0x0e,0x30]
52// GFX12-ERR: error: instruction not supported on this GPU
53
54v_bitop3_b32 v5, m0, 0.5, m0 bitop3:5
55// GFX906-ERR: error: instruction not supported on this GPU
56// GFX940-ERR: error: instruction not supported on this GPU
57// GFX950: v_bitop3_b32 v5, m0, 0.5, m0 bitop3:5   ; encoding: [0x05,0x00,0x34,0xd2,0x7c,0xe0,0xf1,0xa1]
58// GFX12-ERR: error: instruction not supported on this GPU
59
60v_bitop3_b32 v5, 0.5, m0, 0.5 bitop3:101
61// GFX906-ERR: error: instruction not supported on this GPU
62// GFX940-ERR: error: instruction not supported on this GPU
63// GFX950: v_bitop3_b32 v5, 0.5, m0, 0.5 bitop3:0x65 ; encoding: [0x05,0x04,0x34,0xd2,0xf0,0xf8,0xc0,0xab]
64// GFX12-ERR: error: instruction not supported on this GPU
65
66v_bitop3_b16 v5, v1, v2, s3
67// GFX906-ERR: error: instruction not supported on this GPU
68// GFX940-ERR: error: instruction not supported on this GPU
69// GFX950: v_bitop3_b16 v5, v1, v2, s3             ; encoding: [0x05,0x00,0x33,0xd2,0x01,0x05,0x0e,0x00]
70// GFX12-ERR: error: instruction not supported on this GPU
71
72v_bitop3_b16 v5, v1, v2, s3 bitop3:161
73// GFX906-ERR: error: instruction not supported on this GPU
74// GFX940-ERR: error: instruction not supported on this GPU
75// GFX950: v_bitop3_b16 v5, v1, v2, s3 bitop3:0xa1 ; encoding: [0x05,0x04,0x33,0xd2,0x01,0x05,0x0e,0x30]
76// GFX12-ERR: error: instruction not supported on this GPU
77
78v_ashr_pk_i8_i32 v2, s4, v7, v8
79// GFX906-ERR: error: instruction not supported on this GPU
80// GFX940-ERR: error: instruction not supported on this GPU
81// GFX950: v_ashr_pk_i8_i32 v2, s4, v7, v8         ; encoding: [0x02,0x00,0x65,0xd2,0x04,0x0e,0x22,0x04]
82// GFX12-ERR: error: instruction not supported on this GPU
83
84v_ashr_pk_i8_i32 v2, v4, 0, 1
85// GFX906-ERR: error: instruction not supported on this GPU
86// GFX940-ERR: error: instruction not supported on this GPU
87// GFX950: v_ashr_pk_i8_i32 v2, v4, 0, 1           ; encoding: [0x02,0x00,0x65,0xd2,0x04,0x01,0x05,0x02]
88// GFX12-ERR: error: instruction not supported on this GPU
89
90v_ashr_pk_i8_i32 v2, v4, 3, s2
91// GFX906-ERR: error: instruction not supported on this GPU
92// GFX940-ERR: error: instruction not supported on this GPU
93// GFX950: v_ashr_pk_i8_i32 v2, v4, 3, s2          ; encoding: [0x02,0x00,0x65,0xd2,0x04,0x07,0x09,0x00]
94// GFX12-ERR: error: instruction not supported on this GPU
95
96v_ashr_pk_i8_i32 v2, s4, 4, v2
97// GFX906-ERR: error: instruction not supported on this GPU
98// GFX940-ERR: error: instruction not supported on this GPU
99// GFX950: v_ashr_pk_i8_i32 v2, s4, 4, v2          ; encoding: [0x02,0x00,0x65,0xd2,0x04,0x08,0x09,0x04]
100// GFX12-ERR: error: instruction not supported on this GPU
101
102v_ashr_pk_i8_i32 v2, v4, v7, 0.5
103// GFX906-ERR: error: instruction not supported on this GPU
104// GFX940-ERR: error: instruction not supported on this GPU
105// GFX950: v_ashr_pk_i8_i32 v2, v4, v7, 0.5        ; encoding: [0x02,0x00,0x65,0xd2,0x04,0x0f,0xc2,0x03]
106// GFX12-ERR: error: instruction not supported on this GPU
107
108v_ashr_pk_i8_i32 v1, v2, v3, v4 op_sel:[0,0,0,1]
109// GFX906-ERR: error: instruction not supported on this GPU
110// GFX940-ERR: error: instruction not supported on this GPU
111// GFX950: v_ashr_pk_i8_i32 v1, v2, v3, v4 op_sel:[0,0,0,1] ; encoding: [0x01,0x40,0x65,0xd2,0x02,0x07,0x12,0x04]
112// GFX12-ERR: error: instruction not supported on this GPU
113
114v_ashr_pk_u8_i32 v2, s4, v7, v8
115// GFX906-ERR: error: instruction not supported on this GPU
116// GFX940-ERR: error: instruction not supported on this GPU
117// GFX950: v_ashr_pk_u8_i32 v2, s4, v7, v8         ; encoding: [0x02,0x00,0x66,0xd2,0x04,0x0e,0x22,0x04]
118// GFX12-ERR: error: instruction not supported on this GPU
119
120v_ashr_pk_u8_i32 v2, v4, 0, 1
121// GFX906-ERR: error: instruction not supported on this GPU
122// GFX940-ERR: error: instruction not supported on this GPU
123// GFX950: v_ashr_pk_u8_i32 v2, v4, 0, 1           ; encoding: [0x02,0x00,0x66,0xd2,0x04,0x01,0x05,0x02]
124// GFX12-ERR: error: instruction not supported on this GPU
125
126v_ashr_pk_u8_i32 v2, v4, 3, s2
127// GFX906-ERR: error: instruction not supported on this GPU
128// GFX940-ERR: error: instruction not supported on this GPU
129// GFX950: v_ashr_pk_u8_i32 v2, v4, 3, s2          ; encoding: [0x02,0x00,0x66,0xd2,0x04,0x07,0x09,0x00]
130// GFX12-ERR: error: instruction not supported on this GPU
131
132v_ashr_pk_u8_i32 v2, s4, 4, v2
133// GFX906-ERR: error: instruction not supported on this GPU
134// GFX940-ERR: error: instruction not supported on this GPU
135// GFX950: v_ashr_pk_u8_i32 v2, s4, 4, v2          ; encoding: [0x02,0x00,0x66,0xd2,0x04,0x08,0x09,0x04]
136// GFX12-ERR: error: instruction not supported on this GPU
137
138v_ashr_pk_u8_i32 v2, v4, v7, -2.0
139// GFX906-ERR: error: instruction not supported on this GPU
140// GFX940-ERR: error: instruction not supported on this GPU
141// GFX950: v_ashr_pk_u8_i32 v2, v4, v7, -2.0       ; encoding: [0x02,0x00,0x66,0xd2,0x04,0x0f,0xd6,0x03]
142// GFX12-ERR: error: instruction not supported on this GPU
143
144v_ashr_pk_u8_i32 v1, v2, v3, v4 op_sel:[0,0,0,1]
145// GFX906-ERR: error: instruction not supported on this GPU
146// GFX940-ERR: error: instruction not supported on this GPU
147// GFX950: v_ashr_pk_u8_i32 v1, v2, v3, v4 op_sel:[0,0,0,1] ; encoding: [0x01,0x40,0x66,0xd2,0x02,0x07,0x12,0x04]
148// GFX12-ERR: error: instruction not supported on this GPU
149