1 # RUN: llc -mtriple=aarch64-none-linux-gnu -run-pass machine-scheduler -verify-machineinstrs -o - %s | FileCheck %s
4 define i64 @load_imp-def(ptr nocapture %P, i32 %v) {
6 %0 = bitcast ptr %P to ptr
8 %conv = zext i32 %1 to i64
9 %arrayidx19 = getelementptr inbounds i64, ptr %P, i64 1
10 %arrayidx1 = bitcast ptr %arrayidx19 to ptr
11 store i32 %v, ptr %arrayidx1
12 %2 = load i64, ptr %arrayidx19
13 %and = and i64 %2, 4294967295
14 %add = add nuw nsw i64 %and, %conv
19 # CHECK-LABEL: name: load_imp-def
21 # CHECK: LDRWui $x0, 1
22 # CHECK: LDRWui $x0, 0
23 # CHECK: STRWui $w1, $x0, 2
25 tracksRegLiveness: true
29 $w8 = LDRWui $x0, 1, implicit-def $x8 :: (load (s32) from %ir.0)
30 STRWui killed $w1, $x0, 2 :: (store (s32) into %ir.arrayidx1)
31 $w9 = LDRWui killed $x0, 0, implicit-def $x9 :: (load (s32) from %ir.arrayidx19, align 8)
32 $x0 = ADDXrr killed $x9, killed $x8
33 RET_ReallyLR implicit $x0