diff options
Diffstat (limited to 'test/MC/ELF/ARM')
-rw-r--r-- | test/MC/ELF/ARM/bss-non-zero-value.s | 9 | ||||
-rw-r--r-- | test/MC/ELF/ARM/gnu-type-hash-diagnostics.s | 9 | ||||
-rw-r--r-- | test/MC/ELF/ARM/gnu-type-hash.s | 16 | ||||
-rw-r--r-- | test/MC/ELF/ARM/lit.local.cfg | 3 |
4 files changed, 37 insertions, 0 deletions
diff --git a/test/MC/ELF/ARM/bss-non-zero-value.s b/test/MC/ELF/ARM/bss-non-zero-value.s new file mode 100644 index 0000000..999b8b0 --- /dev/null +++ b/test/MC/ELF/ARM/bss-non-zero-value.s @@ -0,0 +1,9 @@ +// RUN: not llvm-mc -filetype=obj -triple arm-linux-gnu %s -o %t 2>%t.out +// RUN: FileCheck --input-file=%t.out %s +// CHECK: non-zero initializer found in section '.bss' + .bss + .globl a + .align 2 +a: + .long 1 + .size a, 4 diff --git a/test/MC/ELF/ARM/gnu-type-hash-diagnostics.s b/test/MC/ELF/ARM/gnu-type-hash-diagnostics.s new file mode 100644 index 0000000..eb36475 --- /dev/null +++ b/test/MC/ELF/ARM/gnu-type-hash-diagnostics.s @@ -0,0 +1,9 @@ +@ RUN: not llvm-mc -triple arm-elf -filetype asm -o /dev/null %s 2>&1 | FileCheck %s + + .syntax unified + + .type TYPE #32 +// CHECK: error: expected symbol type in directive +// CHECK: .type TYPE #32 +// CHECK: ^ + diff --git a/test/MC/ELF/ARM/gnu-type-hash.s b/test/MC/ELF/ARM/gnu-type-hash.s new file mode 100644 index 0000000..ae5c47c --- /dev/null +++ b/test/MC/ELF/ARM/gnu-type-hash.s @@ -0,0 +1,16 @@ +@ RUN: llvm-mc -triple arm-elf -filetype asm -o - %s | FileCheck %s + + .syntax unified + + .type TYPE #STT_FUNC +// CHECK: .type TYPE,%function + + .type type #function +// CHECK: .type type,%function + + .type comma_TYPE, #STT_FUNC +// CHECK: .type comma_TYPE,%function + + .type comma_type, #function +// CHECK: .type comma_type,%function + diff --git a/test/MC/ELF/ARM/lit.local.cfg b/test/MC/ELF/ARM/lit.local.cfg new file mode 100644 index 0000000..d825cc0 --- /dev/null +++ b/test/MC/ELF/ARM/lit.local.cfg @@ -0,0 +1,3 @@ +# We have to reset config.unsupported here because the parent directory is +# predicated on 'X86'. +config.unsupported = not 'ARM' in config.root.targets |