mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-01-26 01:43:34 +08:00
* gas/sparc/{asi,membar,prefetch,rdpr,synth64,wrpr}.d: Pass -Av9
to gas. * gas/sparc/addend.exp: Execute for any sparc cpu. * gas/sparc/{mismatch.exp,mism-1.s}: New test.
This commit is contained in:
parent
d8b42b96d1
commit
753075b261
@ -1,3 +1,10 @@
|
|||||||
|
Mon Feb 19 02:43:36 1996 Doug Evans <dje@charmed.cygnus.com>
|
||||||
|
|
||||||
|
* gas/sparc/{asi,membar,prefetch,rdpr,synth64,wrpr}.d: Pass -Av9
|
||||||
|
to gas.
|
||||||
|
* gas/sparc/addend.exp: Execute for any sparc cpu.
|
||||||
|
* gas/sparc/{mismatch.exp,mism-1.s}: New test.
|
||||||
|
|
||||||
Wed Feb 14 13:49:59 1996 Ian Lance Taylor <ian@cygnus.com>
|
Wed Feb 14 13:49:59 1996 Ian Lance Taylor <ian@cygnus.com>
|
||||||
|
|
||||||
* gas/mips/jal-xgot.d, gas/mips/la-xgot.d: New tests.
|
* gas/mips/jal-xgot.d, gas/mips/la-xgot.d: New tests.
|
||||||
|
@ -27,6 +27,8 @@ asi.d
|
|||||||
asi.s
|
asi.s
|
||||||
membar.d
|
membar.d
|
||||||
membar.s
|
membar.s
|
||||||
|
mismatch.exp
|
||||||
|
mism-1.s
|
||||||
prefetch.d
|
prefetch.d
|
||||||
prefetch.s
|
prefetch.s
|
||||||
rdpr.d
|
rdpr.d
|
||||||
|
22
gas/testsuite/gas/sparc/mism-1.s
Normal file
22
gas/testsuite/gas/sparc/mism-1.s
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
! Test architecture mismatch warnings.
|
||||||
|
! We don't test every possible mismatch, we just want to be reasonable sure
|
||||||
|
! the mismatch checking code works.
|
||||||
|
!
|
||||||
|
! { dg-do assemble { target sparc*-*-* } }
|
||||||
|
! { dg-options -Av6 }
|
||||||
|
|
||||||
|
! sparclite
|
||||||
|
|
||||||
|
divscc %g1,%g2,%g3 ! { dg-error "mismatch|sparclite" "sparclite divscc mismatch" }
|
||||||
|
|
||||||
|
scan %g1,%g2,%g3 ! { dg-error "mismatch|sparclite" "sparclite scan mismatch" }
|
||||||
|
|
||||||
|
! v9
|
||||||
|
|
||||||
|
movrz %g1,%g2,%g3 ! { dg-error "mismatch|v9" "v9 fp reg mismatch" }
|
||||||
|
|
||||||
|
! v9a
|
||||||
|
|
||||||
|
shutdown ! { dg-error "mismatch|v9a" "v9a shutdown mismatch" }
|
||||||
|
|
||||||
|
foo:
|
20
gas/testsuite/gas/sparc/mismatch.exp
Normal file
20
gas/testsuite/gas/sparc/mismatch.exp
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
# Test architecture mismatch errors.
|
||||||
|
#
|
||||||
|
# GAS issues two lines of error text for each mismatch:
|
||||||
|
#
|
||||||
|
# mm-lite.s:7: Error: Architecture mismatch on "divscc".
|
||||||
|
# mm-lite.s:7: (Requires sparclite; requested architecture is v8.)
|
||||||
|
#
|
||||||
|
# The suggested regexp argument to dg-error is "mismatch|<arch>".
|
||||||
|
|
||||||
|
if [istarget sparc*-*-*] {
|
||||||
|
|
||||||
|
load_lib gas-dg.exp
|
||||||
|
|
||||||
|
dg-init
|
||||||
|
|
||||||
|
dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/mism-*.s]] "" ""
|
||||||
|
|
||||||
|
dg-finish
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user