summaryrefslogtreecommitdiff
path: root/test/MC/ARM/relax-thumb2-branches.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/MC/ARM/relax-thumb2-branches.s')
-rw-r--r--test/MC/ARM/relax-thumb2-branches.s14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/MC/ARM/relax-thumb2-branches.s b/test/MC/ARM/relax-thumb2-branches.s
new file mode 100644
index 0000000000..7916d42407
--- /dev/null
+++ b/test/MC/ARM/relax-thumb2-branches.s
@@ -0,0 +1,14 @@
+@ RUN: llvm-mc -triple=thumbv7-apple-darwin -show-encoding %s -filetype=obj -o - | macho-dump --dump-section-data | FileCheck %s
+
+ ble Lfoo @ wide encoding
+
+ .space 258
+Lfoo:
+ nop
+
+ ble Lbaz @ narrow encoding
+ .space 256
+Lbaz:
+
+@ CHECK: '_section_data', '40f38180
+@ CHECK: 000000bf 7fdd