1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 4
2 ; RUN: llc -global-isel %s -o - | FileCheck %s
3 target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128"
4 target triple = "arm64-apple-macosx14.0.0"
8 ; CHECK: ; %bb.0: ; %entry
9 ; CHECK-NEXT: sub sp, sp, #32
10 ; CHECK-NEXT: stp x29, x30, [sp, #16] ; 16-byte Folded Spill
11 ; CHECK-NEXT: .cfi_def_cfa_offset 32
12 ; CHECK-NEXT: .cfi_offset w30, -8
13 ; CHECK-NEXT: .cfi_offset w29, -16
14 ; CHECK-NEXT: mov x0, xzr
15 ; CHECK-NEXT: mov x1, xzr
16 ; CHECK-NEXT: ldr x8, [x0]
17 ; CHECK-NEXT: ldr w9, [x8], #8
18 ; CHECK-NEXT: str x8, [x0]
19 ; CHECK-NEXT: str x9, [sp]
20 ; CHECK-NEXT: bl _sprintf
21 ; CHECK-NEXT: ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
22 ; CHECK-NEXT: add sp, sp, #32
25 %0 = va_arg ptr null, i32
26 %sprintf1776 = tail call i32 (ptr, ptr, ...) @sprintf(ptr null, ptr null, i32 %0)
30 declare i32 @sprintf(ptr, ptr, ...)