From d8cae099d0ec6c2db802f1cb6ee392ed117910dc Mon Sep 17 00:00:00 2001 From: bjorn3 Date: Sat, 29 Jun 2019 16:53:20 +0200 Subject: [PATCH] Fix it --- src/intrinsics.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/intrinsics.rs b/src/intrinsics.rs index aaf46221785..f521a07d91f 100644 --- a/src/intrinsics.rs +++ b/src/intrinsics.rs @@ -494,7 +494,13 @@ pub fn codegen_intrinsic_call<'a, 'tcx: 'a>( let or_tmp6 = bcx.ins().bor(or_tmp3, or_tmp4); bcx.ins().bor(or_tmp5, or_tmp6) } - ty => unimplemented!("bwap {}", ty), + types::I128 => { + let (lo, hi) = bcx.ins().isplit(v); + let lo = swap(bcx, lo); + let hi = swap(bcx, hi); + bcx.ins().iconcat(hi, lo) + } + ty => unimplemented!("bswap {}", ty), } }; let res = CValue::by_val(swap(&mut fx.bcx, arg), fx.layout_of(T));