Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / MC / AMDGPU / gfx11_asm_vinterp_err.s
blob1d6769dbd4d6a087835fdd471eeec48419a6275b
1 // RUN: not llvm-mc -triple=amdgcn -mcpu=gfx1100 %s 2>&1 | FileCheck %s -check-prefix=GFX11-ERR --implicit-check-not=error: --strict-whitespace
3 //===----------------------------------------------------------------------===//
4 // VINTERP src operands must be VGPRs.
5 // Check that other operand kinds are rejected by assembler.
6 //===----------------------------------------------------------------------===//
8 v_interp_p10_f32 v0, s1, v2, v3
9 // GFX11-ERR: :[[@LINE-1]]:22: error: invalid operand for instruction
11 v_interp_p10_f32 v0, v1, s2, v3
12 // GFX11-ERR: :[[@LINE-1]]:26: error: invalid operand for instruction
14 v_interp_p10_f32 v0, v1, v2, s3
15 // GFX11-ERR: :[[@LINE-1]]:30: error: invalid operand for instruction
17 v_interp_p2_f32 v0, 1, v2, v3
18 // GFX11-ERR: :[[@LINE-1]]:21: error: invalid operand for instruction
20 v_interp_p2_f32 v0, v1, 2, v3
21 // GFX11-ERR: :[[@LINE-1]]:25: error: invalid operand for instruction
23 v_interp_p2_f32 v0, v1, v2, 3
24 // GFX11-ERR: :[[@LINE-1]]:29: error: invalid operand for instruction
26 v_interp_p10_f16_f32 v0, s1, v2, v3
27 // GFX11-ERR: :[[@LINE-1]]:26: error: invalid operand for instruction
29 v_interp_p10_f16_f32 v0, v1, s2, v3
30 // GFX11-ERR: :[[@LINE-1]]:30: error: invalid operand for instruction
32 v_interp_p10_f16_f32 v0, v1, v2, s3
33 // GFX11-ERR: :[[@LINE-1]]:34: error: invalid operand for instruction
35 v_interp_p2_f16_f32 v0, 1, v2, v3
36 // GFX11-ERR: :[[@LINE-1]]:25: error: invalid operand for instruction
38 v_interp_p2_f16_f32 v0, v1, 2, v3
39 // GFX11-ERR: :[[@LINE-1]]:29: error: invalid operand for instruction
41 v_interp_p2_f16_f32 v0, v1, v2, 3
42 // GFX11-ERR: :[[@LINE-1]]:33: error: invalid operand for instruction