-
-
Notifications
You must be signed in to change notification settings - Fork 34
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
ASM output removing labels used by cbz
and cbnz
instructions on aarch64
#318
Comments
Is this actual or expected output? And what should the other output should be? |
Sorry, I forgot to include that. The expected result would be: .globl _strchr
.p2align 2
_strchr:
ldrb w9, [x0]
cbz w9, LBB439_4
and w8, w1, #0xff
LBB439_2:
cmp w9, w8
b.eq LBB439_5
ldrb w9, [x0, #1]!
cbnz w9, LBB439_2
LBB439_4:
mov x0, #0
LBB439_5:
ret |
Will take a look. Can you include the |
Sure! Here it is: |
0.2.41 is out, this issue should be fixed. |
I noticed that the output of
cargo asm
on aarch64 removes the labels used on the branching instructionscbz
andcbnz
.I made a simple
strchr
example:Output:
Expected result should be:
I tested this on aarch64 macOS and Linux and this happens to these instruction on both.
The text was updated successfully, but these errors were encountered: