1 # RUN: llc -mtriple=aarch64 -run-pass=aarch64-ldst-opt %s -verify-machineinstrs -o - | FileCheck %s
3 @g = common dso_local global i32 0, align 4
7 store i32 0, i32* @g, align 4
8 %0 = load i32, i32* undef, align 4
14 # Don't crash when there's no immediate operand for store.
15 # CHECK-LABEL: name: test
19 tracksRegLiveness: true
22 renamable $x8 = ADRP target-flags(aarch64-page) @g
23 STRWui $wzr, killed renamable $x8, target-flags(aarch64-pageoff, aarch64-nc) @g :: (store (s32) into @g)
24 renamable $w0 = LDRWui undef renamable $x8, 0 :: (load (s32) from `i32* undef`)
25 RET_ReallyLR implicit $w0