mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-16 00:16:50 +00:00
f4e788949d
For historic reasons, the behavior of .align differs between targets. Fortunately, there are alternatives, .p2align and .balign, which make the interpretation of the parameter explicit, and which behave consistently across targets. This patch teaches MC to use .p2align instead of .align, so that people reading code for multiple architectures don't have to remember which way each platform does its .align directive. Differential Revision: http://reviews.llvm.org/D16549 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@258750 91177308-0d34-0410-b5e6-96231b3b80d8
21 lines
399 B
LLVM
21 lines
399 B
LLVM
; RUN: llc -mtriple=armv7-linux-gnueabi %s -o - | FileCheck %s
|
|
|
|
@var_agg = global {i8, i8} zeroinitializer
|
|
|
|
; CHECK: .globl var_agg
|
|
; CHECK-NEXT: .p2align 2
|
|
|
|
@var1 = global i1 zeroinitializer
|
|
|
|
; CHECK: .globl var1
|
|
; CHECK-NOT: .p2align
|
|
|
|
@var8 = global i8 zeroinitializer
|
|
|
|
; CHECK: .globl var8
|
|
; CHECK-NOT: .p2align
|
|
|
|
@var16 = global i16 zeroinitializer
|
|
|
|
; CHECK: .globl var16
|
|
; CHECK-NEXT: .p2align 1 |