brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.4 KiB · 3d8f771 Raw
37 lines · plain
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 %s2 3;; This file is a companion to align-branch-boundary-suppressions.ll.4;; It exists to demonstrate that suppressions are actually wired into the5;; 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: callq12; CHECK-NEXT: 6: callq13; CHECK-NEXT: b: callq14; CHECK-NEXT: 10: callq15; CHECK-NEXT: 15: callq16; CHECK-NEXT: 1a: callq17; CHECK-NEXT: 1f: callq18entry: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 normal21  ; call and the safepoint, but since we've suppressed alignment that won't22  ; happen for the safepoint.  That's non-ideal, we'd really prefer to do23  ; 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 void32}33 34declare void @foo()35declare zeroext i1 @return_i1()36declare token @llvm.experimental.gc.statepoint.p0(i64, i32, ptr, i32, i32, ...)37