1# RUN: llc -mtriple=aarch64 -run-pass=aarch64-ldst-opt %s -verify-machineinstrs -o - | FileCheck %s 2--- | 3 @g = common dso_local global i32 0, align 4 4 5 define i32 @test() { 6 entry: 7 store i32 0, i32* @g, align 4 8 %0 = load i32, i32* undef, align 4 9 ret i32 %0 10 } 11 12... 13--- 14# Don't crash when there's no immediate operand for store. 15# CHECK-LABEL: name: test 16# CHECK: STRWui $wzr 17# CHECK: LDRWui 18name: test 19tracksRegLiveness: true 20body: | 21 bb.0.entry: 22 renamable $x8 = ADRP target-flags(aarch64-page) @g 23 STRWui $wzr, killed renamable $x8, target-flags(aarch64-pageoff, aarch64-nc) @g :: (store 4 into @g) 24 renamable $w0 = LDRWui undef renamable $x8, 0 :: (load 4 from `i32* undef`) 25 RET_ReallyLR implicit $w0 26 27... 28