1# RUN: llc -mtriple=aarch64-none-linux-gnu -run-pass none -o - %s | FileCheck %s 2 3--- | 4 @var = global i64 0 5 @local_addr = global i64* null 6 7 define void @stack_local() { 8 entry: 9 %local_var = alloca i64 10 %val = load i64, i64* @var 11 store i64 %val, i64* %local_var 12 store i64* %local_var, i64** @local_addr 13 ret void 14 } 15... 16--- 17name: stack_local 18tracksRegLiveness: true 19registers: 20 - { id: 0, class: gpr64common } 21 - { id: 1, class: gpr64 } 22 - { id: 2, class: gpr64common } 23 - { id: 3, class: gpr64common } 24frameInfo: 25 maxAlignment: 8 26# CHECK-LABEL: stack_local 27# CHECK: stack: 28# CHECK: - { id: 0, name: local_var, type: default, offset: 0, size: 8, alignment: 8, 29# CHECK-NEXT: stack-id: 0, callee-saved-register: '', callee-saved-restored: true, 30# CHECK-NEXT: local-offset: -8, debug-info-variable: '', debug-info-expression: '', 31# CHECK-NEXT: debug-info-location: '' } 32stack: 33 - { id: 0,name: local_var,offset: 0,size: 8,alignment: 8, local-offset: -8 } 34body: | 35 bb.0.entry: 36 %0 = ADRP @var 37 %1 = LDRXui killed %0, @var :: (load 8 from @var) 38 STRXui killed %1, %stack.0.local_var, 0 :: (store 8 into %ir.local_var) 39 %2 = ADRP @local_addr 40 %3 = ADDXri %stack.0.local_var, 0, 0 41 STRXui killed %3, killed %2, @local_addr :: (store 8 into @local_addr) 42 RET_ReallyLR 43... 44