From a3ea91081cc611715397f07b9932508def7f0671 Mon Sep 17 00:00:00 2001 From: Alexandre Oliva Date: Thu, 20 Dec 2001 17:28:20 +0000 Subject: [PATCH] * gas/sh/err-at.s: New test. --- gas/testsuite/ChangeLog | 4 ++++ gas/testsuite/gas/sh/err-at.s | 10 ++++++++++ 2 files changed, 14 insertions(+) create mode 100644 gas/testsuite/gas/sh/err-at.s diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index ff489dded32..2c16bdaf931 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2001-12-20 Alexandre Oliva + + * gas/sh/err-at.s: New test. + 2001-12-18 Hans-Peter Nilsson * 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 00000000000..648ee94e140 --- /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" } -- 2.30.2