]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gas/testsuite/gas/m32r/wrongsize.s
config:
[thirdparty/binutils-gdb.git] / gas / testsuite / gas / m32r / wrongsize.s
CommitLineData
93c6c015
DE
1; Test error messages in instances where an insn of a particular size
2; is required.
3
4; { dg-do assemble { target m32r-*-* } }
5
6wrongsize:
7 cmpi r8,#10 -> ldi r0,#8 ; { dg-error "not a 16 bit instruction" }
8 ldi r0,#8 -> cmpi r8,#10 ; { dg-error "not a 16 bit instruction" }
9 cmpi r8,#10 || ldi r0,#8 ; { dg-error "not a 16 bit instruction" }
10 ldi r0,#8 || cmpi r8,#10 ; { dg-error "not a 16 bit instruction" }