From 5d06e6638e098957651c4a55f42b3089063d00b5 Mon Sep 17 00:00:00 2001 From: Peter Mackay Date: Fri, 10 Jun 2016 08:19:09 +0100 Subject: [PATCH] Add arm_fp_vfp_disabled.py test. --- tests/regress/arm_fp_vfp_disabled.py | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 tests/regress/arm_fp_vfp_disabled.py diff --git a/tests/regress/arm_fp_vfp_disabled.py b/tests/regress/arm_fp_vfp_disabled.py new file mode 100755 index 00000000..1a63223d --- /dev/null +++ b/tests/regress/arm_fp_vfp_disabled.py @@ -0,0 +1,23 @@ +#!/usr/bin/python +# coding=utf8 + +# Added by Peter Mackay, relating to issue 571 +# "ARM NEON/VFP support seems to exist but is disabled by default" +# https://github.com/unicorn-engine/unicorn/issues/571 + +from unicorn import * +from unicorn.arm_const import * + +import regress + +class FpVfpDisabled(regress.RegressTest): + + def runTest(self): + uc = Uc(UC_ARCH_ARM, UC_MODE_THUMB) + uc.mem_map(0x1000, 0x1000) + uc.mem_write(0x1000, '2ded028b'.decode('hex')) # vpush {d8} + uc.reg_write(UC_ARM_REG_SP, 0x2000) + uc.emu_start(0x1000, 0x1004) + +if __name__ == '__main__': + regress.main()