summaryrefslogtreecommitdiff
path: root/gas/testsuite/gas/mips/add.s
blob: 44e964bdd22231ca9fa8a430ba08aeb2142a1372 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Source file used to test the add macro.
	
foo:
	add	$4,$4,0
	add	$4,$4,1
	add	$4,$4,0x8000
	add	$4,$4,-0x8000
	add	$4,$4,0x10000
	add	$4,$4,0x1a5a5
	
# addu is handled the same way add is; just confirm that it isn't
# totally broken.
	addu	$4,$4,1

# Round to a 16 byte boundary, for ease in testing multiple targets.
	nop