bolt/deps/llvm-18.1.8/llvm/test/CodeGen/AArch64/arm64_32-stack-pointers.ll
2025-02-14 19:21:04 +01:00

13 lines
397 B
LLVM

; RUN: llc -mtriple=arm64_32-apple-ios9.0 -o - %s | FileCheck %s
declare void @callee([8 x i64], ptr, ptr)
; Make sure we don't accidentally store X0 or XZR, which might well
; clobber other arguments or data.
define void @test_stack_ptr_32bits(ptr %in) {
; CHECK-LABEL: test_stack_ptr_32bits:
; CHECK-DAG: stp wzr, w0, [sp]
call void @callee([8 x i64] undef, ptr null, ptr %in)
ret void
}