diff options
| author | Coby Tayree <coby.tayree@intel.com> | 2017-08-02 17:36:10 +0000 |
|---|---|---|
| committer | Coby Tayree <coby.tayree@intel.com> | 2017-08-02 17:36:10 +0000 |
| commit | d483a107910c708cdd60901a28e0f5a4e360b6d2 (patch) | |
| tree | f3f5c0cbf843154246984e0327f4f51f74ef2a52 /llvm/test/MC/AsmParser | |
| parent | 3a8e4d98f88c0bc4436df6e37cf8dee3ea36c507 (diff) | |
| download | bcm5719-llvm-d483a107910c708cdd60901a28e0f5a4e360b6d2.tar.gz bcm5719-llvm-d483a107910c708cdd60901a28e0f5a4e360b6d2.zip | |
[AsmParser][GAS-compatibility] Ignore an empty 'p2align' directive
GAS ignores the aforementioned issue
this patch aligns LLVM + throws in an appropriate warning
Differential Revision: https://reviews.llvm.org/D36060
llvm-svn: 309841
Diffstat (limited to 'llvm/test/MC/AsmParser')
| -rw-r--r-- | llvm/test/MC/AsmParser/directive_align.s | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/llvm/test/MC/AsmParser/directive_align.s b/llvm/test/MC/AsmParser/directive_align.s index 9eb1d7f2d8f..91148eb635b 100644 --- a/llvm/test/MC/AsmParser/directive_align.s +++ b/llvm/test/MC/AsmParser/directive_align.s @@ -1,4 +1,5 @@ -# RUN: not llvm-mc -triple i386-apple-darwin9 %s | FileCheck %s +# RUN: not llvm-mc -triple i386-apple-darwin9 %s 2> %t.err | FileCheck %s +# RUN: FileCheck < %t.err %s --check-prefix=CHECK-WARN # CHECK: TEST0: # CHECK: .p2align 1 @@ -14,3 +15,7 @@ TEST1: # CHECK: .balign 3, 10 TEST2: .balign 3,10 + +# CHECK-WARN: p2align directive with no operand(s) is ignored +TEST3: + .p2align |

