aboutsummaryrefslogtreecommitdiff
path: root/gas/testsuite
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2023-07-27 09:13:56 +0930
committerAlan Modra <amodra@gmail.com>2023-07-27 23:38:14 +0930
commitf1036ada3bca6f88340a0a1fbd8b103a3e0cdc2d (patch)
tree6d893fea0f328cb733af22126373c053f83378f8 /gas/testsuite
parentcd2908958ace351831cea7acc87e68a93f395bc6 (diff)
downloadgdb-f1036ada3bca6f88340a0a1fbd8b103a3e0cdc2d.zip
gdb-f1036ada3bca6f88340a0a1fbd8b103a3e0cdc2d.tar.gz
gdb-f1036ada3bca6f88340a0a1fbd8b103a3e0cdc2d.tar.bz2
sh: uninitialised sh_operand_info.type in get_specific
Seen when running gas/testsuite/gas/sh/err-at.s * config/tc-sh.c (get_operands): Always init operand type. * testsuite/gas/sh/err-at.s: Expect unnecessary extra errors.
Diffstat (limited to 'gas/testsuite')
-rw-r--r--gas/testsuite/gas/sh/err-at.s2
1 files changed, 2 insertions, 0 deletions
diff --git a/gas/testsuite/gas/sh/err-at.s b/gas/testsuite/gas/sh/err-at.s
index 648ee94..af5d081 100644
--- a/gas/testsuite/gas/sh/err-at.s
+++ b/gas/testsuite/gas/sh/err-at.s
@@ -4,7 +4,9 @@
start:
mov.l r1,@r0 ! ok
mov.l r1,@(r0) ! { dg-error "syntax error" }
+! { dg-bogus "invalid operands for opcode" "" { xfail *-*-* } 6 }
mov.l r1,@(r0,) ! { dg-error "syntax error" }
+! { dg-bogus "invalid operands for opcode" "" { xfail *-*-* } 8 }
mov.l r1,@(r0,r0) ! ok
mov.l r1,@(r0,r1) ! ok
mov.l r1,@(r1,r0) ! { dg-error "must be" }