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
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.
7 target datalayout = "e-i64:64-f80:128-n8:16:32:64-S128"
8 target triple = "x86_64-pc-linux-gnu"
10 define void @test_statepoint(ptr addrspace(1) %ptr) gc "statepoint-example" {
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
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)
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)
35 declare zeroext i1 @return_i1()
36 declare token @llvm.experimental.gc.statepoint.p0(i64, i32, ptr, i32, i32, ...)