From 86b66e8edefb9a99e8e2b29150ce060c44328e1f Mon Sep 17 00:00:00 2001 From: Philip Craig Date: Tue, 17 Dec 2019 13:38:09 +1000 Subject: [PATCH] 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 --- cranelift/codegen/meta/src/isa/x86/legalize.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cranelift/codegen/meta/src/isa/x86/legalize.rs b/cranelift/codegen/meta/src/isa/x86/legalize.rs index 8e7c79d814..f62019367b 100644 --- a/cranelift/codegen/meta/src/isa/x86/legalize.rs +++ b/cranelift/codegen/meta/src/isa/x86/legalize.rs @@ -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.