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

Use inline immediates for constants #42

Merged
merged 1 commit into from
Mar 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions fidget/src/jit/aarch64/float_slice.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,10 +146,10 @@ impl Assembler for FloatSliceAssembler {
//
// We're actually loading two f32s, but we can pretend they're
// doubles in order to move 64 bits at a time
; ldr q0, [x0], #16
; ldr q1, [x1], #16
; ldr q2, [x2], #16
; sub x5, x5, #4 // We handle 4 items at a time
; ldr q0, [x0], 16
; ldr q1, [x1], 16
; ldr q2, [x2], 16
; sub x5, x5, 4 // We handle 4 items at a time
);

Self(out)
Expand Down Expand Up @@ -309,7 +309,7 @@ impl Assembler for FloatSliceAssembler {
// It's fine to overwrite X at this point in V0, since we're not
// using it anymore.
; mov v0.d[0], V(reg(out_reg)).d[1]
; stp D(reg(out_reg)), d0, [x4], #16
; stp D(reg(out_reg)), d0, [x4], 16
; b ->L

; ->E:
Expand Down