28 lines · plain
1# RUN: llc -mtriple=aarch64 -run-pass=aarch64-ldst-opt %s -verify-machineinstrs -o - | FileCheck %s2--- |3 @g = common dso_local global i32 0, align 44 5 define i32 @test() {6 entry:7 store i32 0, ptr @g, align 48 %0 = load i32, ptr undef, align 49 ret i32 %010 }11 12...13---14# Don't crash when there's no immediate operand for store.15# CHECK-LABEL: name: test16# CHECK: STRWui $wzr17# CHECK: LDRWui18name: test19tracksRegLiveness: true20body: |21 bb.0.entry:22 renamable $x8 = ADRP target-flags(aarch64-page) @g23 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 `ptr undef`)25 RET_ReallyLR implicit $w026 27...28