File tree 2 files changed +12
-2
lines changed
2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -593,7 +593,11 @@ fn trans_stmt<'a, 'tcx: 'a>(
593
593
| StatementKind :: AscribeUserType ( ..) => { }
594
594
595
595
StatementKind :: InlineAsm { .. } => {
596
- crate :: trap:: trap_panic ( fx, "Inline assembly is not supported" ) ;
596
+ crate :: trap:: trap_unreachable_ret_value (
597
+ fx,
598
+ fx. layout_of ( fx. tcx . mk_unit ( ) ) ,
599
+ "Inline assembly is not supported" ,
600
+ ) ;
597
601
}
598
602
}
599
603
}
Original file line number Diff line number Diff line change @@ -494,7 +494,13 @@ pub fn codegen_intrinsic_call<'a, 'tcx: 'a>(
494
494
let or_tmp6 = bcx. ins( ) . bor( or_tmp3, or_tmp4) ;
495
495
bcx. ins( ) . bor( or_tmp5, or_tmp6)
496
496
}
497
- ty => unimplemented!( "bwap {}" , ty) ,
497
+ types:: I128 => {
498
+ let ( lo, hi) = bcx. ins( ) . isplit( v) ;
499
+ let lo = swap( bcx, lo) ;
500
+ let hi = swap( bcx, hi) ;
501
+ bcx. ins( ) . iconcat( hi, lo)
502
+ }
503
+ ty => unimplemented!( "bswap {}" , ty) ,
498
504
}
499
505
} ;
500
506
let res = CValue :: by_val( swap( & mut fx. bcx, arg) , fx. layout_of( T ) ) ;
You can’t perform that action at this time.
0 commit comments