summaryrefslogtreecommitdiff
path: root/gas/testsuite/gas/sparc/mismatch.exp
blob: 6f89de2a2446f8f65a0164a0c737a9c9ae0365be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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

}