summaryrefslogtreecommitdiffstats
path: root/llvm/test/MC/ARM/assembler-fill.s
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/MC/ARM/assembler-fill.s')
-rw-r--r--llvm/test/MC/ARM/assembler-fill.s23
1 files changed, 23 insertions, 0 deletions
diff --git a/llvm/test/MC/ARM/assembler-fill.s b/llvm/test/MC/ARM/assembler-fill.s
new file mode 100644
index 00000000000..8c7dfbff0a6
--- /dev/null
+++ b/llvm/test/MC/ARM/assembler-fill.s
@@ -0,0 +1,23 @@
+// RUN: llvm-mc --triple=thumbv7eb-linux-gnueabihf %s -filetype=obj | llvm-objdump -triple=thumbv7eb-linux-gnueabihf -s - | FileCheck %s
+
+// CHECK: Contents of section .text
+// CHECK-NEXT: 0000 d000bf00
+
+// Make sure we emit in correct endianness.
+
+// CHECK: Contents of section .data
+// CHECK-NEXT: 0000 12341234 1234
+
+ .syntax unified
+ .text
+ .thumb
+ .thumb_func
+.L1:
+ beq Label
+.L2:
+ nop
+Label:
+
+ .data
+ .short 0x1234
+ .fill (.L2 - .L1), 2, 0x1234
OpenPOWER on IntegriCloud