brintos

brintos / llvm-project-archived public Read only

0
0
Text · 510 B · 2647ac4 Raw
16 lines · plain
1; RUN: llc < %s -mtriple=arm64-apple-darwin | FileCheck %s2 3define void @test_shadow_optimization() {4entry:5; Expect 8 bytes worth of nops here rather than 16: With the shadow optimization6; in place, 8 bytes will be consumed by the frame teardown and return instr.7; CHECK-LABEL: test_shadow_optimization:8; CHECK:      nop9; CHECK-NEXT: nop10; CHECK-NOT:  nop11  tail call void (i64, i32, ...) @llvm.experimental.stackmap(i64  0, i32  16)12  ret void13}14 15declare void @llvm.experimental.stackmap(i64, i32, ...)16