268 lines · plain
1// RUN: llvm-mc -triple=amdgcn -mcpu=fiji -show-encoding %s | FileCheck -check-prefix=VI %s2// RUN: not llvm-mc -triple=amdgcn -mcpu=tahiti %s 2>&1 | FileCheck -check-prefix=NOSICI --implicit-check-not=error: %s3// RUN: not llvm-mc -triple=amdgcn -mcpu=hawaii %s 2>&1 | FileCheck -check-prefix=NOSICI --implicit-check-not=error: %s4 5v_cmp_class_f16 vcc, v2, v46// VI: v_cmp_class_f16_e32 vcc, v2, v4 ; encoding: [0x02,0x09,0x28,0x7c]7// NOSICI: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU8 9v_cmpx_class_f16 vcc, v2, v410// VI: v_cmpx_class_f16_e32 vcc, v2, v4 ; encoding: [0x02,0x09,0x2a,0x7c]11// NOSICI: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU12 13v_cmp_f_f16 vcc, v2, v414// VI: v_cmp_f_f16_e32 vcc, v2, v4 ; encoding: [0x02,0x09,0x40,0x7c]15// NOSICI: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU16 17v_cmp_lt_f16 vcc, v2, v418// VI: v_cmp_lt_f16_e32 vcc, v2, v4 ; encoding: [0x02,0x09,0x42,0x7c]19// NOSICI: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU20 21v_cmp_eq_f16 vcc, v2, v422// VI: v_cmp_eq_f16_e32 vcc, v2, v4 ; encoding: [0x02,0x09,0x44,0x7c]23// NOSICI: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU24 25v_cmp_le_f16 vcc, v2, v426// VI: v_cmp_le_f16_e32 vcc, v2, v4 ; encoding: [0x02,0x09,0x46,0x7c]27// NOSICI: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU28 29v_cmp_gt_f16 vcc, v2, v430// VI: v_cmp_gt_f16_e32 vcc, v2, v4 ; encoding: [0x02,0x09,0x48,0x7c]31// NOSICI: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU32 33v_cmp_lg_f16 vcc, v2, v434// VI: v_cmp_lg_f16_e32 vcc, v2, v4 ; encoding: [0x02,0x09,0x4a,0x7c]35// NOSICI: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU36 37v_cmp_ge_f16 vcc, v2, v438// VI: v_cmp_ge_f16_e32 vcc, v2, v4 ; encoding: [0x02,0x09,0x4c,0x7c]39// NOSICI: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU40 41v_cmp_o_f16 vcc, v2, v442// VI: v_cmp_o_f16_e32 vcc, v2, v4 ; encoding: [0x02,0x09,0x4e,0x7c]43// NOSICI: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU44 45v_cmp_u_f16 vcc, v2, v446// VI: v_cmp_u_f16_e32 vcc, v2, v4 ; encoding: [0x02,0x09,0x50,0x7c]47// NOSICI: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU48 49v_cmp_nge_f16 vcc, v2, v450// VI: v_cmp_nge_f16_e32 vcc, v2, v4 ; encoding: [0x02,0x09,0x52,0x7c]51// NOSICI: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU52 53v_cmp_nlg_f16 vcc, v2, v454// VI: v_cmp_nlg_f16_e32 vcc, v2, v4 ; encoding: [0x02,0x09,0x54,0x7c]55// NOSICI: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU56 57v_cmp_ngt_f16 vcc, v2, v458// VI: v_cmp_ngt_f16_e32 vcc, v2, v4 ; encoding: [0x02,0x09,0x56,0x7c]59// NOSICI: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU60 61v_cmp_nle_f16 vcc, v2, v462// VI: v_cmp_nle_f16_e32 vcc, v2, v4 ; encoding: [0x02,0x09,0x58,0x7c]63// NOSICI: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU64 65v_cmp_neq_f16 vcc, v2, v466// VI: v_cmp_neq_f16_e32 vcc, v2, v4 ; encoding: [0x02,0x09,0x5a,0x7c]67// NOSICI: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU68 69v_cmp_nlt_f16 vcc, v2, v470// VI: v_cmp_nlt_f16_e32 vcc, v2, v4 ; encoding: [0x02,0x09,0x5c,0x7c]71// NOSICI: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU72 73v_cmp_tru_f16 vcc, v2, v474// VI: v_cmp_tru_f16_e32 vcc, v2, v4 ; encoding: [0x02,0x09,0x5e,0x7c]75// NOSICI: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU76 77v_cmpx_f_f16 vcc, v2, v478// VI: v_cmpx_f_f16_e32 vcc, v2, v4 ; encoding: [0x02,0x09,0x60,0x7c]79// NOSICI: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU80 81v_cmpx_lt_f16 vcc, v2, v482// VI: v_cmpx_lt_f16_e32 vcc, v2, v4 ; encoding: [0x02,0x09,0x62,0x7c]83// NOSICI: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU84 85v_cmpx_eq_f16 vcc, v2, v486// VI: v_cmpx_eq_f16_e32 vcc, v2, v4 ; encoding: [0x02,0x09,0x64,0x7c]87// NOSICI: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU88 89v_cmpx_le_f16 vcc, v2, v490// VI: v_cmpx_le_f16_e32 vcc, v2, v4 ; encoding: [0x02,0x09,0x66,0x7c]91// NOSICI: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU92 93v_cmpx_gt_f16 vcc, v2, v494// VI: v_cmpx_gt_f16_e32 vcc, v2, v4 ; encoding: [0x02,0x09,0x68,0x7c]95// NOSICI: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU96 97v_cmpx_lg_f16 vcc, v2, v498// VI: v_cmpx_lg_f16_e32 vcc, v2, v4 ; encoding: [0x02,0x09,0x6a,0x7c]99// NOSICI: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU100 101v_cmpx_ge_f16 vcc, v2, v4102// VI: v_cmpx_ge_f16_e32 vcc, v2, v4 ; encoding: [0x02,0x09,0x6c,0x7c]103// NOSICI: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU104 105v_cmpx_o_f16 vcc, v2, v4106// VI: v_cmpx_o_f16_e32 vcc, v2, v4 ; encoding: [0x02,0x09,0x6e,0x7c]107// NOSICI: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU108 109v_cmpx_u_f16 vcc, v2, v4110// VI: v_cmpx_u_f16_e32 vcc, v2, v4 ; encoding: [0x02,0x09,0x70,0x7c]111// NOSICI: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU112 113v_cmpx_nge_f16 vcc, v2, v4114// VI: v_cmpx_nge_f16_e32 vcc, v2, v4 ; encoding: [0x02,0x09,0x72,0x7c]115// NOSICI: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU116 117v_cmpx_nlg_f16 vcc, v2, v4118// VI: v_cmpx_nlg_f16_e32 vcc, v2, v4 ; encoding: [0x02,0x09,0x74,0x7c]119// NOSICI: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU120 121v_cmpx_ngt_f16 vcc, v2, v4122// VI: v_cmpx_ngt_f16_e32 vcc, v2, v4 ; encoding: [0x02,0x09,0x76,0x7c]123// NOSICI: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU124 125v_cmpx_nle_f16 vcc, v2, v4126// VI: v_cmpx_nle_f16_e32 vcc, v2, v4 ; encoding: [0x02,0x09,0x78,0x7c]127// NOSICI: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU128 129v_cmpx_neq_f16 vcc, v2, v4130// VI: v_cmpx_neq_f16_e32 vcc, v2, v4 ; encoding: [0x02,0x09,0x7a,0x7c]131// NOSICI: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU132 133v_cmpx_nlt_f16 vcc, v2, v4134// VI: v_cmpx_nlt_f16_e32 vcc, v2, v4 ; encoding: [0x02,0x09,0x7c,0x7c]135// NOSICI: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU136 137v_cmpx_tru_f16 vcc, v2, v4138// VI: v_cmpx_tru_f16_e32 vcc, v2, v4 ; encoding: [0x02,0x09,0x7e,0x7c]139// NOSICI: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU140 141v_cmp_f_i16 vcc, v2, v4142// VI: v_cmp_f_i16_e32 vcc, v2, v4 ; encoding: [0x02,0x09,0x40,0x7d]143// NOSICI: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU144 145v_cmp_lt_i16 vcc, v2, v4146// VI: v_cmp_lt_i16_e32 vcc, v2, v4 ; encoding: [0x02,0x09,0x42,0x7d]147// NOSICI: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU148 149v_cmp_eq_i16 vcc, v2, v4150// VI: v_cmp_eq_i16_e32 vcc, v2, v4 ; encoding: [0x02,0x09,0x44,0x7d]151// NOSICI: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU152 153v_cmp_le_i16 vcc, v2, v4154// VI: v_cmp_le_i16_e32 vcc, v2, v4 ; encoding: [0x02,0x09,0x46,0x7d]155// NOSICI: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU156 157v_cmp_gt_i16 vcc, v2, v4158// VI: v_cmp_gt_i16_e32 vcc, v2, v4 ; encoding: [0x02,0x09,0x48,0x7d]159// NOSICI: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU160 161v_cmp_ne_i16 vcc, v2, v4162// VI: v_cmp_ne_i16_e32 vcc, v2, v4 ; encoding: [0x02,0x09,0x4a,0x7d]163// NOSICI: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU164 165v_cmp_ge_i16 vcc, v2, v4166// VI: v_cmp_ge_i16_e32 vcc, v2, v4 ; encoding: [0x02,0x09,0x4c,0x7d]167// NOSICI: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU168 169v_cmp_t_i16 vcc, v2, v4170// VI: v_cmp_t_i16_e32 vcc, v2, v4 ; encoding: [0x02,0x09,0x4e,0x7d]171// NOSICI: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU172 173v_cmp_f_u16 vcc, v2, v4174// VI: v_cmp_f_u16_e32 vcc, v2, v4 ; encoding: [0x02,0x09,0x50,0x7d]175// NOSICI: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU176 177v_cmp_lt_u16 vcc, v2, v4178// VI: v_cmp_lt_u16_e32 vcc, v2, v4 ; encoding: [0x02,0x09,0x52,0x7d]179// NOSICI: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU180 181v_cmp_eq_u16 vcc, v2, v4182// VI: v_cmp_eq_u16_e32 vcc, v2, v4 ; encoding: [0x02,0x09,0x54,0x7d]183// NOSICI: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU184 185v_cmp_le_u16 vcc, v2, v4186// VI: v_cmp_le_u16_e32 vcc, v2, v4 ; encoding: [0x02,0x09,0x56,0x7d]187// NOSICI: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU188 189v_cmp_gt_u16 vcc, v2, v4190// VI: v_cmp_gt_u16_e32 vcc, v2, v4 ; encoding: [0x02,0x09,0x58,0x7d]191// NOSICI: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU192 193v_cmp_ne_u16 vcc, v2, v4194// VI: v_cmp_ne_u16_e32 vcc, v2, v4 ; encoding: [0x02,0x09,0x5a,0x7d]195// NOSICI: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU196 197v_cmp_ge_u16 vcc, v2, v4198// VI: v_cmp_ge_u16_e32 vcc, v2, v4 ; encoding: [0x02,0x09,0x5c,0x7d]199// NOSICI: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU200 201v_cmp_t_u16 vcc, v2, v4202// VI: v_cmp_t_u16_e32 vcc, v2, v4 ; encoding: [0x02,0x09,0x5e,0x7d]203// NOSICI: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU204 205v_cmpx_f_i16 vcc, v2, v4206// VI: v_cmpx_f_i16_e32 vcc, v2, v4 ; encoding: [0x02,0x09,0x60,0x7d]207// NOSICI: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU208 209v_cmpx_lt_i16 vcc, v2, v4210// VI: v_cmpx_lt_i16_e32 vcc, v2, v4 ; encoding: [0x02,0x09,0x62,0x7d]211// NOSICI: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU212 213v_cmpx_eq_i16 vcc, v2, v4214// VI: v_cmpx_eq_i16_e32 vcc, v2, v4 ; encoding: [0x02,0x09,0x64,0x7d]215// NOSICI: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU216 217v_cmpx_le_i16 vcc, v2, v4218// VI: v_cmpx_le_i16_e32 vcc, v2, v4 ; encoding: [0x02,0x09,0x66,0x7d]219// NOSICI: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU220 221v_cmpx_gt_i16 vcc, v2, v4222// VI: v_cmpx_gt_i16_e32 vcc, v2, v4 ; encoding: [0x02,0x09,0x68,0x7d]223// NOSICI: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU224 225v_cmpx_ne_i16 vcc, v2, v4226// VI: v_cmpx_ne_i16_e32 vcc, v2, v4 ; encoding: [0x02,0x09,0x6a,0x7d]227// NOSICI: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU228 229v_cmpx_ge_i16 vcc, v2, v4230// VI: v_cmpx_ge_i16_e32 vcc, v2, v4 ; encoding: [0x02,0x09,0x6c,0x7d]231// NOSICI: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU232 233v_cmpx_t_i16 vcc, v2, v4234// VI: v_cmpx_t_i16_e32 vcc, v2, v4 ; encoding: [0x02,0x09,0x6e,0x7d]235// NOSICI: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU236 237v_cmpx_f_u16 vcc, v2, v4238// VI: v_cmpx_f_u16_e32 vcc, v2, v4 ; encoding: [0x02,0x09,0x70,0x7d]239// NOSICI: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU240 241v_cmpx_lt_u16 vcc, v2, v4242// VI: v_cmpx_lt_u16_e32 vcc, v2, v4 ; encoding: [0x02,0x09,0x72,0x7d]243// NOSICI: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU244 245v_cmpx_eq_u16 vcc, v2, v4246// VI: v_cmpx_eq_u16_e32 vcc, v2, v4 ; encoding: [0x02,0x09,0x74,0x7d]247// NOSICI: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU248 249v_cmpx_le_u16 vcc, v2, v4250// VI: v_cmpx_le_u16_e32 vcc, v2, v4 ; encoding: [0x02,0x09,0x76,0x7d]251// NOSICI: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU252 253v_cmpx_gt_u16 vcc, v2, v4254// VI: v_cmpx_gt_u16_e32 vcc, v2, v4 ; encoding: [0x02,0x09,0x78,0x7d]255// NOSICI: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU256 257v_cmpx_ne_u16 vcc, v2, v4258// VI: v_cmpx_ne_u16_e32 vcc, v2, v4 ; encoding: [0x02,0x09,0x7a,0x7d]259// NOSICI: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU260 261v_cmpx_ge_u16 vcc, v2, v4262// VI: v_cmpx_ge_u16_e32 vcc, v2, v4 ; encoding: [0x02,0x09,0x7c,0x7d]263// NOSICI: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU264 265v_cmpx_t_u16 vcc, v2, v4266// VI: v_cmpx_t_u16_e32 vcc, v2, v4 ; encoding: [0x02,0x09,0x7e,0x7d]267// NOSICI: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU268