We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
void mset (int *a, long long num) { for (long long i=0; i< num; i++) a[i] = 2; }
mset: cmp x1, 0 ble .L1 mov x2, 0 cntw x3 whilelo p7.s, xzr, x1 mov z31.s, #2 .L3: st1w z31.s, p7, [x0, x2, lsl 2] add x2, x2, x3 -- before the whilelo whilelo p7.s, x2, x1 b.any .L3
mset: // @mset cmp x1, #1 b.lt .LBB0_3 cntw x8 mov z0.s, #2 // =0x2 mov x10, xzr subs x9, x1, x8 csel x9, xzr, x9, lo ---> this is redundant compare to gcc ?? whilelo p0.s, xzr, x1 .LBB0_2: // =>This Inner Loop Header: Depth=1 st1w { z0.s }, p0, [x0, x10, lsl #2] whilelo p0.s, x10, x9 add x10, x10, x8 -- after the whilelo b.mi .LBB0_2
The text was updated successfully, but these errors were encountered:
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
The text was updated successfully, but these errors were encountered: