brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.3 KiB · 3b90163 Raw
32 lines · plain
1; RUN: llc < %s -mtriple=arm64-apple-ios7.0 -homogeneous-prolog-epilog | FileCheck %s2; RUN: llc < %s -mtriple=aarch64-unknown-linux-gnu  -homogeneous-prolog-epilog | FileCheck %s --check-prefixes=CHECK-LINUX3 4declare void @bar(i32 %i)5 6define void @odd_num_callee_saved_registers(ptr swifterror %error, i32 %i) nounwind minsize {7  call void asm sideeffect "mov x0, #42", "~{x0},~{x19},~{x20},~{x22},~{x23},~{x24},~{x25},~{x26},~{x27},~{x28}"() nounwind8  call void @bar(i32 %i)9  ret void10}11 12define void @odd_num_callee_saved_registers_with_fpr(ptr swifterror %error, i32 %i) nounwind minsize {13  call void asm sideeffect "mov x0, #42", "~{x0},~{x19},~{x20},~{x22},~{x23},~{x24},~{x25},~{x26},~{x27},~{x28},~{d8},~{d9}"() nounwind14  call void @bar(i32 %i)15  ret void16}17 18; CHECK-LABEL: _OUTLINED_FUNCTION_PROLOG_x30x29x19x20x22x23x24x25x26x27x28:19; CHECK:	str	x28, [sp, #-80]!20; CHECK-LABEL: _OUTLINED_FUNCTION_EPILOG_TAIL_x30x29x19x20x22x23x24x25x26x27x28:21; CHECK:	ldr	x28, [sp], #9622 23; CHECK-LABEL: _OUTLINED_FUNCTION_PROLOG_x30x29x19x20x22x23x24x25x26x27x28d8d9:24; CHECK:	stp	d9, d8, [sp, #-96]!25; CHECK:	str	x28, [sp, #16]26; CHECK-LABEL: _OUTLINED_FUNCTION_EPILOG_TAIL_x30x29x19x20x22x23x24x25x26x27x28d8d927; CHECK:	ldr	x28, [sp, #16]28; CHECK:	ldp	d9, d8, [sp], #11229 30; CHECK-LINUX-NOT: OUTLINED_FUNCTION_PROLOG31; CHECK-LINUX-NOT: OUTLINED_FUNCTION_EPILOG32