Skip to content

Commit

Permalink
Use inline immediates for constants (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
mkeeter authored Mar 21, 2024
1 parent 45aad6c commit 796b465
Showing 1 changed file with 5 additions and 5 deletions.
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

0 comments on commit 796b465

Please sign in to comment.