diff options
author | Alexandre Oliva <aoliva@redhat.com> | 2001-12-20 17:28:20 +0000 |
---|---|---|
committer | Alexandre Oliva <aoliva@redhat.com> | 2001-12-20 17:28:20 +0000 |
commit | a3ea91081cc611715397f07b9932508def7f0671 (patch) | |
tree | d90ed8135f85539caebe08b1636f43bd95d0ab8b | |
parent | 8d4d84c202991e99b753fafd5e3d063fb0b9dc75 (diff) | |
download | gdb-a3ea91081cc611715397f07b9932508def7f0671.zip gdb-a3ea91081cc611715397f07b9932508def7f0671.tar.gz gdb-a3ea91081cc611715397f07b9932508def7f0671.tar.bz2 |
* gas/sh/err-at.s: New test.
-rw-r--r-- | gas/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gas/testsuite/gas/sh/err-at.s | 10 |
2 files changed, 14 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index ff489dd..2c16bdaf 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2001-12-20 Alexandre Oliva <aoliva@redhat.com> + + * gas/sh/err-at.s: New test. + 2001-12-18 Hans-Peter Nilsson <hp@axis.com> * gas/cris/rd-dw2-10.d: Tweak for change in gas dwarf2 line number diff --git a/gas/testsuite/gas/sh/err-at.s b/gas/testsuite/gas/sh/err-at.s new file mode 100644 index 0000000..648ee94 --- /dev/null +++ b/gas/testsuite/gas/sh/err-at.s @@ -0,0 +1,10 @@ +! { dg-do assemble } + +! Make sure we reject the invalid uses below: +start: + mov.l r1,@r0 ! ok + mov.l r1,@(r0) ! { dg-error "syntax error" } + mov.l r1,@(r0,) ! { dg-error "syntax error" } + mov.l r1,@(r0,r0) ! ok + mov.l r1,@(r0,r1) ! ok + mov.l r1,@(r1,r0) ! { dg-error "must be" } |