1 @ RUN: llvm-mc -triple=thumbv7-apple-darwin -filetype=obj -o - < %s | llvm-readobj -s -sd | FileCheck %s 2 .thumb 3 .thumb_func t 4 t: nop 5 6 .data 7 .space 4441096 - 4 - 2 8 9 .section __TEXT, __branch, regular, pure_instructions 10 .thumb 11 .thumb_func b 12 b: 13 bl t 14 # We are checking that the branch and link instruction which is: 15 # bl #-4441096 16 # has it displacement encoded correctly with respect to the J1 and J2 bits when 17 # the branch is assembled with a label not a displacement. 18 # rdar://10149689 19 20 # CHECK: Section { 21 # CHECK: Index: 2 22 # CHECK: Name: __branch (5F 5F 62 72 61 6E 63 68 00 00 00 00 00 00 00 00) 23 # CHECK: Segment: __TEXT (5F 5F 54 45 58 54 00 00 00 00 00 00 00 00 00 00) 24 # CHECK: SectionData ( 25 # CHECK: 0000: C3F7FCF5 |....| 26 # CHECK: ) 27 # CHECK: } 28