100 lines · plain
1; RUN: not llc -mtriple=amdgcn-amd-amdhsa -mcpu=bonaire -filetype=null %s 2>&1 | FileCheck -implicit-check-not=error %s2; RUN: not llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx1250 -filetype=null %s 2>&1 | FileCheck -implicit-check-not=error %s3 4; CHECK: error: couldn't allocate output register for constraint '{v256}'5define void @out_of_bounds_vgpr32_def() {6 %v = tail call i32 asm sideeffect "v_mov_b32 $0, -1", "={v256}"()7 ret void8}9 10; CHECK: error: couldn't allocate output register for constraint '{v[255:256]}'11define void @out_of_bounds_vgpr64_def_high_tuple() {12 %v = tail call i32 asm sideeffect "v_mov_b32 $0, -1", "={v[255:256]}"()13 ret void14}15 16; CHECK: error: couldn't allocate output register for constraint '{v[256:257]}'17define void @out_of_bounds_vgpr64_def_low_tuple() {18 %v = tail call i32 asm sideeffect "v_mov_b32 $0, -1", "={v[256:257]}"()19 ret void20}21 22; CHECK: error: couldn't allocate input reg for constraint '{v256}'23define void @out_of_bounds_vgpr32_use() {24 %v = tail call i32 asm sideeffect "v_mov_b32 %0, %1", "=v,{v256}"(i32 123)25 ret void26}27 28; CHECK: error: couldn't allocate input reg for constraint '{v[255:256]}'29define void @out_of_bounds_vgpr64_high_tuple() {30 tail call void asm sideeffect "; use %0", "{v[255:256]}"(i64 123)31 ret void32}33 34; CHECK: error: couldn't allocate input reg for constraint '{v[256:257]}'35define void @out_of_bounds_vgpr64_low_tuple() {36 tail call void asm sideeffect "; use %0", "{v[256:257]}"(i64 123)37 ret void38}39 40; CHECK: error: couldn't allocate input reg for constraint '{v[1:0]}'41define void @vgpr_tuple_swapped() {42 tail call void asm sideeffect "; use %0", "{v[1:0]}"(i64 123)43 ret void44}45 46; CHECK: error: couldn't allocate input reg for constraint '{v4294967295}'47define void @vgpr_uintmax() {48 tail call void asm sideeffect "; use %0", "{v4294967295}"(i64 123)49 ret void50}51 52; CHECK: error: couldn't allocate input reg for constraint '{v4294967296}'53define void @vgpr_uintmax_p1() {54 tail call void asm sideeffect "; use %0", "{v4294967296}"(i64 123)55 ret void56}57 58; CHECK: error: couldn't allocate input reg for constraint '{v[4294967295:4294967296]}'59define void @vgpr_tuple_uintmax() {60 tail call void asm sideeffect "; use %0", "{v[4294967295:4294967296]}"(i64 123)61 ret void62}63 64; CHECK: error: couldn't allocate input reg for constraint '{v[0:4294967295]}'65define void @vgpr_tuple_0_uintmax() {66 tail call void asm sideeffect "; use %0", "{v[0:4294967295]}"(i64 123)67 ret void68}69 70; CHECK: error: couldn't allocate input reg for constraint '{v[0:4294967296]}'71define void @vgpr_tuple_0_uintmax_p1() {72 tail call void asm sideeffect "; use %0", "{v[0:4294967296]}"(i64 123)73 ret void74}75 76; CHECK: error: couldn't allocate input reg for constraint '{v[4294967264:4294967295]}'77define void @vgpr32_last_is_uintmax() {78 tail call void asm sideeffect "; use %0", "{v[4294967264:4294967295]}"(i64 123)79 ret void80}81 82; CHECK: error: couldn't allocate input reg for constraint '{v[4294967265:4294967296]}'83define void @vgpr32_last_is_uintmax_p1() {84 tail call void asm sideeffect "; use %0", "{v[4294967265:4294967296]}"(i64 123)85 ret void86}87 88; CHECK: error: couldn't allocate input reg for constraint '{v[2:2147483651]}'89define void @overflow_bitwidth_0() {90 tail call void asm sideeffect "; use %0", "{v[2:2147483651]}"(i64 123)91 ret void92}93 94; CHECK: error: couldn't allocate input reg for constraint '{v[2147483635:2147483651]}'95define void @overflow_bitwidth_1() {96 tail call void asm sideeffect "; use %0", "{v[2147483635:2147483651]}"(i64 123)97 ret void98}99 100