From b4f2bb63da2e0c5098a79b5d400bd499ace97144 Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Tue, 5 Nov 1996 20:35:04 +0000 Subject: [PATCH] * gas/mn10300/basic.exp: Check bit patterns for indexed mov, movbu, movhu instructions. Check bit patterns for more bit operations. Check bit patterns for various 16bit call, retf and ret instructions. * gas/mn10300/other.s: Update operands for better test coverage. Improving testsuite coverage. --- gas/testsuite/ChangeLog | 12 ++++++++++-- gas/testsuite/gas/mn10300/basic.exp | 29 +++++++++++++++-------------- gas/testsuite/gas/mn10300/other.s | 20 ++++++++++++++++++++ 3 files changed, 45 insertions(+), 16 deletions(-) create mode 100755 gas/testsuite/gas/mn10300/other.s diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index f94782a5a32..bf32b502862 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,7 +1,15 @@ +Tue Nov 5 13:33:12 1996 Jeffrey A Law (law@cygnus.com) + + * gas/mn10300/basic.exp: Check bit patterns for indexed mov, + movbu, movhu instructions. Check bit patterns for more bit + operations. Check bit patterns for various 16bit call, retf + and ret instructions. + * gas/mn10300/other.s: Update operands for better test coverage. + Mon Nov 4 12:55:11 1996 Jeffrey A Law (law@cygnus.com) - * gas/mn10300/basic.exp: Check bit patterns for a - couple more mov and cmp instructions. + * gas/mn10300/basic.exp: Check bit patterns for a couple more + mov and cmp instructions. Tue Oct 29 17:05:43 1996 Ian Lance Taylor diff --git a/gas/testsuite/gas/mn10300/basic.exp b/gas/testsuite/gas/mn10300/basic.exp index aa532524902..1c6d77d1188 100755 --- a/gas/testsuite/gas/mn10300/basic.exp +++ b/gas/testsuite/gas/mn10300/basic.exp @@ -112,13 +112,13 @@ proc do_bit {} { -re "^ +\[0-9\]+ 0000 F8ED40\[^\n\]*\n" { set x [expr $x+1] } -re "^ +\[0-9\]+ 0003 FAEE2000\[^\n\]*\n" { set x [expr $x+1] } -re "^ +\[0-9\]+ 0007\[^\n\]*\n" { set x [expr $x+1] } - -re "^ +\[0-9\]+ 000d\[^\n\]*\n" { set x [expr $x+1] } + -re "^ +\[0-9\]+ 000d FAF90840\[^\n\]*\n" { set x [expr $x+1] } -re "^ +\[0-9\]+ 0011\[^\n\]*\n" { set x [expr $x+1] } -re "^ +\[0-9\]+ 0018 F086\[^\n\]*\n" { set x [expr $x+1] } - -re "^ +\[0-9\]+ 001a\[^\n\]*\n" { set x [expr $x+1] } + -re "^ +\[0-9\]+ 001a FAF10840\[^\n\]*\n" { set x [expr $x+1] } -re "^ +\[0-9\]+ 001e\[^\n\]*\n" { set x [expr $x+1] } -re "^ +\[0-9\]+ 0025 F096\[^\n\]*\n" { set x [expr $x+1] } - -re "^ +\[0-9\]+ 0027\[^\n\]*\n" { set x [expr $x+1] } + -re "^ +\[0-9\]+ 0027 FAF50840\[^\n\]*\n" { set x [expr $x+1] } -re "^ +\[0-9\]+ 002b\[^\n\]*\n" { set x [expr $x+1] } -re "\[^\n\]*\n" { } timeout { perror "timeout\n"; break } @@ -366,7 +366,7 @@ proc do_mov2 {} { while 1 { expect { -re "^ +\[0-9\]+ 0000\[^\n\]*\n" { set x [expr $x+1] } - -re "^ +\[0-9\]+ 0006\[^\n\]*\n" { set x [expr $x+1] } + -re "^ +\[0-9\]+ 0006 F325\[^\n\]*\n" { set x [expr $x+1] } -re "^ +\[0-9\]+ 0008 318000\[^\n\]*\n" { set x [expr $x+1] } -re "^ +\[0-9\]+ 000b\[^\n\]*\n" { set x [expr $x+1] } -re "^ +\[0-9\]+ 0011 F006\[^\n\]*\n" { set x [expr $x+1] } @@ -376,7 +376,7 @@ proc do_mov2 {} { -re "^ +\[0-9\]+ 0020 5D08\[^\n\]*\n" { set x [expr $x+1] } -re "^ +\[0-9\]+ 0022 FAB10100\[^\n\]*\n" { set x [expr $x+1] } -re "^ +\[0-9\]+ 0026\[^\n\]*\n" { set x [expr $x+1] } - -re "^ +\[0-9\]+ 002c\[^\n\]*\n" { set x [expr $x+1] } + -re "^ +\[0-9\]+ 002c F3A5\[^\n\]*\n" { set x [expr $x+1] } -re "^ +\[0-9\]+ 002e FAA18000\[^\n\]*\n" { set x [expr $x+1] } -re "^ +\[0-9\]+ 0032\[^\n\]*\n" { set x [expr $x+1] } -re "^ +\[0-9\]+ 0038 F8F120\[^\n\]*\n" { set x [expr $x+1] } @@ -412,7 +412,7 @@ proc do_mov3 {} { -re "^ +\[0-9\]+ 000e 4620\[^\n\]*\n" { set x [expr $x+1] } -re "^ +\[0-9\]+ 0010 FA958000\[^\n\]*\n" { set x [expr $x+1] } -re "^ +\[0-9\]+ 0014\[^\n\]*\n" { set x [expr $x+1] } - -re "^ +\[0-9\]+ 001a\[^\n\]*\n" { set x [expr $x+1] } + -re "^ +\[0-9\]+ 001a F35A\[^\n\]*\n" { set x [expr $x+1] } -re "^ +\[0-9\]+ 001c 050080\[^\n\]*\n" { set x [expr $x+1] } -re "^ +\[0-9\]+ 001f\[^\n\]*\n" { set x [expr $x+1] } -re "^ +\[0-9\]+ 0025 F016\[^\n\]*\n" { set x [expr $x+1] } @@ -447,7 +447,7 @@ proc do_mov4 {} { expect { -re "^ +\[0-9\]+ 0000 FA948000\[^\n\]*\n" { set x [expr $x+1] } -re "^ +\[0-9\]+ 0004\[^\n\]*\n" { set x [expr $x+1] } - -re "^ +\[0-9\]+ 000a\[^\n\]*\n" { set x [expr $x+1] } + -re "^ +\[0-9\]+ 000a F3DA\[^\n\]*\n" { set x [expr $x+1] } -re "^ +\[0-9\]+ 000c FA840080\[^\n\]*\n" { set x [expr $x+1] } -re "^ +\[0-9\]+ 0010\[^\n\]*\n" { set x [expr $x+1] } -re "^ +\[0-9\]+ 0016 F8F520\[^\n\]*\n" { set x [expr $x+1] } @@ -489,7 +489,7 @@ proc do_movbu {} { -re "^ +\[0-9\]+ 000f F8B908\[^\n\]*\n" { set x [expr $x+1] } -re "^ +\[0-9\]+ 0012 FAB90100\[^\n\]*\n" { set x [expr $x+1] } -re "^ +\[0-9\]+ 0016\[^\n\]*\n" { set x [expr $x+1] } - -re "^ +\[0-9\]+ 001c\[^\n\]*\n" { set x [expr $x+1] } + -re "^ +\[0-9\]+ 001c F425\[^\n\]*\n" { set x [expr $x+1] } -re "^ +\[0-9\]+ 001e 358000\[^\n\]*\n" { set x [expr $x+1] } -re "^ +\[0-9\]+ 0021\[^\n\]*\n" { set x [expr $x+1] } -re "^ +\[0-9\]+ 0027 F056\[^\n\]*\n" { set x [expr $x+1] } @@ -499,7 +499,7 @@ proc do_movbu {} { -re "^ +\[0-9\]+ 0036 F89620\[^\n\]*\n" { set x [expr $x+1] } -re "^ +\[0-9\]+ 0039 FA968000\[^\n\]*\n" { set x [expr $x+1] } -re "^ +\[0-9\]+ 003d\[^\n\]*\n" { set x [expr $x+1] } - -re "^ +\[0-9\]+ 0043\[^\n\]*\n" { set x [expr $x+1] } + -re "^ +\[0-9\]+ 0043 F45A\[^\n\]*\n" { set x [expr $x+1] } -re "^ +\[0-9\]+ 0045 060080\[^\n\]*\n" { set x [expr $x+1] } -re "^ +\[0-9\]+ 0048\[^\n\]*\n" { set x [expr $x+1] } -re "\[^\n\]*\n" { } @@ -534,7 +534,7 @@ proc do_movhu {} { -re "^ +\[0-9\]+ 000f F8BD08\[^\n\]*\n" { set x [expr $x+1] } -re "^ +\[0-9\]+ 0012 FABD0100\[^\n\]*\n" { set x [expr $x+1] } -re "^ +\[0-9\]+ 0016\[^\n\]*\n" { set x [expr $x+1] } - -re "^ +\[0-9\]+ 001c\[^\n\]*\n" { set x [expr $x+1] } + -re "^ +\[0-9\]+ 001c F4A5\[^\n\]*\n" { set x [expr $x+1] } -re "^ +\[0-9\]+ 001e 398000\[^\n\]*\n" { set x [expr $x+1] } -re "^ +\[0-9\]+ 0021\[^\n\]*\n" { set x [expr $x+1] } -re "^ +\[0-9\]+ 0027 F076\[^\n\]*\n" { set x [expr $x+1] } @@ -544,7 +544,7 @@ proc do_movhu {} { -re "^ +\[0-9\]+ 0036 F89720\[^\n\]*\n" { set x [expr $x+1] } -re "^ +\[0-9\]+ 0039 FA978000\[^\n\]*\n" { set x [expr $x+1] } -re "^ +\[0-9\]+ 003d\[^\n\]*\n" { set x [expr $x+1] } - -re "^ +\[0-9\]+ 0043\[^\n\]*\n" { set x [expr $x+1] } + -re "^ +\[0-9\]+ 0043 F4DA\[^\n\]*\n" { set x [expr $x+1] } -re "^ +\[0-9\]+ 0045 070080\[^\n\]*\n" { set x [expr $x+1] } -re "^ +\[0-9\]+ 0048\[^\n\]*\n" { set x [expr $x+1] } -re "\[^\n\]*\n" { } @@ -637,13 +637,14 @@ proc do_other {} { -re "^ +\[0-9\]+ 0004 F0F6\[^\n\]*\n" { set x [expr $x+1] } -re "^ +\[0-9\]+ 0006 CC0100\[^\n\]*\n" { set x [expr $x+1] } -re "^ +\[0-9\]+ 0009\[^\n\]*\n" { set x [expr $x+1] } - -re "^ +\[0-9\]+ 000e\[^\n\]*\n" { set x [expr $x+1] } + -re "^ +\[0-9\]+ 000e CD010005\[^\n\]*\n +\[0-9\]+ +09\[^\n\]*\n" + { set x [expr $x+1] } -re "^ +\[0-9\]+ 0013\[^\n\]*\n" { set x [expr $x+1] } -re "^ +\[0-9\]+ 001a F0F2\[^\n\]*\n" { set x [expr $x+1] } -re "^ +\[0-9\]+ 001c FAFF0100\[^\n\]*\n" { set x [expr $x+1] } -re "^ +\[0-9\]+ 0020\[^\n\]*\n" { set x [expr $x+1] } - -re "^ +\[0-9\]+ 0026\[^\n\]*\n" { set x [expr $x+1] } - -re "^ +\[0-9\]+ 0029\[^\n\]*\n" { set x [expr $x+1] } + -re "^ +\[0-9\]+ 0026 DF0F07\[^\n\]*\n" { set x [expr $x+1] } + -re "^ +\[0-9\]+ 0029 DE0905\[^\n\]*\n" { set x [expr $x+1] } -re "^ +\[0-9\]+ 002c F0FC\[^\n\]*\n" { set x [expr $x+1] } -re "^ +\[0-9\]+ 002e F0FD\[^\n\]*\n" { set x [expr $x+1] } -re "^ +\[0-9\]+ 0030 F0FE\[^\n\]*\n" { set x [expr $x+1] } diff --git a/gas/testsuite/gas/mn10300/other.s b/gas/testsuite/gas/mn10300/other.s new file mode 100755 index 00000000000..42d1e274589 --- /dev/null +++ b/gas/testsuite/gas/mn10300/other.s @@ -0,0 +1,20 @@ + .text + clr d2 + inc d1 + inc a2 + inc4 a3 + jmp a2 + jmp 256 + jmp 65536 + call 256,5,9 + call 65536,0,0 + calls a2 + calls 256 + calls 65536 + ret 15,7 + retf 9,5 + rets + rti + trap + nop + rtm -- 2.30.2