xref: /aosp_15_r20/external/llvm/test/MC/AArch64/inst-directive.s (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker// RUN: llvm-mc %s -triple=aarch64-none-linux-gnu -filetype=asm -o - \
2*9880d681SAndroid Build Coastguard Worker// RUN:   | FileCheck %s --check-prefix=CHECK-ASM
3*9880d681SAndroid Build Coastguard Worker// RUN: llvm-mc %s -triple=aarch64-none-linux-gnu -filetype=obj -o %t
4*9880d681SAndroid Build Coastguard Worker// RUN: llvm-readobj -s -sd %t | FileCheck %s  --check-prefix=CHECK-OBJ
5*9880d681SAndroid Build Coastguard Worker// RUN: llvm-objdump -t %t | FileCheck %s  --check-prefix=CHECK-SYMS
6*9880d681SAndroid Build Coastguard Worker
7*9880d681SAndroid Build Coastguard Worker// RUN: llvm-mc %s -triple=aarch64_be-none-linux-gnu -filetype=asm -o - \
8*9880d681SAndroid Build Coastguard Worker// RUN:   | FileCheck %s --check-prefix=CHECK-ASM
9*9880d681SAndroid Build Coastguard Worker// RUN: llvm-mc %s -triple=aarch64_be-none-linux-gnu -filetype=obj -o %t
10*9880d681SAndroid Build Coastguard Worker// RUN: llvm-readobj -s -sd %t | FileCheck %s  --check-prefix=CHECK-OBJ
11*9880d681SAndroid Build Coastguard Worker// RUN: llvm-objdump -t %t | FileCheck %s  --check-prefix=CHECK-SYMS
12*9880d681SAndroid Build Coastguard Worker
13*9880d681SAndroid Build Coastguard Worker    .section    .inst.aarch64_inst
14*9880d681SAndroid Build Coastguard Worker
15*9880d681SAndroid Build Coastguard Worker    .p2align  2
16*9880d681SAndroid Build Coastguard Worker    .global aarch64_inst
17*9880d681SAndroid Build Coastguard Worker    .type   aarch64_inst,%function
18*9880d681SAndroid Build Coastguard Workeraarch64_inst:
19*9880d681SAndroid Build Coastguard Worker    .inst 0x5e104020
20*9880d681SAndroid Build Coastguard Worker
21*9880d681SAndroid Build Coastguard Worker// CHECK-ASM:        .p2align  2
22*9880d681SAndroid Build Coastguard Worker// CHECK-ASM:        .globl  aarch64_inst
23*9880d681SAndroid Build Coastguard Worker// CHECK-ASM:        .type   aarch64_inst,@function
24*9880d681SAndroid Build Coastguard Worker// CHECK-ASM: aarch64_inst:
25*9880d681SAndroid Build Coastguard Worker// CHECK-ASM:        .inst   0x5e104020
26*9880d681SAndroid Build Coastguard Worker
27*9880d681SAndroid Build Coastguard Worker// CHECK-OBJ: Section {
28*9880d681SAndroid Build Coastguard Worker// CHECK-OBJ:   Name: .inst.aarch64_inst
29*9880d681SAndroid Build Coastguard Worker// CHECK-OBJ:   SectionData (
30*9880d681SAndroid Build Coastguard Worker// CHECK-OBJ-NEXT: 0000: 2040105E
31*9880d681SAndroid Build Coastguard Worker// CHECK-OBJ-NEXT: )
32*9880d681SAndroid Build Coastguard Worker
33*9880d681SAndroid Build Coastguard Worker// CHECK-SYMS-NOT: 0000000000000000         .inst.aarch64_inst              00000000 $d
34*9880d681SAndroid Build Coastguard Worker// CHECK-SYMS:     0000000000000000         .inst.aarch64_inst              00000000 $x
35*9880d681SAndroid Build Coastguard Worker// CHECK-SYMS-NOT: 0000000000000000         .inst.aarch64_inst              00000000 $d
36