File: sparc64-bpr-offset.s

package info (click to toggle)
swiftlang 6.0.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,519,992 kB
  • sloc: cpp: 9,107,863; ansic: 2,040,022; asm: 1,135,751; python: 296,500; objc: 82,456; f90: 60,502; lisp: 34,951; pascal: 19,946; sh: 18,133; perl: 7,482; ml: 4,937; javascript: 4,117; makefile: 3,840; awk: 3,535; xml: 914; fortran: 619; cs: 573; ruby: 573
file content (31 lines) | stat: -rw-r--r-- 1,173 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
! RUN: llvm-mc -arch=sparcv9 -filetype=obj %s | llvm-objdump -d - | FileCheck %s --check-prefix=BIN

        !! SPARCv9/SPARC64 BPr branches have different offset encoding from the others,
        !! make sure that our offset bits don't trample on other fields.
        !! This is particularly important with backwards branches.

        ! BIN:  0: 02 c8 40 01  	brz %g1, 1
        ! BIN:  4: 04 c8 40 01  	brlez %g1, 1
        ! BIN:  8: 06 c8 40 01  	brlz %g1, 1
        ! BIN:  c: 0a c8 40 01  	brnz %g1, 1
        ! BIN: 10: 0c c8 40 01  	brgz %g1, 1
        ! BIN: 14: 0e c8 40 01  	brgez %g1, 1
        brz   %g1, .+4
        brlez %g1, .+4
        brlz  %g1, .+4
        brnz  %g1, .+4
        brgz  %g1, .+4
        brgez %g1, .+4

        ! BIN: 18: 02 f8 7f ff  	brz %g1, 65535
        ! BIN: 1c: 04 f8 7f ff  	brlez %g1, 65535
        ! BIN: 20: 06 f8 7f ff  	brlz %g1, 65535
        ! BIN: 24: 0a f8 7f ff  	brnz %g1, 65535
        ! BIN: 28: 0c f8 7f ff  	brgz %g1, 65535
        ! BIN: 2c: 0e f8 7f ff  	brgez %g1, 65535
        brz   %g1, .-4
        brlez %g1, .-4
        brlz  %g1, .-4
        brnz  %g1, .-4
        brgz  %g1, .-4
        brgez %g1, .-4