[DAGCombiner] Add target hook function to decide folding (mul (add x, c1), c2)
[llvm-project.git] / llvm / test / MC / AMDGPU / vintrp-err.s
blob5322b899582e9fbd5bc29ad7ff4b7e75c716a2df
1 // RUN: not llvm-mc -arch=amdgcn %s 2>&1 | FileCheck -check-prefix=GCN --implicit-check-not=error: %s
2 // RUN: not llvm-mc -arch=amdgcn -mcpu=tonga %s 2>&1 | FileCheck -check-prefix=GCN --implicit-check-not=error: %s
4 v_interp_p1_f32 v0, v1
5 // GCN: error: too few operands for instruction
7 v_interp_p1_f32 v0, v1, attr64.w
8 // GCN: error: out of bounds interpolation attribute number
10 v_interp_p1_f32 v0, v1, attr64.x
11 // GCN: error: out of bounds interpolation attribute number
13 v_interp_p2_f32 v9, v1, attr64.x
14 // GCN: error: out of bounds interpolation attribute number
16 v_interp_p2_f32 v0, v1, attr64.x
17 // GCN: error: out of bounds interpolation attribute number
19 v_interp_p2_f32 v0, v1, attr0.q
20 // GCN: error: invalid or missing interpolation attribute channel
22 v_interp_p2_f32 v0, v1, attr0.
23 // GCN: error: invalid or missing interpolation attribute channel
25 v_interp_p2_f32 v0, v1, attr
26 // GCN: error: invalid or missing interpolation attribute channel
28 v_interp_p2_f32 v0, v1, att
29 // GCN: error: invalid interpolation attribute
31 v_interp_p2_f32 v0, v1, attrq
32 // GCN: error: invalid or missing interpolation attribute channel
34 v_interp_p2_f32 v7, v1, attr.x
35 // GCN: error: invalid or missing interpolation attribute number
37 v_interp_p2_f32 v7, v1, attr-1.x
38 // GCN: error: invalid or missing interpolation attribute channel
40 v_interp_p2_f32 v7, v1, attrA.x
41 // GCN: error: invalid or missing interpolation attribute number
43 v_interp_mov_f32 v11, invalid_param_3, attr0.y
44 // GCN: error: invalid interpolation slot
46 v_interp_mov_f32 v12, invalid_param_10, attr0.x
47 // GCN: error: invalid interpolation slot
49 v_interp_mov_f32 v3, invalid_param_3, attr0.x
50 // GCN: error: invalid interpolation slot
52 v_interp_mov_f32 v8, invalid_param_8, attr0.x
53 // GCN: error: invalid interpolation slot
55 v_interp_mov_f32 v8, foo, attr0.x
56 // GCN: error: invalid interpolation slot
58 v_interp_mov_f32 v8, 0, attr0.x
59 // GCN: error: invalid operand for instruction
61 v_interp_mov_f32 v8, -1, attr0.x
62 // GCN: error: invalid operand for instruction
64 v_interp_mov_f32 v8, p-1, attr0.x
65 // GCN: error: invalid interpolation slot
67 v_interp_mov_f32 v8, p1, attr0.x
68 // GCN: error: invalid interpolation slot