summaryrefslogtreecommitdiffstats
path: root/binutils-2.17/gas/testsuite/gas/hppa/basic/extract2.s
blob: 8075ba7a93812113634b5bc8540ebe52b04b0767 (plain)
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
	.code
	.align 4
; Basic immediate instruction tests.  
;
; We could/should test some of the corner cases for register and 
; immediate fields.  We should also check the assorted field
; selectors to make sure they're handled correctly.
	extrw,u %r4,5,10,%r6
	extrw,u,= %r4,5,10,%r6
	extrw,u,< %r4,5,10,%r6
	extrw,u,od %r4,5,10,%r6
	extrw,u,tr %r4,5,10,%r6
	extrw,u,<> %r4,5,10,%r6
	extrw,u,>= %r4,5,10,%r6
	extrw,u,ev %r4,5,10,%r6

	extrw,s %r4,5,10,%r6
	extrw,s,= %r4,5,10,%r6
	extrw,s,< %r4,5,10,%r6
	extrw,s,od %r4,5,10,%r6
	extrw,tr %r4,5,10,%r6
	extrw,<> %r4,5,10,%r6
	extrw,>= %r4,5,10,%r6
	extrw,ev %r4,5,10,%r6

	extrw,u %r4,%sar,5,%r6
	extrw,u,= %r4,%sar,5,%r6
	extrw,u,< %r4,%sar,5,%r6
	extrw,u,od %r4,%sar,5,%r6
	extrw,u,tr %r4,%sar,5,%r6
	extrw,u,<> %r4,%sar,5,%r6
	extrw,u,>= %r4,%sar,5,%r6
	extrw,u,ev %r4,%sar,5,%r6
	
	extrw,s %r4,%sar,5,%r6
	extrw,s,= %r4,%sar,5,%r6
	extrw,s,< %r4,%sar,5,%r6
	extrw,s,od %r4,%sar,5,%r6
	extrw,tr %r4,%sar,5,%r6
	extrw,<> %r4,%sar,5,%r6
	extrw,>= %r4,%sar,5,%r6
	extrw,ev %r4,%sar,5,%r6