summaryrefslogtreecommitdiff
path: root/gas/testsuite/gas/m68k/bitfield.s
blob: 4d2f758255a42d70c665ab7abb021c25d59288e7 (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
# Test handling of bitfield instruction operands.
	.text
	.globl	foo
foo:	
	bfexts	(%a0){&1:&2},%d0
	bfexts	(%a0){&1:&(2+4)},%d0
	bfexts	(%a0){&(1+2):&2},%d0
	bfexts	(%a0){&(1+2):&(2+4)},%d0
	bfexts	%a0@,&1,&2,%d0
	bfexts	%a0@,&1,&(2+4),%d0
	bfexts	%a0@,&1+2,&2,%d0
	bfexts	%a0@,&(1+2),&(2+4),%d0
	bfset	(%a0){&1:&2}
	bfset	(%a0){&1:&(2+4)}
	bfset	(%a0){&(1+2):&2}
	bfset	(%a0){&(1+2):&(2+4)}
	bfset	%a0@,&1,&2
	bfset	%a0@,&1,&(2+4)
	bfset	%a0@,&1+2,&2
	bfset	%a0@,&(1+2),&(2+4)
	bfexts	(%a0){%d1:%d2},%d0
	bfexts	%a0@,%d1,%d2,%d0
	bfset	(%a0){%d1:%d2}
	bfset	%a0@,%d1,%d2