File: thumb2_relax.s

package info (click to toggle)
binutils-avr 2.26.20160125%2BAtmel3.6.2-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 365,552 kB
  • sloc: ansic: 2,480,046; asm: 892,807; exp: 188,218; cpp: 133,829; makefile: 63,886; sh: 32,212; yacc: 26,783; lisp: 16,709; xml: 7,490; perl: 6,449; python: 4,555; ada: 4,318; pascal: 3,174; lex: 2,250; cs: 879; sed: 334; f90: 298; awk: 168; objc: 134; java: 73; fortran: 43
file content (56 lines) | stat: -rw-r--r-- 758 bytes parent folder | download | duplicates (29)
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
	.text
	.thumb
	.syntax unified
thumb2_relax:
	.macro	ls op w=".w"
1:
	\op	r1, [r5]
	\op	r1, [r5, #(far_\op + 4)]
	\op	r1, [r5, #far_\op]
	\op\w	r1, [r5, #far_\op]
	\op	r1, [r5, #-far_\op]
	\op	r1, [r5], #far_\op
	\op	r1, [r5], #far_\op
	\op	r1, [r5, #far_\op]!
	\op	r1, [r5, #-far_\op]!
	\op	r1, [r5, r4]
	\op	r1, [r9, ip]
	\op	r1, 1f
	\op\w	r1, 1f
	\op	r8, 1f
	\op	r1, 2f
	\op	r1, 1b
	.align 2
1:
	nop
2:
	.endm
.equ far_ldrb, 0x1f
.equ far_ldrsb, 0x1f
.equ far_ldrh, 0x3e
.equ far_ldrsh, 0x3e
.equ far_ldr, 0x7c
	ls	ldrb
	ls	ldrsb
	ls	ldrh
	ls	ldrsh
	ls	ldr
	.purgem ls
1:
	adr	r1, 1f
	adr.w	r1, 1f
	adr	r8, 1f
	adr	r1, 2f
	adr	r1, 1b
.align 2
1:
	nop
2:
	nop
	@ Relaxation with conflicting alignment requirements.
	adr	r1, 1f
	adr	r1, 2f
1:
	nop
2:
	nop