summaryrefslogtreecommitdiff
path: root/gas/testsuite/gas/hppa/basic/shift2.s
blob: f1bee3c63bfe35cda03f1429d65f1f0fcee7bec0 (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
	.code
	.align 4
; PA 2.0 format shift right 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.
	shrpw %r4,%r5,%sar,%r6
	shrpw,= %r4,%r5,%sar,%r6
	shrpw,< %r4,%r5,%sar,%r6
	shrpw,od %r4,%r5,%sar,%r6
	shrpw,tr %r4,%r5,%cr11,%r6
	shrpw,<> %r4,%r5,%cr11,%r6
	shrpw,>= %r4,%r5,%cr11,%r6
	shrpw,ev %r4,%r5,%cr11,%r6

	shrpw %r4,%r5,5,%r6
	shrpw,= %r4,%r5,5,%r6
	shrpw,< %r4,%r5,5,%r6
	shrpw,od %r4,%r5,5,%r6
	shrpw,tr %r4,%r5,5,%r6
	shrpw,<> %r4,%r5,5,%r6
	shrpw,>= %r4,%r5,5,%r6
	shrpw,ev %r4,%r5,5,%r6