diff options
| author | Oliver Stannard <oliver.stannard@arm.com> | 2018-02-09 13:34:39 +0000 |
|---|---|---|
| committer | Oliver Stannard <oliver.stannard@arm.com> | 2018-02-09 13:34:39 +0000 |
| commit | 0c21abd429ce9e8b0f39cb411df20d5986eb5b03 (patch) | |
| tree | e24aa7179ee0f762f1b056cac08e96097482fd23 /llvm/test/MC/ARM | |
| parent | 4d4d63ee18a6ae8550a0f092be425b3ddf63be4f (diff) | |
| download | bcm5719-llvm-0c21abd429ce9e8b0f39cb411df20d5986eb5b03.tar.gz bcm5719-llvm-0c21abd429ce9e8b0f39cb411df20d5986eb5b03.zip | |
[ELF] Print the .type assembly directive correctly for STT_NOTYPE
The llvm assembly parser and gas both accept "@notype" in the .type
assembly directive, but we were printing it as "@no_type", which isn't
accepted by either assembler.
Differential revision: https://reviews.llvm.org/D43116
llvm-svn: 324731
Diffstat (limited to 'llvm/test/MC/ARM')
| -rw-r--r-- | llvm/test/MC/ARM/type-directive-print.ll | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/llvm/test/MC/ARM/type-directive-print.ll b/llvm/test/MC/ARM/type-directive-print.ll new file mode 100644 index 00000000000..6b23b0937a3 --- /dev/null +++ b/llvm/test/MC/ARM/type-directive-print.ll @@ -0,0 +1,17 @@ +; RUN: llc < %s -mtriple=armv7a | FileCheck %s + +module asm ".type test_notype, %notype" +module asm ".type test_function, %function" +module asm ".type test_object, %object" +module asm ".type test_common, %common" +module asm ".type test_tls_object, %tls_object" +module asm ".type test_gnu_indirect_function, %gnu_indirect_function" +module asm ".type test_gnu_unique_object, %gnu_unique_object" + +; CHECK: .type test_notype,%notype +; CHECK: .type test_function,%function +; CHECK: .type test_object,%object +; CHECK: .type test_common,%common +; CHECK: .type test_tls_object,%tls_object +; CHECK: .type test_gnu_indirect_function,%gnu_indirect_function +; CHECK: .type test_gnu_unique_object,%gnu_unique_object |

