1*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -mtriple=powerpc64-unknown-gnu-linux | FileCheck %s 2*9880d681SAndroid Build Coastguard Worker 3*9880d681SAndroid Build Coastguard Workerdefine void @test_shadow_optimization() { 4*9880d681SAndroid Build Coastguard Workerentry: 5*9880d681SAndroid Build Coastguard Worker; Expect 12 bytes worth of nops here rather than 32: With the shadow optimization 6*9880d681SAndroid Build Coastguard Worker; in place, 20 bytes will be consumed by the frame teardown and return instr. 7*9880d681SAndroid Build Coastguard Worker; CHECK-LABEL: test_shadow_optimization: 8*9880d681SAndroid Build Coastguard Worker 9*9880d681SAndroid Build Coastguard Worker; CHECK: nop 10*9880d681SAndroid Build Coastguard Worker; CHECK-NEXT: nop 11*9880d681SAndroid Build Coastguard Worker; CHECK-NEXT: nop 12*9880d681SAndroid Build Coastguard Worker; CHECK-NOT: nop 13*9880d681SAndroid Build Coastguard Worker; CHECK: addi 1, 1, 64 14*9880d681SAndroid Build Coastguard Worker; CHECK: ld [[REG1:[0-9]+]], 16(1) 15*9880d681SAndroid Build Coastguard Worker; CHECK: ld 31, -8(1) 16*9880d681SAndroid Build Coastguard Worker; CHECK: mtlr [[REG1]] 17*9880d681SAndroid Build Coastguard Worker; CHECK: blr 18*9880d681SAndroid Build Coastguard Worker 19*9880d681SAndroid Build Coastguard Worker tail call void (i64, i32, ...) @llvm.experimental.stackmap(i64 0, i32 32) 20*9880d681SAndroid Build Coastguard Worker ret void 21*9880d681SAndroid Build Coastguard Worker} 22*9880d681SAndroid Build Coastguard Worker 23*9880d681SAndroid Build Coastguard Workerdeclare void @llvm.experimental.stackmap(i64, i32, ...) 24*9880d681SAndroid Build Coastguard Worker 25