mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-28 02:57:37 +00:00
Don't special case u/i128 for UnOp::not
This commit is contained in:
parent
d8cae099d0
commit
8b3628028e
@ -358,14 +358,7 @@ fn trans_stmt<'a, 'tcx: 'a>(
|
||||
fx.bcx.ins().bint(types::I8, res)
|
||||
}
|
||||
ty::Uint(_) | ty::Int(_) => {
|
||||
if fx.bcx.func.dfg.value_type(val) == types::I128 {
|
||||
let (a, b) = fx.bcx.ins().isplit(val);
|
||||
let a = fx.bcx.ins().bnot(a);
|
||||
let b = fx.bcx.ins().bnot(b);
|
||||
fx.bcx.ins().iconcat(a, b)
|
||||
} else {
|
||||
fx.bcx.ins().bnot(val)
|
||||
}
|
||||
fx.bcx.ins().bnot(val)
|
||||
}
|
||||
_ => unimplemented!("un op Not for {:?}", layout.ty),
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user