89 lines · plain
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-LE3 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-BE6 7 .syntax unified8 9@-------------------------------------------------------------------------------10@ arm_inst11@-------------------------------------------------------------------------------12 .arm13 14 .section .inst.arm_inst15 16 .align 217 .global arm_inst18 .type arm_inst,%function19arm_inst:20 .inst 0xdefe21 22@ CHECK: Section {23@ CHECK: Name: .inst.arm_inst24@ CHECK: SectionData (25@ CHECK-LE-NEXT: 0000: FEDE000026@ CHECK-BE-NEXT: 0000: 0000DEFE27@ CHECK-NEXT: )28 29@-------------------------------------------------------------------------------30@ thumb_inst_n31@-------------------------------------------------------------------------------32 .thumb33 34 .section .inst.thumb_inst_n35 36 .align 237 .global thumb_inst_n38 .type thumb_inst_n,%function39thumb_inst_n:40 .inst.n 0xdefe41 42@ CHECK: Section {43@ CHECK: Name: .inst.thumb_inst_n44@ CHECK: SectionData (45@ CHECK-LE-NEXT: 0000: FEDE46@ CHECK-BE-NEXT: 0000: DEFE47@ CHECK-NEXT: )48 49@-------------------------------------------------------------------------------50@ thumb_inst_w51@-------------------------------------------------------------------------------52 .thumb53 54 .section .inst.thumb_inst_w55 56 .align 257 .global thumb_inst_w58 .type thumb_inst_w,%function59thumb_inst_w:60 .inst.w 0x1234567861 62@ CHECK: Section {63@ CHECK: Name: .inst.thumb_inst_w64@ CHECK: SectionData (65@ CHECK-LE-NEXT: 0000: 3412785666@ CHECK-BE-NEXT: 0000: 1234567867@ CHECK-NEXT: )68 69@-------------------------------------------------------------------------------70@ thumb_inst_w71@-------------------------------------------------------------------------------72 .thumb73 74 .section .inst.thumb_inst_inst75 76 .align 277 .global thumb_inst_inst78 .type thumb_inst_inst,%function79thumb_inst_inst:80 .inst.w 0xf2400000, 0xf2c0000081 82@ CHECK: Section {83@ CHECK: Name: .inst.thumb_inst_inst84@ CHECK: SectionData (85@ CHECK-LE-NEXT: 0000: 40F20000 C0F2000086@ CHECK-BE-NEXT: 0000: F2400000 F2C0000087@ CHECK-NEXT: )88 89