Saleem Abdulrasool | c0da2cb | 2013-12-19 05:17:58 +0000 | [diff] [blame] | 1 | @ RUN: llvm-mc %s -triple=armv7-linux-gnueabi -filetype=obj -o - \ |
| 2 | @ RUN: | llvm-readobj -s -sd | FileCheck %s |
| 3 | |
| 4 | .syntax unified |
| 5 | |
| 6 | @------------------------------------------------------------------------------- |
| 7 | @ arm_inst |
| 8 | @------------------------------------------------------------------------------- |
| 9 | .arm |
| 10 | |
| 11 | .section .inst.arm_inst |
| 12 | |
| 13 | .align 2 |
| 14 | .global arm_inst |
| 15 | .type arm_inst,%function |
| 16 | arm_inst: |
| 17 | .inst 0xdefe |
| 18 | |
| 19 | @ CHECK: Section { |
| 20 | @ CHECK: Name: .inst.arm_inst |
| 21 | @ CHECK: SectionData ( |
| 22 | @ CHECK-NEXT: 0000: FEDE0000 |
| 23 | @ CHECK-NEXT: ) |
| 24 | |
| 25 | @------------------------------------------------------------------------------- |
| 26 | @ thumb_inst_n |
| 27 | @------------------------------------------------------------------------------- |
| 28 | .thumb |
| 29 | |
| 30 | .section .inst.thumb_inst_n |
| 31 | |
| 32 | .align 2 |
| 33 | .global thumb_inst_n |
| 34 | .type thumb_inst_n,%function |
| 35 | thumb_inst_n: |
| 36 | .inst.n 0xdefe |
| 37 | |
| 38 | @ CHECK: Section { |
| 39 | @ CHECK: Name: .inst.thumb_inst_n |
| 40 | @ CHECK: SectionData ( |
| 41 | @ CHECK-NEXT: 0000: FEDE |
| 42 | @ CHECK-NEXT: ) |
| 43 | |
| 44 | @------------------------------------------------------------------------------- |
| 45 | @ thumb_inst_w |
| 46 | @------------------------------------------------------------------------------- |
| 47 | .thumb |
| 48 | |
| 49 | .section .inst.thumb_inst_w |
| 50 | |
| 51 | .align 2 |
| 52 | .global thumb_inst_w |
| 53 | .type thumb_inst_w,%function |
| 54 | thumb_inst_w: |
| 55 | .inst.w 0x00000000 |
| 56 | |
| 57 | @ CHECK: Section { |
| 58 | @ CHECK: Name: .inst.thumb_inst_w |
| 59 | @ CHECK: SectionData ( |
| 60 | @ CHECK-NEXT: 0000: 00000000 |
| 61 | @ CHECK-NEXT: ) |
| 62 | |
| 63 | @------------------------------------------------------------------------------- |
| 64 | @ thumb_inst_w |
| 65 | @------------------------------------------------------------------------------- |
| 66 | .thumb |
| 67 | |
| 68 | .section .inst.thumb_inst_inst |
| 69 | |
| 70 | .align 2 |
| 71 | .global thumb_inst_inst |
| 72 | .type thumb_inst_inst,%function |
| 73 | thumb_inst_inst: |
| 74 | .inst.w 0xf2400000, 0xf2c00000 |
| 75 | |
| 76 | @ CHECK: Section { |
| 77 | @ CHECK: Name: .inst.thumb_inst_inst |
| 78 | @ CHECK: SectionData ( |
| 79 | @ CHECK-NEXT: 0000: 40F20000 C0F20000 |
| 80 | @ CHECK-NEXT: ) |
| 81 | |