261 lines · plain
1// RUN: not llvm-mc -triple=amdgcn -mcpu=gfx1200 %s 2>&1 | FileCheck --implicit-check-not=error: %s2 3//===----------------------------------------------------------------------===//4// Unsupported instructions.5//===----------------------------------------------------------------------===//6 7s_waitcnt_expcnt exec_hi, 0x12348// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU9 10s_waitcnt_lgkmcnt exec_hi, 0x123411// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU12 13s_waitcnt_vmcnt exec_hi, 0x123414// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU15 16s_waitcnt_vscnt exec_hi, 0x123417// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU18 19s_subvector_loop_begin s0, 0x123420// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU21 22s_subvector_loop_end s0, 0x123423// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU24 25s_cbranch_cdbgsys 026// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU27 28s_cbranch_cdbguser 029// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU30 31s_cbranch_cdbgsys_or_user 032// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU33 34s_cbranch_cdbgsys_and_user 035// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU36 37v_fmac_legacy_f32 v0, v1, v238// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU39 40v_dot2c_f32_f16 v0, v1, v241// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU42 43v_dual_max_f32 v0, v1, v2 :: v_dual_max_f32 v3, v4, v544// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU45 46v_dual_min_f32 v0, v1, v2 :: v_dual_min_f32 v3, v4, v547// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU48 49ds_cmpstore_f32 v0, v1, v250// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU51 52ds_cmpstore_rtn_f32 v0, v1, v2, v353// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU54 55ds_cmpstore_f64 v0, v[1:2], v[3:4]56// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU57 58ds_cmpstore_rtn_f64 v[0:1], v2, v[3:4], v[5:6]59// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU60 61ds_add_gs_reg_rtn v[0:1], v2 gds62// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU63 64ds_sub_gs_reg_rtn v[0:1], v2 gds65// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU66 67ds_wrap_rtn_b32 v0, v1, v2, v368// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU69 70s_cmpk_eq_i32 s0, 071// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU72 73s_cmpk_lg_i32 s0, 074// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU75 76s_cmpk_gt_i32 s0, 077// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU78 79s_cmpk_ge_i32 s0, 080// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU81 82s_cmpk_lt_i32 s0, 083// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU84 85s_cmpk_le_i32 s0, 086// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU87 88s_cmpk_eq_u32 s0, 089// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU90 91s_cmpk_lg_u32 s0, 092// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU93 94s_cmpk_gt_u32 s0, 095// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU96 97s_cmpk_ge_u32 s0, 098// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU99 100s_cmpk_lt_u32 s0, 0101// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU102 103s_cmpk_le_u32 s0, 0104// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU105 106s_inst_prefetch 1107// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU108 109s_barrier110// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU111 112buffer_atomic_cmpswap_f32 v[5:6], off, s[96:99], s3113// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU114 115flat_atomic_cmpswap_f32 v[5:6], off, s[96:99], s3116// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU117 118global_atomic_cmpswap_f32 v[5:6], off, s[96:99], s3119// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU120 121ds_gws_sema_release_all gds122// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU123 124ds_gws_init v0 gds125// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU126 127ds_gws_sema_v gds128// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU129 130ds_gws_sema_br v0 gds131// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU132 133ds_gws_sema_p gds134// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU135 136ds_gws_barrier v0 gds137// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU138 139ds_ordered_count v0, v1 gds140// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU141 142v_cmp_f_f16 v0, v1143// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU144 145v_cmp_t_f16 v0, v1146// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU147 148v_cmp_f_f32 v0, v1149// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU150 151v_cmp_t_f32 v0, v1152// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU153 154v_cmp_f_f64 v[0:1], v[2:3]155// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU156 157v_cmp_t_f64 v[0:1], v[2:3]158// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU159 160v_cmp_f_i32 v0, v1161// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU162 163v_cmp_t_i32 v0, v1164// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU165 166v_cmp_f_u32 v0, v1167// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU168 169v_cmp_t_u32 v0, v1170// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU171 172v_cmp_f_i64 v[0:1], v[2:3]173// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU174 175v_cmp_t_i64 v[0:1], v[2:3]176// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU177 178v_cmp_f_u64 v[0:1], v[2:3]179// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU180 181v_cmp_t_u64 v[0:1], v[2:3]182// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU183 184v_cmpx_f_f16 v0, v1185// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU186 187v_cmpx_t_f16 v0, v1188// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU189 190v_cmpx_f_f32 v0, v1191// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU192 193v_cmpx_t_f32 v0, v1194// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU195 196v_cmpx_f_f64 v[0:1], v[2:3]197// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU198 199v_cmpx_t_f64 v[0:1], v[2:3]200// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU201 202v_cmpx_f_i32 v0, v1203// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU204 205v_cmpx_t_i32 v0, v1206// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU207 208v_cmpx_f_u32 v0, v1209// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU210 211v_cmpx_t_u32 v0, v1212// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU213 214v_cmpx_f_i64 v[0:1], v[2:3]215// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU216 217v_cmpx_t_i64 v[0:1], v[2:3]218// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU219 220v_cmpx_f_u64 v[0:1], v[2:3]221// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU222 223v_cmpx_t_u64 v[0:1], v[2:3]224// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU225 226v_mfma_f32_16x16x8_xf32 a[0:3], v[2:3], v[4:5], a[2:5]227// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU228 229v_mfma_f32_16x16x8xf32 a[0:3], v[2:3], v[4:5], a[2:5]230// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU231 232v_mfma_f32_32x32x4_xf32 a[0:15], v[2:3], v[4:5], a[18:33]233// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU234 235v_mfma_f32_32x32x4xf32 a[0:15], v[2:3], v[4:5], a[18:33]236// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU237 238buffer_atomic_cmpswap_f32 v[5:6], off, s[96:99], s3239// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU240 241buffer_gl0_inv242// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU243 244buffer_gl1_inv245// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU246 247buffer_store_lds_dword s[4:7], -1 offset:4095 lds248// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU249 250buffer_wbinvl1251// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU252 253buffer_wbinvl1_vol254// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU255 256flat_atomic_csub v1, v[0:1], v2 offset:64 th:TH_ATOMIC_RETURN257// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: invalid instruction258 259ds_add_f32 v255, v255 offset:4 gds260// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: gds modifier is not supported on this GPU261