Skip to content

Commit ba7ec50

Browse files
committed
Don't special case u/i128 for UnOp::not
1 parent 48f918e commit ba7ec50

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/base.rs

+1-8
Original file line numberDiff line numberDiff line change
@@ -358,14 +358,7 @@ fn trans_stmt<'a, 'tcx: 'a>(
358358
fx.bcx.ins().bint(types::I8, res)
359359
}
360360
ty::Uint(_) | ty::Int(_) => {
361-
if fx.bcx.func.dfg.value_type(val) == types::I128 {
362-
let (a, b) = fx.bcx.ins().isplit(val);
363-
let a = fx.bcx.ins().bnot(a);
364-
let b = fx.bcx.ins().bnot(b);
365-
fx.bcx.ins().iconcat(a, b)
366-
} else {
367-
fx.bcx.ins().bnot(val)
368-
}
361+
fx.bcx.ins().bnot(val)
369362
}
370363
_ => unimplemented!("un op Not for {:?}", layout.ty),
371364
}

0 commit comments

Comments
 (0)