Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Keystone
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Third Party Mirrors
Keystone
Commits
3bae3044
Commit
3bae3044
authored
8 years ago
by
Nguyen Anh Quynh
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' of
https://github.com/keystone-engine/keystone
parents
a8b5b28b
904b4a0d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
suite/regress/usr/bin/arm_blx_rel_thumb2.py
+22
-0
22 additions, 0 deletions
suite/regress/usr/bin/arm_blx_rel_thumb2.py
with
22 additions
and
0 deletions
suite/regress/usr/bin/arm_blx_rel_thumb2.py
0 → 100644
+
22
−
0
View file @
3bae3044
#!/usr/bin/python
# This tests the relative BLX instruction for Thumb-mode
# Github issue: #166
# Author: McLovi9
from
keystone
import
*
import
regress
class
TestARM
(
regress
.
RegressTest
):
def
runTest
(
self
):
# Initialize Keystone engine
ks
=
Ks
(
KS_ARCH_ARM
,
KS_MODE_THUMB
)
# Assemble to get back insn encoding & statement count
encoding
,
count
=
ks
.
asm
(
b
"
BLX 0xF4000134
"
,
addr
=
0xF400048A
)
# Assert the result
self
.
assertEqual
(
encoding
,
[
0xFF
,
0xF7
,
0x54
,
0xEE
])
if
__name__
==
'
__main__
'
:
regress
.
main
()
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment