31 lines · plain
1# RUN: llc -mtriple=aarch64--linux-gnu -run-pass=aarch64-ldst-opt %s -verify-machineinstrs -o - | FileCheck %s2--- |3 define void @ldr_str_aa(ptr noalias nocapture %x, ptr noalias nocapture readonly %y) {4 entry:5 %0 = load i32, ptr %y, align 46 store i32 %0, ptr %x, align 47 %arrayidx2 = getelementptr inbounds i32, ptr %y, i32 18 %1 = load i32, ptr %arrayidx2, align 49 %arrayidx3 = getelementptr inbounds i32, ptr %x, i32 110 store i32 %1, ptr %arrayidx3, align 411 ret void12 }13 14...15---16# CHECK-LABEL: name: ldr_str_aa17# CHECK: $w8, $w9 = LDPWi $x1, 018# CHECK: STPWi killed $w8, killed $w9, $x0, 019name: ldr_str_aa20tracksRegLiveness: true21body: |22 bb.0.entry:23 liveins: $x0, $x124 25 $w8 = LDRWui $x1, 0 :: (load (s32) from %ir.y)26 STRWui killed $w8, $x0, 0 :: (store (s32) into %ir.x)27 $w9 = LDRWui killed $x1, 1 :: (load (s32) from %ir.arrayidx2)28 STRWui killed $w9, killed $x0, 1 :: (store (s32) into %ir.arrayidx3)29 RET undef $lr30 31