1 ; REQUIRES: asserts 2 ; RUN: llc < %s -mtriple=arm64-linux-gnu -mcpu=cortex-a57 -enable-misched=0 -debug-only=misched -o - 2>&1 > /dev/null | FileCheck %s 3 ; REQUIRES: asserts 4 5 @G = external global [0 x i32], align 4 6 7 ; Check that MMOs are added to epilogue calle-save restore loads so 8 ; that the store to G is not considered dependant on the callee-save 9 ; loads. 10 ; 11 ; CHECK: Before post-MI-sched: 12 ; CHECK-LABEL: # Machine code for function test1: 13 ; CHECK: SU(2): STRWui %WZR 14 ; CHECK: SU(3): %X21<def>, %X20<def> = LDPXi %SP 15 ; CHECK: Predecessors: 16 ; CHECK-NEXT: out SU(0) 17 ; CHECK-NEXT: out SU(0) 18 ; CHECK-NEXT: ch SU(0) 19 ; CHECK-NEXT: Successors: 20 define void @test1() { 21 entry: 22 tail call void asm sideeffect "nop", "~{x20},~{x21},~{x22},~{x23}"() nounwind 23 store i32 0, i32* getelementptr inbounds ([0 x i32], [0 x i32]* @G, i64 0, i64 0), align 4 24 ret void 25 } 26