summaryrefslogtreecommitdiff
path: root/gas/testsuite/gas/m32r/wrongsize.s
blob: 088f4789438cd01a1971f18514f4accc8a91a4f4 (plain)
1
2
3
4
5
6
7
8
9
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" }