@@ -1180,8 +1180,12 @@ fn generic_simd_intrinsic<'a, 'tcx>(
1180
1180
return Ok ( bx. select ( m_i1s, args[ 1 ] . immediate ( ) , args[ 2 ] . immediate ( ) ) ) ;
1181
1181
}
1182
1182
1183
- fn simd_simple_float_intrinsic < ' a , ' tcx > ( name : & str , in_elem : & :: rustc:: ty:: TyS , in_ty : & :: rustc:: ty:: TyS ,
1184
- in_len : usize , bx : & Builder < ' a , ' tcx > , span : Span ,
1183
+ fn simd_simple_float_intrinsic < ' a , ' tcx > ( name : & str ,
1184
+ in_elem : & :: rustc:: ty:: TyS ,
1185
+ in_ty : & :: rustc:: ty:: TyS ,
1186
+ in_len : usize ,
1187
+ bx : & Builder < ' a , ' tcx > ,
1188
+ span : Span ,
1185
1189
args : & [ OperandRef < ' tcx > ] )
1186
1190
-> Result < ValueRef , ( ) > {
1187
1191
macro_rules! emit_error {
@@ -1207,14 +1211,17 @@ fn generic_simd_intrinsic<'a, 'tcx>(
1207
1211
let ety = match in_elem. sty {
1208
1212
ty:: TyFloat ( f) if f. bit_width ( ) == 32 => {
1209
1213
if in_len < 2 || in_len > 16 {
1210
- return_error ! ( "unsupported floating-point vector `{}` with length `{}` out-of-range [2, 16]" ,
1211
- in_ty, in_len) ;
1214
+ return_error ! (
1215
+ "unsupported floating-point vector `{}` with length `{}` \
1216
+ out-of-range [2, 16]",
1217
+ in_ty, in_len) ;
1212
1218
}
1213
1219
"f32"
1214
1220
} ,
1215
1221
ty:: TyFloat ( f) if f. bit_width ( ) == 64 => {
1216
1222
if in_len < 2 || in_len > 8 {
1217
- return_error ! ( "unsupported floating-point vector `{}` with length `{}` out-of-range [2, 8]" ,
1223
+ return_error ! ( "unsupported floating-point vector `{}` with length `{}` \
1224
+ out-of-range [2, 8]",
1218
1225
in_ty, in_len) ;
1219
1226
}
1220
1227
"f64"
@@ -1544,7 +1551,10 @@ fn generic_simd_intrinsic<'a, 'tcx>(
1544
1551
let llvm_intrinsic = format ! ( "llvm.masked.scatter.{}.{}" ,
1545
1552
llvm_elem_vec_str, llvm_pointer_vec_str) ;
1546
1553
let f = declare:: declare_cfn ( bx. cx , & llvm_intrinsic,
1547
- Type :: func ( & [ llvm_elem_vec_ty, llvm_pointer_vec_ty, alignment_ty, mask_ty] , & ret_t) ) ;
1554
+ Type :: func ( & [ llvm_elem_vec_ty,
1555
+ llvm_pointer_vec_ty,
1556
+ alignment_ty,
1557
+ mask_ty] , & ret_t) ) ;
1548
1558
llvm:: SetUnnamedAddr ( f, false ) ;
1549
1559
let v = bx. call ( f, & [ args[ 0 ] . immediate ( ) , args[ 1 ] . immediate ( ) , alignment, mask] ,
1550
1560
None ) ;
0 commit comments