File: mips16-reg-error.s

package info (click to toggle)
binutils 2.34-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 328,380 kB
  • sloc: ansic: 1,180,155; asm: 665,310; cpp: 130,540; exp: 69,822; makefile: 57,183; sh: 22,559; yacc: 14,469; lisp: 13,785; perl: 2,112; ada: 1,681; lex: 1,650; pascal: 1,446; cs: 879; sed: 195; python: 154; xml: 95; awk: 25
file content (81 lines) | stat: -rw-r--r-- 1,092 bytes parent folder | download | duplicates (16)
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
	.text

	.ent	foo
	.set	mips16
foo:
	ld	$4, $3($2)
	ld	$4, $3($pc)
	ld	$4, $3($sp)
	lw	$4, $3($2)
	lw	$4, $3($pc)
	lw	$4, $3($sp)
	lwu	$4, $3($2)
	lh	$4, $3($2)
	lhu	$4, $3($2)
	lb	$4, $3($2)
	lbu	$4, $3($2)

	sd	$4, $3($2)
	sd	$4, $3($sp)
	sd	$ra, $3($sp)
	sw	$4, $3($2)
	sw	$4, $3($sp)
	sw	$ra, $3($sp)
	sh	$4, $3($2)
	sb	$4, $3($2)

	addiu	$3, $2
	addiu	$4, $3, $2
	addiu	$3, $pc, $2
	addiu	$sp, $2
	addiu	$3, $sp, $2

	daddiu	$3, $2
	daddiu	$4, $3, $2
	daddiu	$3, $pc, $2
	daddiu	$sp, $2
	daddiu	$3, $sp, $2

	slti	$3, $2
	sltiu	$3, $2

	cmpi	$3, $2
	cmp	$3, $2
	li	$3, $2

	sll	$3, $2, $2
	sra	$3, $2, $2
	srl	$3, $2, $2
	dsll	$3, $2, $2
	dsra	$3, $2
	dsrl	$3, $2

	break	$2
	sdbbp	$2

	b	$2
	beqz	$3, $2
	bnez	$3, $2
	bteqz	$2
	btnez	$2

	jal	$2
	jalx	$2

	save	$31, $16, $2
	restore	$31, $16, $2

	asmacro	0, 0, 0, 0, 0, $2
	asmacro	0, 0, 0, 0, $2, 0
	asmacro	0, 0, 0, $2, 0, 0
	asmacro	0, 0, $2, 0, 0, 0
	asmacro	0, $2, 0, 0, 0, 0
	asmacro	$2, 0, 0, 0, 0, 0

	nop
	.set	nomips16
	.end	foo

# Force some (non-delay-slot) zero bytes, to make 'objdump' print ...
	.align	4, 0
	.space	16