25 lines · plain
1; RUN: split-file %s %t2 3; RUN: not --crash llc -mtriple aarch64-linux-gnu -mattr=+sve < %t/test-non-tailcall.ll 2>&1 | FileCheck %s --check-prefix=CHECKNONTAIL4; RUN: not --crash llc -mtriple aarch64-linux-gnu -mattr=+sve < %t/test-tailcall.ll 2>&1 | FileCheck %s --check-prefix=CHECKTAIL5 6;--- test-non-tailcall.ll7declare i32 @sve_printf(ptr, <vscale x 4 x i32>, ...)8@.str_1 = internal constant [6 x i8] c"boo!\0A\00"9 10; CHECKTAIL: Passing SVE types to variadic functions is currently not supported11define void @foo_nontail(<vscale x 4 x i32> %x) {12 call i32 (ptr, <vscale x 4 x i32>, ...) @sve_printf(ptr @.str_1, <vscale x 4 x i32> %x, <vscale x 4 x i32> %x)13 ret void14}15 16;--- test-tailcall.ll17declare i32 @sve_printf(ptr, <vscale x 4 x i32>, ...)18@.str_1 = internal constant [6 x i8] c"boo!\0A\00"19 20; CHECKNONTAIL: Passing SVE types to variadic functions is currently not supported21define void @foo_tail(<vscale x 4 x i32> %x) {22 tail call i32 (ptr, <vscale x 4 x i32>, ...) @sve_printf(ptr @.str_1, <vscale x 4 x i32> %x, <vscale x 4 x i32> %x)23 ret void24}25