File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
crates/core_arch/src/s390x Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -4678,11 +4678,9 @@ pub unsafe fn vec_subc_u128(
4678
4678
a : vector_unsigned_char ,
4679
4679
b : vector_unsigned_char ,
4680
4680
) -> vector_unsigned_char {
4681
- // FIXME(llvm) sadly this does not work https://github.com/llvm/llvm-project/issues/129608
4682
- // let a: u128 = transmute(a);
4683
- // let b: u128 = transmute(b);
4684
- // transmute(!a.overflowing_sub(b).1 as u128)
4685
- transmute ( vscbiq ( transmute ( a) , transmute ( b) ) )
4681
+ let a: u128 = transmute ( a) ;
4682
+ let b: u128 = transmute ( b) ;
4683
+ transmute ( !a. overflowing_sub ( b) . 1 as u128 )
4686
4684
}
4687
4685
4688
4686
/// Vector Add Compute Carryout unsigned 128-bits
@@ -4714,7 +4712,7 @@ pub unsafe fn vec_adde_u128(
4714
4712
let a: u128 = transmute ( a) ;
4715
4713
let b: u128 = transmute ( b) ;
4716
4714
let c: u128 = transmute ( c) ;
4717
- // FIXME(llvm) sadly this does not work
4715
+ // FIXME(llvm) https://github.com/llvm/llvm-project/pull/153557
4718
4716
// let (d, _carry) = a.carrying_add(b, c & 1 != 0);
4719
4717
// transmute(d)
4720
4718
transmute ( vacq ( a, b, c) )
You can’t perform that action at this time.
0 commit comments