Fix build failure in cranelift-codegen (#1294)
error[E0425]: cannot find value `ones` in this scope
--> cranelift-codegen/meta/src/isa/x86/legalize.rs:564:33
|
564 | def!(c = vconst(ones)),
| ^^^^ not found in this scope
This commit is contained in:
committed by
Andrew Brown
parent
4433ad2858
commit
86b66e8ede
@@ -561,7 +561,7 @@ pub(crate) fn define(shared: &mut SharedDefinitions, x86_instructions: &Instruct
|
||||
narrow.legalize(
|
||||
def!(b = fneg(a)),
|
||||
vec![
|
||||
def!(c = vconst(ones)),
|
||||
def!(c = vconst(u128_ones)),
|
||||
def!(d = ishl_imm(c, uimm8_shift)), // Create a mask of all 0s except the MSB.
|
||||
def!(e = bitcast_to_float(d)), // Cast mask to the floating-point type.
|
||||
def!(b = bxor(a, e)), // Flip the MSB.
|
||||
|
||||
Reference in New Issue
Block a user