Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
Zipr Toolchain
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
Container Registry
Model registry
Operate
Environments
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
Open Source Software
Zipr Toolchain
Commits
2ad8c74d
Commit
2ad8c74d
authored
6 years ago
by
Jason Hiser
Browse files
Options
Downloads
Patches
Plain Diff
adjusted cmp sanity checking for switches
Former-commit-id: 641a3c629f59485e1decbffd082a5bcef5e5b6e9
parent
db763549
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libIRDB/test/fill_in_indtargs.cpp
+2
-2
2 additions, 2 deletions
libIRDB/test/fill_in_indtargs.cpp
with
2 additions
and
2 deletions
libIRDB/test/fill_in_indtargs.cpp
+
2
−
2
View file @
2ad8c74d
...
@@ -1167,7 +1167,7 @@ I6 0xdd25 <+53>: movsxd rsi,DWORD PTR [rcx+rsi*4]
...
@@ -1167,7 +1167,7 @@ I6 0xdd25 <+53>: movsxd rsi,DWORD PTR [rcx+rsi*4]
I7 0xdd29 <+57>: add rsi,rcx
I7 0xdd29 <+57>: add rsi,rcx
I8 0xdd2c <+60>: jmp rsi
I8 0xdd2c <+60>: jmp rsi
Note: Here the operands of the add are reversed, so lookup code was not finding I5 where it was expected.
Note: Here the operands of the add are reversed, so lookup code was not finding I5 where it was expected.
c
#endif
#endif
...
@@ -1376,7 +1376,7 @@ Note: Here the operands of the add are reversed, so lookup code was not finding
...
@@ -1376,7 +1376,7 @@ Note: Here the operands of the add are reversed, so lookup code was not finding
//Disassemble(I1,d1);
//Disassemble(I1,d1);
DecodedInstruction_t
d1
(
I1
);
DecodedInstruction_t
d1
(
I1
);
table_size
=
d1
.
getImmediate
()
/*Instruction.Immediat*/
;
table_size
=
d1
.
getImmediate
()
/*Instruction.Immediat*/
;
if
(
table_size
<=
0
)
if
(
table_size
<=
2
)
{
{
// set table_size to be very large, so we can still do pinning appropriately
// set table_size to be very large, so we can still do pinning appropriately
cout
<<
"pic64: found I1 ('"
<<
d1
.
getDisassembly
()
/*CompleteInstr*/
<<
"'), but could not find size of switch table"
<<
endl
;
cout
<<
"pic64: found I1 ('"
<<
d1
.
getDisassembly
()
/*CompleteInstr*/
<<
"'), but could not find size of switch table"
<<
endl
;
...
...
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