Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Yonah arm64 backend updates #229

Merged
merged 17 commits into from
May 19, 2024

Conversation

YonahGoldberg
Copy link
Contributor

Arm64 backend refactoring to pave way for assembler support.

  • added arm64-linux target
  • removed arm64-darwin target
  • added class Arm64Linux that inherits from class Arm64Backend
  • compiled programs still give InternalError "not implemented"

Copy link
Owner

@titzer titzer left a comment

Choose a reason for hiding this comment

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

Mostly looks good.

config.ExplicitDivChecks = true;
config.ExplicitModChecks = true;
config.IntConvertFUnsigned = false; // no unsigned conversions until AVX?
config.IntConvertFMapsNanToZero = false; // cvts{s,d}2si maps NaN to int.min
Copy link
Owner

Choose a reason for hiding this comment

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

I think these comments aren't accurate for arm.

def genEntryStub() {
prog.ERROR.unimplemented();
mach.fail("not implemented");
Copy link
Owner

Choose a reason for hiding this comment

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

I think it'd be helpful to introduce a method that is unimplemented() to save a little redundancy.

@titzer
Copy link
Owner

titzer commented Apr 4, 2024

This will need to be rebased on the newest changes.

Copy link
Owner

@titzer titzer left a comment

Choose a reason for hiding this comment

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

lgtm other nit. Can you please run aeneas bump to update the version number?


// Override Arm64Backend

def genSigHandlerInstall(signo: int, handler: Addr) { unimplemented(); }
Copy link
Owner

Choose a reason for hiding this comment

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

Formatting is off a little here.

@YonahGoldberg
Copy link
Contributor Author

add00 and add01 are working:

Screenshot 2024-05-17 at 5 14 36 PM

Copy link
Owner

@titzer titzer left a comment

Choose a reason for hiding this comment

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

I think this is good enough to land for now.

@titzer titzer merged commit 4bc627e into titzer:master May 19, 2024
7 checks passed
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.

None yet

2 participants