25 lines · plain
1; RUN: llc -verify-machineinstrs < %s -mcpu=ppc -mtriple=powerpc64-unknown-gnu-linux | FileCheck %s2 3define void @test_shadow_optimization() {4entry:5; Expect 12 bytes worth of nops here rather than 32: With the shadow optimization6; in place, 20 bytes will be consumed by the frame teardown and return instr.7; CHECK-LABEL: test_shadow_optimization:8 9; CHECK: nop10; CHECK-NEXT: nop11; CHECK-NEXT: nop12; CHECK-NOT: nop13; CHECK: addi 1, 1, 6414; CHECK: ld [[REG1:[0-9]+]], 16(1)15; CHECK: ld 31, -8(1)16; CHECK: mtlr [[REG1]]17; CHECK: blr18 19 tail call void (i64, i32, ...) @llvm.experimental.stackmap(i64 0, i32 32)20 ret void21}22 23declare void @llvm.experimental.stackmap(i64, i32, ...)24 25