File: relax_ujmp.d

package info (click to toggle)
binutils-djgpp 2.35.1%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid
  • size: 321,256 kB
  • sloc: ansic: 1,162,947; asm: 671,219; cpp: 134,012; exp: 70,783; makefile: 55,860; sh: 22,254; yacc: 14,459; lisp: 13,806; perl: 2,008; lex: 1,649; pascal: 307; sed: 195; awk: 25
file content (32 lines) | stat: -rw-r--r-- 744 bytes parent folder | download | duplicates (20)
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
32
#name: NIOS2 relax_ujmp
#as: -relax-all
#ld: --relax -Trelax_jmp.ld
#source: relax_ujmp.s
#objdump: -dr --prefix-addresses 

# Test relaxation of unconditional jumps

.*: +file format elf32-littlenios2

Disassembly of section text2:
00000000 <[^>]*> br	00008000 <[^>]*>
00000004 <[^>]*> movhi	at,1
00000008 <[^>]*> ori	at,at,16
0000000c <[^>]*> jmp	at
00000010 <[^>]*> br	0000001c <sym>
00000014 <[^>]*> nop
00000018 <[^>]*> nop
0000001c <sym> nop

Disassembly of section text1:
00008000 <[^>]*> br	00010000 <on_border>
00008004 <[^>]*> movhi	at,1
00008008 <[^>]*> ori	at,at,16
0000800c <[^>]*> jmp	at
#...
00010000 <on_border> br	00010010 <in_range>
00010004 <[^>]*> nop
00010008 <[^>]*> nop
0001000c <[^>]*> nop
00010010 <in_range> nop
#pass