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