~pali/+junk/llvm-toolchain-3.7

« back to all changes in this revision

Viewing changes to test/MC/MachO/ARM/thumb-bl-jbits.s

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2015-07-15 17:51:08 UTC
  • Revision ID: package-import@ubuntu.com-20150715175108-l8mynwovkx4zx697
Tags: upstream-3.7~+rc2
ImportĀ upstreamĀ versionĀ 3.7~+rc2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
@ RUN: llvm-mc -triple=thumbv7-apple-darwin -filetype=obj -o - < %s | macho-dump --dump-section-data | 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
# CHECK: '_section_data', 'c3f7fcf5'
 
15
# We are checking that the branch and link instruction which is:
 
16
#       bl      #-4441096
 
17
# has it displacement encoded correctly with respect to the J1 and J2 bits when
 
18
# the branch is assembled with a label not a displacement.
 
19
# rdar://10149689