mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 02:24:58 -06:00
tests/tcg/xtensa: don't use optional opcodes in generic code
Don't use 'loop' opcode in generic testsuite completion code, only use core opcodes to make it work with any configuration. Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
This commit is contained in:
parent
306a69dad4
commit
fafd553343
1 changed files with 7 additions and 4 deletions
|
@ -23,11 +23,14 @@ main:
|
|||
movi a0, result
|
||||
sub a2, a2, a0
|
||||
movi a3, 0
|
||||
loopnez a2, 1f
|
||||
l8ui a2, a0, 0
|
||||
or a3, a3, a2
|
||||
addi a0, a0, 1
|
||||
beqz a2, 2f
|
||||
1:
|
||||
l8ui a1, a0, 0
|
||||
or a3, a3, a1
|
||||
addi a0, a0, 1
|
||||
addi a2, a2, -1
|
||||
bnez a2, 1b
|
||||
2:
|
||||
exit
|
||||
.endm
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue