diff options
Diffstat (limited to 'test/MC/AArch64/inst-directive.s')
-rw-r--r-- | test/MC/AArch64/inst-directive.s | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/test/MC/AArch64/inst-directive.s b/test/MC/AArch64/inst-directive.s new file mode 100644 index 0000000..6a4b64e --- /dev/null +++ b/test/MC/AArch64/inst-directive.s @@ -0,0 +1,24 @@ +// RUN: llvm-mc %s -triple=aarch64-none-linux-gnu -filetype=asm -o - \ +// RUN: | FileCheck %s --check-prefix=CHECK-ASM +// RUN: llvm-mc %s -triple=aarch64-none-linux-gnu -filetype=obj -o - \ +// RUN: | llvm-readobj -s -sd | FileCheck %s --check-prefix=CHECK-OBJ + + .section .inst.aarch64_inst + + .align 2 + .global aarch64_inst + .type aarch64_inst,%function +aarch64_inst: + .inst 0x5e104020 + +// CHECK-ASM: .align 2 +// CHECK-ASM: .globl aarch64_inst +// CHECK-ASM: .type aarch64_inst,@function +// CHECK-ASM: aarch64_inst: +// CHECK-ASM: .inst 0x5E104020 + +// CHECK-OBJ: Section { +// CHECK-OBJ: Name: .inst.aarch64_inst +// CHECK-OBJ: SectionData ( +// CHECK-OBJ-NEXT: 0000: 2040105E +// CHECK-OBJ-NEXT: ) |