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 3 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 6 7 .syntax unified 8 9@------------------------------------------------------------------------------- 10@ arm_inst 11@------------------------------------------------------------------------------- 12 .arm 13 14 .section .inst.arm_inst 15 16 .align 2 17 .global arm_inst 18 .type arm_inst,%function 19arm_inst: 20 .inst 0xdefe 21 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: ) 28 29@------------------------------------------------------------------------------- 30@ thumb_inst_n 31@------------------------------------------------------------------------------- 32 .thumb 33 34 .section .inst.thumb_inst_n 35 36 .align 2 37 .global thumb_inst_n 38 .type thumb_inst_n,%function 39thumb_inst_n: 40 .inst.n 0xdefe 41 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: ) 48 49@------------------------------------------------------------------------------- 50@ thumb_inst_w 51@------------------------------------------------------------------------------- 52 .thumb 53 54 .section .inst.thumb_inst_w 55 56 .align 2 57 .global thumb_inst_w 58 .type thumb_inst_w,%function 59thumb_inst_w: 60 .inst.w 0x12345678 61 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: ) 68 69@------------------------------------------------------------------------------- 70@ thumb_inst_w 71@------------------------------------------------------------------------------- 72 .thumb 73 74 .section .inst.thumb_inst_inst 75 76 .align 2 77 .global thumb_inst_inst 78 .type thumb_inst_inst,%function 79thumb_inst_inst: 80 .inst.w 0xf2400000, 0xf2c00000 81 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: ) 88 89