+2009-09-11 Hans-Peter Nilsson <hp@bitrange.com>
+
+ PR gas/10623
+ * gas/mmix/err-swym1.s, gas/mmix/swym-opreg1.d,
+ gas/mmix/swym-opreg1.s, gas/mmix/swym-opreg2.d,
+ gas/mmix/swym-opreg2.s: New tests.
+ * gas/mmix/odd-1.d: Adjust for reloc change.
+
2009-09-11 Alan Modra <amodra@bigpond.net.au>
* gas/lns/lns-common-1.s: Use two nops between each .loc.
--- /dev/null
+% { dg-do assemble { target mmix-*-* } }
+ SWYM 256*256*256 % { dg-error "invalid operands" "" }
+ SWYM -1 % { dg-error "invalid operands" "" }
+ SWYM 99,256*256 % { dg-error "invalid operands" "" }
+ SWYM 99,-1 % { dg-error "invalid operands" "" }
+ SWYM 256,1,2 % { dg-error "invalid operands" "" }
+ SWYM 1,256,2 % { dg-error "invalid operands" "" }
+ SWYM 1,2,256 % { dg-error "invalid operands" "" }
+ SWYM -1,1,2 % { dg-error "invalid operands" "" }
+ SWYM 1,-1,2 % { dg-error "invalid operands" "" }
+ SWYM 1,2,-1 % { dg-error "invalid operands" "" }
+ SWYM 256,1 % { dg-error "invalid operands" "" }
+ SWYM -1,1 % { dg-error "invalid operands" "" }
+ SWYM 1,2,3,4 % { dg-error "invalid operands" "" }
+ SWYM 1,2,3,4,5 % { dg-error "invalid operands" "" }
RELOCATION RECORDS FOR \[\.text\]:
OFFSET TYPE VALUE
-0+7 R_MMIX_REG_OR_BYTE \.MMIX\.reg_contents
+0+7 R_MMIX_8 \.MMIX\.reg_contents
0+f R_MMIX_REG \.MMIX\.reg_contents
0+15 R_MMIX_REG \.MMIX\.reg_contents
0+19 R_MMIX_REG \.MMIX\.reg_contents
--- /dev/null
+# objdump: -dr
+.*: file format elf64-mmix
+
+Disassembly of section \.text:
+
+0+ <Main>:
+ 0: fd000005 swym 0,0,5
+ 4: fd000005 swym 0,0,5
+ 8: fd020005 swym 2,0,5
+ c: fd020005 swym 2,0,5
+ 10: fd010203 swym 1,2,3
+ 14: fd010203 swym 1,2,3
+ 18: fd010203 swym 1,2,3
+ 1c: fd010203 swym 1,2,3
+ 20: 00000005 trap 0,0,5
+ 24: 00000005 trap 0,0,5
+ 28: 00020005 trap 2,0,5
+ 2c: 00020005 trap 2,0,5
+ 30: 00010203 trap 1,2,3
+ 34: 00010203 trap 1,2,3
+ 38: 00010203 trap 1,2,3
+ 3c: 00010203 trap 1,2,3
+ 40: ff0b1621 trip 11,22,33
+ 44: fd00007b swym 0,0,123
+ 48: fd7bb26e swym 123,178,110
+ 4c: ff12d687 trip 18,214,135
+ 50: 007b002d trap 123,0,45
+ 54: 007bb26e trap 123,178,110
+ 58: fffeff01 trip 254,255,1
+ 5c: fd63ff00 swym 99,255,0
+
--- /dev/null
+Main SWYM 0,5
+ SWYM $0,5
+ SWYM $2,5
+ SWYM $2,0,5
+ SWYM 1,2,3
+ SWYM $1,$2,3
+ SWYM $1,$2,$3
+ SWYM 1,2,$3
+ TRAP 0,5
+ TRAP $0,5
+ TRAP $2,5
+ TRAP $2,0,5
+ TRAP 1,2,3
+ TRAP $1,$2,3
+ TRAP $1,$2,$3
+ TRAP 1,2,$3
+ TRIP $11,22,$33
+ SWYM $123
+ SWYM $123,45678
+ TRIP 1234567
+ TRAP 123,$45
+ TRAP 123,45678
+ TRIP 255*255*257
+ SWYM 99,255*256
--- /dev/null
+# objdump: -dr
+.*: file format elf64-mmix
+
+Disassembly of section \.text:
+
+0+ <Main>:
+ 0: 00000000 trap 0,0,0
+ 1: R_MMIX_24 foo\+0x237
--- /dev/null
+Main TRAP foo+567