Skip to content

Commit

Permalink
Simplify variable name: change inst_ to inst
Browse files Browse the repository at this point in the history
  • Loading branch information
abrown committed Nov 13, 2019
1 parent a2b28f9 commit 215884e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions cranelift/codegen/meta/src/isa/x86/encodings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2069,8 +2069,8 @@ pub(crate) fn define(
(I16, x86_pminu, &PMINUW[..], Some(use_sse41_simd)),
(I32, x86_pminu, &PMINUD[..], Some(use_sse41_simd)),
] {
let inst_ = inst.bind(vector(*ty, sse_vector_size));
e.enc_32_64_maybe_isap(inst_, rec_fa.opcodes(opcodes), *isa_predicate);
let inst = inst.bind(vector(*ty, sse_vector_size));
e.enc_32_64_maybe_isap(inst, rec_fa.opcodes(opcodes), *isa_predicate);
}

// SIMD float comparisons
Expand Down Expand Up @@ -2098,12 +2098,12 @@ pub(crate) fn define(
(F32, fmax, &MAXPS[..]),
(F64, fmax, &MAXPD[..]),
] {
let inst_ = inst.bind(vector(*ty, sse_vector_size));
e.enc_both(inst_, rec_fa.opcodes(opcodes));
let inst = inst.bind(vector(*ty, sse_vector_size));
e.enc_both(inst, rec_fa.opcodes(opcodes));
}
for (ty, inst, opcodes) in &[(F32, sqrt, &SQRTPS[..]), (F64, sqrt, &SQRTPD[..])] {
let inst_ = inst.bind(vector(*ty, sse_vector_size));
e.enc_both(inst_, rec_furm.opcodes(opcodes));
let inst = inst.bind(vector(*ty, sse_vector_size));
e.enc_both(inst, rec_furm.opcodes(opcodes));
}

// Reference type instructions
Expand Down

0 comments on commit 215884e

Please sign in to comment.