77 lines · plain
1// RUN: not llvm-mc -triple=amdgcn -mcpu=tahiti %s 2>&1 | FileCheck %s --check-prefix=GFX67 --check-prefix=GCN --implicit-check-not=error:2// RUN: not llvm-mc -triple=amdgcn -mcpu=fiji %s 2>&1 | FileCheck %s --check-prefix=GFX89 --check-prefix=GCN --implicit-check-not=error:3// RUN: not llvm-mc -triple=amdgcn -mcpu=gfx900 %s 2>&1 | FileCheck %s --check-prefix=GFX89 --check-prefix=GCN --implicit-check-not=error:4 5v_add_f32_e64 v0, v16// GCN: :[[@LINE-1]]:{{[0-9]+}}: error: too few operands for instruction7 8v_div_scale_f32 v24, vcc, v22, 1.1, v229// GCN: :[[@LINE-1]]:{{[0-9]+}}: error: literal operands are not supported10 11v_mqsad_u32_u8 v[0:3], s[2:3], v4, v[0:3]12// GFX67: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU13 14v_cmp_eq_f32_e64 vcc, v0, v1 mul:215// GFX67: :[[@LINE-1]]:{{[0-9]+}}: error: not a valid operand.16// GFX89: :[[@LINE-2]]:{{[0-9]+}}: error: not a valid operand.17 18v_cmp_le_f64_e64 vcc, v0, v1 mul:419// GCN: :[[@LINE-1]]:{{[0-9]+}}: error: not a valid operand.20 21//22// mul23//24 25v_cvt_f64_i32 v[5:6], s1 mul:326// GCN: :[[@LINE-1]]:{{[0-9]+}}: error: invalid mul value.27 28//29// v_interp*30//31 32v_interp_mov_f32_e64 v5, p10, attr0.x high33// GFX67: :[[@LINE-1]]:{{[0-9]+}}: error: e64 variant of this instruction is not supported34// GFX89: :[[@LINE-2]]:{{[0-9]+}}: error: invalid operand for instruction35 36v_interp_mov_f32_e64 v5, p10, attr0.x v037// GFX67: :[[@LINE-1]]:{{[0-9]+}}: error: e64 variant of this instruction is not supported38// GFX89: :[[@LINE-2]]:{{[0-9]+}}: error: invalid operand for instruction39 40v_interp_p1_f32_e64 v5, v2, attr0.x high41// GFX67: :[[@LINE-1]]:{{[0-9]+}}: error: e64 variant of this instruction is not supported42// GFX89: :[[@LINE-2]]:{{[0-9]+}}: error: invalid operand for instruction43 44v_interp_p1_f32_e64 v5, v2, attr0.x v045// GFX67: :[[@LINE-1]]:{{[0-9]+}}: error: e64 variant of this instruction is not supported46// GFX89: :[[@LINE-2]]:{{[0-9]+}}: error: invalid operand for instruction47 48v_interp_p2_f32_e64 v255, v2, attr0.x high49// GFX67: :[[@LINE-1]]:{{[0-9]+}}: error: e64 variant of this instruction is not supported50// GFX89: :[[@LINE-2]]:{{[0-9]+}}: error: invalid operand for instruction51 52v_interp_p2_f32_e64 v255, v2, attr0.x v053// GFX67: :[[@LINE-1]]:{{[0-9]+}}: error: e64 variant of this instruction is not supported54// GFX89: :[[@LINE-2]]:{{[0-9]+}}: error: invalid operand for instruction55 56v_interp_p1ll_f16 v5, p0, attr31.x57// GFX67: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU58// GFX89: :[[@LINE-2]]:{{[0-9]+}}: error: invalid operand for instruction59 60v_interp_p1ll_f16 v5, v2, attr31.x v061// GFX67: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU62// GFX89: :[[@LINE-2]]:{{[0-9]+}}: error: invalid operand for instruction63 64v_interp_p2_f16 v5, v2, attr1.x, v3 mul:265// GFX67: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU66// GFX89: :[[@LINE-2]]:{{[0-9]+}}: error: not a valid operand.67 68//69// v_div_scale_*70//71 72v_div_scale_f32 v24, vcc, v22, v22, |v20|73// GCN: :[[@LINE-1]]:{{[0-9]+}}: error: ABS not allowed in VOP3B instructions74 75v_div_scale_f64 v[24:25], vcc, -|v[22:23]|, v[22:23], v[20:21]76// GCN: :[[@LINE-1]]:{{[0-9]+}}: error: ABS not allowed in VOP3B instructions77