1; RUN: llc -verify-machineinstrs -O3 -mcpu=skylake -x86-align-branch-boundary=32 -x86-align-branch=call -filetype=obj < %s | llvm-objdump -d --no-show-raw-insn - | FileCheck %s 2 3;; This file is a companion to align-branch-boundary-suppressions.ll. 4;; It exists to demonstrate that suppressions are actually wired into the 5;; integrated assembler. 6 7target datalayout = "e-i64:64-f80:128-n8:16:32:64-S128" 8target triple = "x86_64-pc-linux-gnu" 9 10define void @test_statepoint(ptr addrspace(1) %ptr) gc "statepoint-example" { 11; CHECK: 1: callq 12; CHECK-NEXT: 6: callq 13; CHECK-NEXT: b: callq 14; CHECK-NEXT: 10: callq 15; CHECK-NEXT: 15: callq 16; CHECK-NEXT: 1a: callq 17; CHECK-NEXT: 1f: callq 18entry: 19 ; Each of these will be 5 bytes, pushing the statepoint to offset=30. 20 ; For a normal call, this would force padding between the last normal 21 ; call and the safepoint, but since we've suppressed alignment that won't 22 ; happen for the safepoint. That's non-ideal, we'd really prefer to do 23 ; the alignment and just keep the label with the statepoint call. (TODO) 24 call void @foo() 25 call void @foo() 26 call void @foo() 27 call void @foo() 28 call void @foo() 29 call void @foo() 30 call token (i64, i32, ptr, i32, i32, ...) @llvm.experimental.gc.statepoint.p0(i64 0, i32 0, ptr elementtype(i1 ()) @return_i1, i32 0, i32 0, i32 0, i32 0) 31 ret void 32} 33 34declare void @foo() 35declare zeroext i1 @return_i1() 36declare token @llvm.experimental.gc.statepoint.p0(i64, i32, ptr, i32, i32, ...) 37