diff options
Diffstat (limited to 'llvm/test/CodeGen/X86/function-align.ll')
-rw-r--r-- | llvm/test/CodeGen/X86/function-align.ll | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/X86/function-align.ll b/llvm/test/CodeGen/X86/function-align.ll new file mode 100644 index 0000000..11d0e99 --- /dev/null +++ b/llvm/test/CodeGen/X86/function-align.ll @@ -0,0 +1,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 +} |