* gas/m68k/operands.s, gas/m68k/operands.d: New test.
[binutils-gdb.git] / gas / testsuite / gas / m68k / bitfield.s
1 # Test handling of bitfield instruction operands.
2 .text
3 .globl foo
4 foo:
5 bfexts (%a0){#1:#2},%d0
6 bfexts (%a0){#1:#(2+4)},%d0
7 bfexts (%a0){#(1+2):#2},%d0
8 bfexts (%a0){#(1+2):#(2+4)},%d0
9 bfexts %a0@,#1,#2,%d0
10 bfexts %a0@,#1,#(2+4),%d0
11 bfexts %a0@,#1+2,#2,%d0
12 bfexts %a0@,#(1+2),#(2+4),%d0
13 bfset (%a0){#1:#2}
14 bfset (%a0){#1:#(2+4)}
15 bfset (%a0){#(1+2):#2}
16 bfset (%a0){#(1+2):#(2+4)}
17 bfset %a0@,#1,#2
18 bfset %a0@,#1,#(2+4)
19 bfset %a0@,#1+2,#2
20 bfset %a0@,#(1+2),#(2+4)
21 bfexts (%a0){%d1:%d2},%d0
22 bfexts %a0@,%d1,%d2,%d0
23 bfset (%a0){%d1:%d2}
24 bfset %a0@,%d1,%d2