This repository has been archived by the owner on Apr 23, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ARM IAS: support .align without parameters
.align is handled specially on certain targets. .align without any parameters on ARM indicates a default alignment (4). Handle the special case in the target parser, but fall back to the generic parser for the normal version. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201988 91177308-0d34-0410-b5e6-96231b3b80d8
- Loading branch information
Showing
2 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
@ RUN: llvm-mc -triple armv7-eabi %s | FileCheck %s | ||
|
||
.data | ||
|
||
unaligned: | ||
.byte 1 | ||
.align | ||
|
||
@ CHECK-LABEL: unaligned | ||
@ CHECK-NEXT: .byte 1 | ||
@ CHECK-NEXT: .align 2 | ||
|
||
aligned: | ||
.long 0x1d10c1e5 | ||
.align | ||
|
||
@ CHECK-LABEL: aligned | ||
@ CHECK-NEXT: .long 487637477 | ||
@ CHECK-NEXT: .align 2 | ||
|
||
trailer: | ||
.long 0xd1ab011c | ||
.align 2 | ||
|
||
@ CHECK-LABEL: trailer | ||
@ CHECK-NEXT: .long 3517645084 | ||
@ CHECK-NEXT: .align 2 | ||
|