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:
Philip Craig
2019-12-17 13:38:09 +10:00
committed by Andrew Brown
parent 4433ad2858
commit 86b66e8ede

View File

@@ -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.