1 ; RUN: not llc -march=amdgcn -mcpu=bonaire -verify-machineinstrs < %s 2>&1 | FileCheck -check-prefix=GCN -check-prefix=SICI %s
2 ; RUN: not llc -march=amdgcn -mcpu=tonga -verify-machineinstrs < %s 2>&1 | FileCheck -check-prefix=GCN %s
3 ; RUN: not llc -march=amdgcn -mcpu=tahiti -verify-machineinstrs < %s 2>&1 | FileCheck -check-prefix=GCN -check-prefix=SICI %s
5 ; GCN: error: couldn't allocate output register for constraint 's'
6 ; GCN: error: couldn't allocate input reg for constraint 's'
7 define amdgpu_kernel void @s_input_output_i8() {
8 %v = tail call i8 asm sideeffect "s_mov_b32 $0, -1", "=s"()
9 tail call void asm sideeffect "; use $0", "s"(i8 %v)
13 ; GCN: error: couldn't allocate output register for constraint 'v'
14 ; GCN: error: couldn't allocate input reg for constraint 'v'
15 define amdgpu_kernel void @v_input_output_i8() {
16 %v = tail call i8 asm sideeffect "v_mov_b32 $0, -1", "=v"()
17 tail call void asm sideeffect "; use $0", "v"(i8 %v)
21 ; GCN: error: couldn't allocate output register for constraint 's'
22 ; GCN: error: couldn't allocate input reg for constraint 's'
23 define amdgpu_kernel void @s_input_output_v8f16() {
24 %v = tail call <8 x half> asm sideeffect "s_mov_b32 $0, -1", "=s"()
25 tail call void asm sideeffect "; use $0", "s"(<8 x half> %v)
29 ; SICI: error: couldn't allocate output register for constraint 's'
30 ; SICI: error: couldn't allocate input reg for constraint 's'
32 define amdgpu_kernel void @s_input_output_v2f16() {
33 %v = tail call <2 x half> asm sideeffect "s_mov_b32 $0, -1", "=s"()
34 tail call void asm sideeffect "; use $0", "s"(<2 x half> %v)
38 ; SICI: error: couldn't allocate output register for constraint 'v'
39 ; SICI: error: couldn't allocate input reg for constraint 'v'
41 define amdgpu_kernel void @v_input_output_v2f16() {
42 %v = tail call <2 x half> asm sideeffect "v_mov_b32 $0, -1", "=v"()
43 tail call void asm sideeffect "; use $0", "v"(<2 x half> %v)
47 ; SICI: error: couldn't allocate output register for constraint 's'
48 ; SICI: error: couldn't allocate input reg for constraint 's'
50 define amdgpu_kernel void @s_input_output_v2i16() {
51 %v = tail call <2 x i16> asm sideeffect "s_mov_b32 $0, -1", "=s"()
52 tail call void asm sideeffect "; use $0", "s"(<2 x i16> %v)
56 ; FIXME: Crash in codegen prepare
57 ; define amdgpu_kernel void @s_input_output_i3() {
58 ; %v = tail call i3 asm sideeffect "s_mov_b32 $0, -1", "=s"()
59 ; tail call void asm sideeffect "; use $0", "s"(i3 %v)