mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-21 18:39:34 +08:00
* gas/m32r/error.exp: New error testcase driver.
* gas/m32r/wrongsize.s: New testcase. PR 18135.
This commit is contained in:
@ -6,6 +6,9 @@ start-sanitize-m32rx
|
|||||||
* gas/m32r/fslotx.[sd]: New testcase.
|
* gas/m32r/fslotx.[sd]: New testcase.
|
||||||
* gas/m32r/m32rx.exp: Run it.
|
* gas/m32r/m32rx.exp: Run it.
|
||||||
* gas/m32r/m32rx.[sd]: Update.
|
* gas/m32r/m32rx.[sd]: Update.
|
||||||
|
|
||||||
|
* gas/m32r/error.exp: New error testcase driver.
|
||||||
|
* gas/m32r/wrongsize.s: New testcase.
|
||||||
end-sanitize-m32rx
|
end-sanitize-m32rx
|
||||||
|
|
||||||
start-sanitize-r5900
|
start-sanitize-r5900
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
|
|
||||||
Do-first:
|
Do-first:
|
||||||
|
|
||||||
m32rx_files="fslotx.s fslotx.d m32rx.s m32rx.d m32rx.exp"
|
m32rx_files="fslotx.s fslotx.d m32rx.s m32rx.d m32rx.exp error.exp wrongsize.s"
|
||||||
if ( echo $* | grep keep\-m32rx > /dev/null ) ; then
|
if ( echo $* | grep keep\-m32rx > /dev/null ) ; then
|
||||||
keep_these_too="${m32rx_files} ${keep_these_too}"
|
keep_these_too="${m32rx_files} ${keep_these_too}"
|
||||||
else
|
else
|
||||||
|
13
gas/testsuite/gas/m32r/error.exp
Normal file
13
gas/testsuite/gas/m32r/error.exp
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
# Test assembler warnings and errors.
|
||||||
|
|
||||||
|
if [istarget m32r-*-*] {
|
||||||
|
|
||||||
|
load_lib gas-dg.exp
|
||||||
|
|
||||||
|
dg-init
|
||||||
|
|
||||||
|
dg-runtest "$srcdir/$subdir/wrongsize.s" "" ""
|
||||||
|
|
||||||
|
dg-finish
|
||||||
|
|
||||||
|
}
|
10
gas/testsuite/gas/m32r/wrongsize.s
Normal file
10
gas/testsuite/gas/m32r/wrongsize.s
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
; Test error messages in instances where an insn of a particular size
|
||||||
|
; is required.
|
||||||
|
|
||||||
|
; { dg-do assemble { target m32r-*-* } }
|
||||||
|
|
||||||
|
wrongsize:
|
||||||
|
cmpi r8,#10 -> ldi r0,#8 ; { dg-error "not a 16 bit instruction" }
|
||||||
|
ldi r0,#8 -> cmpi r8,#10 ; { dg-error "not a 16 bit instruction" }
|
||||||
|
cmpi r8,#10 || ldi r0,#8 ; { dg-error "not a 16 bit instruction" }
|
||||||
|
ldi r0,#8 || cmpi r8,#10 ; { dg-error "not a 16 bit instruction" }
|
Reference in New Issue
Block a user