summaryrefslogtreecommitdiff
path: root/test/immwarn.asm
Commit message (Collapse)AuthorAgeFilesLines
* New opcode for 32->64 bit sign-extended immediate with warningH. Peter Anvin2008-10-071-1/+1
| | | | | | | | | | | | Add a new opcode for 32->64 bit sign-extended immediate, with warning on the number not matching. This unfortunately calls for an audit of all the \4[0123] opcodes, if they should be replaced by \25[4567]. This only replaces one instruction (MOV reg64,imm32); other instructions need to be considered. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* test/immwarn.asm: add a few more non-warning testsH. Peter Anvin2008-10-071-0/+2
| | | | | | A few non-warning conditions. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Avoid double warning for signed dword immediateH. Peter Anvin2008-10-061-1/+1
| | | | | | | Avoid double warning for the case where a signed dword immediate is incorrectly extended to 64 bits. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* New opcodes to deal with 8-bit immediate sign extended to opsizeH. Peter Anvin2008-10-061-4/+3
| | | | | | | | | New opcodes to deal with 8-bit immediates which are then sign-extended to the operand size. These allow us to warn appropriately. Not sure I'm using these in all the proper places; need audit of all uses of the \14..\17 opcodes. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* immwarn: more immediate warnings test, with notes of where we failH. Peter Anvin2008-10-061-5/+41
| | | | | | | More tests for immediate warnings, with notes for the ones where we currently fail to do the right thing. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* test: change .stdout/.stderr to stdout/stderrH. Peter Anvin2008-10-061-4/+4
| | | | | | | | Using hidden files are rather antisocial, and rather pointless in this particular context. Change .stdout and .stderr to simply stdout and stderr. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* test/immwarn.asm: new test for immediate warningsH. Peter Anvin2008-10-051-0/+54
Test for various conditions that should or should not generate immediate warnings. Signed-off-by: H. Peter Anvin <hpa@zytor.com>