Commit | Line | Data |
---|---|---|
252b5132 RH |
1 | # Test architecture mismatch errors. |
2 | # | |
3 | # GAS issues two lines of error text for each mismatch: | |
4 | # | |
5 | # mm-lite.s:7: Error: Architecture mismatch on "divscc". | |
6 | # mm-lite.s:7: (Requires sparclite; requested architecture is v8.) | |
7 | # | |
8 | # The suggested regexp argument to dg-error is "mismatch|<arch>". | |
9 | ||
10 | if [istarget sparc*-*-*] { | |
11 | ||
12 | load_lib gas-dg.exp | |
13 | ||
14 | dg-init | |
15 | ||
16 | dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/mism-*.s]] "" "" | |
17 | ||
18 | dg-finish | |
19 | ||
20 | } |