1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 03:02:36 +01:00
llvm-mirror/test/MC/AMDGPU/vintrp-err.s
Mircea Trofin e0d59fcd1e [NFC] Disallow unused prefixes under MC/AMDGPU
This patches remaining tests, and patches lit.local.cfg to block future
such cases (until we flip FileCheck's flag)

Differential Revision: https://reviews.llvm.org/D94556
2021-01-12 15:24:44 -08:00

69 lines
2.1 KiB
ArmAsm

// RUN: not llvm-mc -arch=amdgcn %s 2>&1 | FileCheck -check-prefix=GCN --implicit-check-not=error: %s
// RUN: not llvm-mc -arch=amdgcn -mcpu=tonga %s 2>&1 | FileCheck -check-prefix=GCN --implicit-check-not=error: %s
v_interp_p1_f32 v0, v1
// GCN: error: too few operands for instruction
v_interp_p1_f32 v0, v1, attr64.w
// GCN: error: out of bounds interpolation attribute number
v_interp_p1_f32 v0, v1, attr64.x
// GCN: error: out of bounds interpolation attribute number
v_interp_p2_f32 v9, v1, attr64.x
// GCN: error: out of bounds interpolation attribute number
v_interp_p2_f32 v0, v1, attr64.x
// GCN: error: out of bounds interpolation attribute number
v_interp_p2_f32 v0, v1, attr0.q
// GCN: error: invalid or missing interpolation attribute channel
v_interp_p2_f32 v0, v1, attr0.
// GCN: error: invalid or missing interpolation attribute channel
v_interp_p2_f32 v0, v1, attr
// GCN: error: invalid or missing interpolation attribute channel
v_interp_p2_f32 v0, v1, att
// GCN: error: invalid interpolation attribute
v_interp_p2_f32 v0, v1, attrq
// GCN: error: invalid or missing interpolation attribute channel
v_interp_p2_f32 v7, v1, attr.x
// GCN: error: invalid or missing interpolation attribute number
v_interp_p2_f32 v7, v1, attr-1.x
// GCN: error: invalid or missing interpolation attribute channel
v_interp_p2_f32 v7, v1, attrA.x
// GCN: error: invalid or missing interpolation attribute number
v_interp_mov_f32 v11, invalid_param_3, attr0.y
// GCN: error: invalid interpolation slot
v_interp_mov_f32 v12, invalid_param_10, attr0.x
// GCN: error: invalid interpolation slot
v_interp_mov_f32 v3, invalid_param_3, attr0.x
// GCN: error: invalid interpolation slot
v_interp_mov_f32 v8, invalid_param_8, attr0.x
// GCN: error: invalid interpolation slot
v_interp_mov_f32 v8, foo, attr0.x
// GCN: error: invalid interpolation slot
v_interp_mov_f32 v8, 0, attr0.x
// GCN: error: invalid operand for instruction
v_interp_mov_f32 v8, -1, attr0.x
// GCN: error: invalid operand for instruction
v_interp_mov_f32 v8, p-1, attr0.x
// GCN: error: invalid interpolation slot
v_interp_mov_f32 v8, p1, attr0.x
// GCN: error: invalid interpolation slot