daily update
[external/binutils.git] / gas / testsuite / gas / m68hc11 / m68hc11.exp
index b151390..89ad226 100644 (file)
@@ -32,6 +32,7 @@ proc gas_m68hc11_opcode_list { flags expect_count } {
 
 gas_m68hc11_opcode_list "-m68hc11" 149
 gas_m68hc11_opcode_list "-m68hc12" 192
+gas_m68hc11_opcode_list "-m68hcs12" 192
 
 
 # Test for a message produced when assembling a file
@@ -42,7 +43,7 @@ proc gas_m68hc11_message { kind options line expect } {
     regsub -all "\n" "$line: $expect" " " title
 
     # Make a file containing the instructions to assemble.
-    set fd [open "$srcdir/$subdir/tst-m68hc1x.s" "w"];
+    set fd [open "$srcdir/$subdir/tst-m68hc1x.s" "w"]
     puts -nonewline $fd "$line"
     close $fd
 
@@ -139,13 +140,25 @@ gas_m68hc11_error "-m68hc12" "movb 200,x,3,y\n" \
     "Offset out of 5-bit range for movw/movb insn: 200"
 gas_m68hc11_error "-m68hc12" "movb 2,x,300,y\n" \
     "Offset out of 5-bit range for movw/movb insn: 300"
+gas_m68hc11_error "-m68hc12" "movb 2,x,bar,y\nbar=300\n" \
+    "Offset out of 5-bit range for movw/movb insn: 300"
+gas_m68hc11_error "-m68hc12" "movb bar,y,2,x\nbar=300\n" \
+    "Offset out of 5-bit range for movw/movb insn: 300"
+gas_m68hc11_error "-m68hc12" "movb 200,pc,3,y\n" \
+    "Offset out of 5-bit range for movw/movb insn: 200"
+gas_m68hc11_error "-m68hc12" "movb 2,x,300,pc\n" \
+    "Offset out of 5-bit range for movw/movb insn: 300"
+gas_m68hc11_error "-m68hc12" "movb 2,x,bar,pc\nbar=300\n" \
+    "Offset out of 5-bit range for movw/movb insn: 300"
+gas_m68hc11_error "-m68hc12" "movb bar,pc,2,x\nbar=300\n" \
+    "Offset out of 5-bit range for movw/movb insn: 300"
 
 # ------------------
 # Specific commands
 gas_m68hc11_warning "" ".mode \"bar\"\n" "Invalid mode: .bar."
 gas_m68hc11_error "" ".relax 23\n" "bad .relax format"
 gas_m68hc11_error "" ".relax bar-23\n" "bad .relax format"
-gas_m68hc11_warning "" ".far bar bar\n" "rest of line ignored"
+gas_m68hc11_error "" ".far bar bar\n" "junk at end of line"
 
 
 run_dump_test insns
@@ -153,6 +166,9 @@ run_dump_test lbranch
 run_dump_test all_insns
 run_dump_test insns-dwarf2
 run_dump_test lbranch-dwarf2
+run_dump_test abi-m68hc11-16-64
+run_dump_test abi-m68hc11-16-32
+run_dump_test abi-m68hc11-32-64
 
 # Compliance with Motorola Assembly Language Input Standard
 run_dump_test malis
@@ -164,3 +180,4 @@ run_dump_test branchs12
 run_dump_test insns12
 run_dump_test indexed12
 run_dump_test bug-1825
+run_dump_test movb