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

* Xcode11.4: fix for source register must be sp if destination is sp #461

Merged
merged 1 commit into from
Mar 7, 2020

Conversation

dkimitsa
Copy link
Contributor

recent changes in LLVM doesn't allow sub/add operations when Rd is SP and Rs is not (as instructions were deprecated by ARM). So code was rewritten as bellow:
from

sub sp, r7, #4.  ; sp = r7 - 4

to

sub r7, r7, #4. ; r7 = r7 - 4
mov sp, r7      ; sp = r7

Sadly have no 32 bit enabled device at hand to validate (will check once pick one)

…p if destination is sp` when compiling with xcode 11.4
@Tom-Ski Tom-Ski merged commit 440216c into MobiVM:jdk12 Mar 7, 2020
@dkimitsa dkimitsa deleted the jdk12_fix_xcode11_4 branch March 8, 2020 12:45
dkimitsa added a commit to dkimitsa/robovm that referenced this pull request Apr 9, 2020
…p if destination is sp` when compiling with xcode 11.4 (MobiVM#461)
dkimitsa added a commit to dkimitsa/robovm that referenced this pull request Apr 9, 2020
…p if destination is sp` when compiling with xcode 11.4 (MobiVM#461)
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.

2 participants