ARM: Correct several inconsistencies with ldrd and strd - lightning.git - Portable just-in-time compiler library

index : lightning.git
Portable just-in-time compiler library
summary refs log tree commit diff
path: root/check/check.arm.swf.sh
diff options
context:
space:
mode:
authorpcpa <paulo.cesar.pereira.de.andrade@gmail.com>2014年11月20日 15:05:13 -0200
committerpcpa <paulo.cesar.pereira.de.andrade@gmail.com>2014年11月20日 15:05:13 -0200
commit3f397228f5f1f27f3a8a264530a11895fbc9fb79 (patch)
tree20dc64e5c09586197a1738c66cbc8c943e1840e4 /check/check.arm.swf.sh
parent7b449aa0638b978c6a551edf35611beefeaf9f14 (diff)
downloadlightning-3f397228f5f1f27f3a8a264530a11895fbc9fb79.tar.gz
ARM: Correct several inconsistencies with ldrd and strd
* lib/jit_disasm.c: Change thumb or arm disassemble based on jit code before disassembly. * lib/jit_arm-cpu.c: Correct reversed arguments to LDRD and STRD instructions, and correct checking for support of those. * lib/jit_arm-swf.c: Correct wrong use of LDRD and STRD and only use those if the register is even. * check/check.arm.swf.sh, check/check.arm4.swf.sh: New files to test LDRD and STRD, as well as the alternate code path when those are not available, in the .arm4. test case. * check/Makefile.am: Update for the new test cases.
Diffstat (limited to 'check/check.arm.swf.sh')
-rwxr-xr-xcheck/check.arm.swf.sh 15
1 files changed, 15 insertions, 0 deletions
diff --git a/check/check.arm.swf.sh b/check/check.arm.swf.sh
new file mode 100755
index 0000000..378b6d7
--- /dev/null
+++ b/check/check.arm.swf.sh
@@ -0,0 +1,15 @@
+#!/bin/sh
+test=`basename 0ドル | sed -e 's|\.arm\.swf$||'`
+./lightning -mthumb=0 -mvfp=0 $srcdir/$test.tst | tr -d \\r > $test.out
+if test $? != 0; then
+ exit $?
+fi
+
+cmp -s $srcdir/$test.ok $test.out
+result=$?
+if test $result != 0; then
+ diff $srcdir/$test.ok $test.out
+ rm $test.out
+ exit 1
+fi
+rm $test.out
generated by cgit v1.2.3 (git 2.39.1) at 2025年09月17日 15:47:55 +0000

AltStyle によって変換されたページ (->オリジナル) /