mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 01:03:55 -06:00
tests: tcg: lm32: add more test cases
Esp. for testing zero/sign extend in compare operations. Signed-off-by: Michael Walle <michael@walle.cc>
This commit is contained in:
parent
608a03c1df
commit
6036e9d87e
4 changed files with 61 additions and 1 deletions
|
@ -52,4 +52,19 @@ mvi r3, 0
|
|||
cmpgeui r3, r3, 0
|
||||
check_r3 1
|
||||
|
||||
test_name CMPGEUI_11
|
||||
mvi r1, 0
|
||||
cmpgeui r3, r1, 0x8000
|
||||
check_r3 0
|
||||
|
||||
test_name CMPGEUI_12
|
||||
mvi r1, -1
|
||||
cmpgeui r3, r1, 0x8000
|
||||
check_r3 1
|
||||
|
||||
test_name CMPGEUI_13
|
||||
ori r1, r0, 0x8000
|
||||
cmpgeui r3, r1, 0x8000
|
||||
check_r3 1
|
||||
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue