Logo
Explore Help
Sign In
dfaggioli/qemu
1
0
Fork 0
You've already forked qemu
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
Files
2c91bcf273ffb95898d2ca901b699558d9e73fd1
qemu/tests/tcg/lm32/test_scall.S

25 lines
301 B
ArmAsm
Raw Normal View History

lm32: opcode testsuite This patch creates tests/lm32 directory and adds tests for every LatticeMico32 opcode. Signed-off-by: Michael Walle <michael@walle.cc> Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
2011-02-17 23:45:16 +01:00
.include "macros.inc"
start
test_name SCALL_1
mvi r1, 1
wcsr IE, r1
test: lm32: use semihosting for testing Instead of the lm32-sys device, use semihosting to print to the host console and exit the test. Signed-off-by: Michael Walle <michael@walle.cc>
2014-04-22 20:18:43 +02:00
# we are running in a semi hosted environment
# therefore we have to set r8 to some unused system
# call
mvi r8, 0
lm32: opcode testsuite This patch creates tests/lm32 directory and adds tests for every LatticeMico32 opcode. Signed-off-by: Michael Walle <michael@walle.cc> Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
2011-02-17 23:45:16 +01:00
insn:
scall
check_excp 64
test_name SCALL_2
mv r3, ea
check_r3 insn
test_name SCALL_3
rcsr r3, IE
check_r3 2
end
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 320ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API