aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/CodeGen/X86/function-align.ll
blob: 11d0e9992992717c8118eb81f0a722a6cb1eccba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
; RUN: llc -function-sections < %s | FileCheck %s

target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

; CHECK: .section .text.f1
; CHECK-NOT: .p2align
; CHECK: f1:
define void @f1() align 1 {
  ret void
}

; CHECK: .section .text.f2
; CHECK-NEXT: .globl f2
; CHECK-NEXT: .p2align 1
define void @f2() align 2 {
  ret void
}