Skip to content

Conversation

@adinn
Copy link
Collaborator

@adinn adinn commented Jun 16, 2017

This patch fixes a problem introduced into AArch64 by a previous truffle compiler fix.

Testing:
The patch fixes all the unit tests which were failing because of a broken tbz implementation.

n.b. 12 CountedLoop tests are still failing but that is due to an unrelated error to do with missing frame state for a SafeSignedDiv node

@axel22 axel22 self-requested a review June 16, 2017 10:24
* @param uimm6 Unsigned 6-bit bit index.
* @param imm16 signed 16 bit offset
* @param pos Position at which instruction is inserted into buffer. -1 means insert at end.
*/
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems like you could optionally factor out tbz and tbnz into a common function called e.g. testBitAndBranch, and pass only the encoding to it.

I have no strong feelings, however - as you prefer.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I suppose I could but I don't see it as anything to worry much about.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds great, should land soon then!

@axel22
Copy link
Member

axel22 commented Jun 16, 2017

LGTM, with an optional comment.

@axel22 axel22 self-assigned this Jun 16, 2017
@dougxc dougxc merged commit f01e529 into oracle:master Jun 16, 2017
dougxc pushed a commit that referenced this pull request Jun 16, 2017
@adinn adinn deleted the aarch64_tbz_patch branch June 23, 2017 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants