[obj2yaml] - Fix a comment. NFC.
[llvm-complete.git] / test / MC / ARM / inst-directive.s
blob290bd7d029e419776ceebc1da9fd61e4b3a856e8
1 @ RUN: llvm-mc %s -triple=armv7-linux-gnueabi -filetype=obj -o - \
2 @ RUN: | llvm-readobj -S --sd | FileCheck %s --check-prefix=CHECK --check-prefix=CHECK-LE
4 @ RUN: llvm-mc %s -triple=armebv7-linux-gnueabi -filetype=obj -o - \
5 @ RUN: | llvm-readobj -S --sd | FileCheck %s --check-prefix=CHECK --check-prefix=CHECK-BE
7 .syntax unified
9 @-------------------------------------------------------------------------------
10 @ arm_inst
11 @-------------------------------------------------------------------------------
12 .arm
14 .section .inst.arm_inst
16 .align 2
17 .global arm_inst
18 .type arm_inst,%function
19 arm_inst:
20 .inst 0xdefe
22 @ CHECK: Section {
23 @ CHECK: Name: .inst.arm_inst
24 @ CHECK: SectionData (
25 @ CHECK-LE-NEXT: 0000: FEDE0000
26 @ CHECK-BE-NEXT: 0000: 0000DEFE
27 @ CHECK-NEXT: )
29 @-------------------------------------------------------------------------------
30 @ thumb_inst_n
31 @-------------------------------------------------------------------------------
32 .thumb
34 .section .inst.thumb_inst_n
36 .align 2
37 .global thumb_inst_n
38 .type thumb_inst_n,%function
39 thumb_inst_n:
40 .inst.n 0xdefe
42 @ CHECK: Section {
43 @ CHECK: Name: .inst.thumb_inst_n
44 @ CHECK: SectionData (
45 @ CHECK-LE-NEXT: 0000: FEDE
46 @ CHECK-BE-NEXT: 0000: DEFE
47 @ CHECK-NEXT: )
49 @-------------------------------------------------------------------------------
50 @ thumb_inst_w
51 @-------------------------------------------------------------------------------
52 .thumb
54 .section .inst.thumb_inst_w
56 .align 2
57 .global thumb_inst_w
58 .type thumb_inst_w,%function
59 thumb_inst_w:
60 .inst.w 0x12345678
62 @ CHECK: Section {
63 @ CHECK: Name: .inst.thumb_inst_w
64 @ CHECK: SectionData (
65 @ CHECK-LE-NEXT: 0000: 34127856
66 @ CHECK-BE-NEXT: 0000: 12345678
67 @ CHECK-NEXT: )
69 @-------------------------------------------------------------------------------
70 @ thumb_inst_w
71 @-------------------------------------------------------------------------------
72 .thumb
74 .section .inst.thumb_inst_inst
76 .align 2
77 .global thumb_inst_inst
78 .type thumb_inst_inst,%function
79 thumb_inst_inst:
80 .inst.w 0xf2400000, 0xf2c00000
82 @ CHECK: Section {
83 @ CHECK: Name: .inst.thumb_inst_inst
84 @ CHECK: SectionData (
85 @ CHECK-LE-NEXT: 0000: 40F20000 C0F20000
86 @ CHECK-BE-NEXT: 0000: F2400000 F2C00000
87 @ CHECK-NEXT: )