Nirav Dave | 588fad4 | 2018-05-18 17:45:48 +0000 | [diff] [blame] | 1 | // RUN: llvm-mc --triple=thumbv7eb-linux-gnueabihf %s -filetype=obj | llvm-objdump -triple=thumbv7eb-linux-gnueabihf -s - | FileCheck %s |
| 2 | |
| 3 | // CHECK: Contents of section .text |
| 4 | // CHECK-NEXT: 0000 d000bf00 |
| 5 | |
| 6 | // Make sure we emit in correct endianness. |
| 7 | |
| 8 | // CHECK: Contents of section .data |
| 9 | // CHECK-NEXT: 0000 12341234 1234 |
| 10 | |
| 11 | .syntax unified |
| 12 | .text |
| 13 | .thumb |
| 14 | .thumb_func |
| 15 | .L1: |
| 16 | beq Label |
| 17 | .L2: |
| 18 | nop |
| 19 | Label: |
| 20 | |
| 21 | .data |
| 22 | .short 0x1234 |
| 23 | .fill (.L2 - .L1), 2, 0x1234 |