* gas/sh/err-at.s: New test.
authorAlexandre Oliva <aoliva@redhat.com>
Thu, 20 Dec 2001 17:28:20 +0000 (17:28 +0000)
committerAlexandre Oliva <aoliva@redhat.com>
Thu, 20 Dec 2001 17:28:20 +0000 (17:28 +0000)
gas/testsuite/ChangeLog
gas/testsuite/gas/sh/err-at.s [new file with mode: 0644]

index ff489dded32d8d485aa3fcd4bff3f346ea16dc93..2c16bdaf9319e359b4afa63888f3d0f29c1e3b6a 100644 (file)
@@ -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 (file)
index 0000000..648ee94
--- /dev/null
@@ -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" }