@@ -1140,8 +1140,12 @@ fn generic_simd_intrinsic<'a, 'tcx>(
1140
1140
return Ok ( bx. select ( m_i1s, args[ 1 ] . immediate ( ) , args[ 2 ] . immediate ( ) ) ) ;
1141
1141
}
1142
1142
1143
- fn simd_simple_float_intrinsic < ' a , ' tcx > ( name : & str , in_elem : & :: rustc:: ty:: TyS , in_ty : & :: rustc:: ty:: TyS ,
1144
- in_len : usize , bx : & Builder < ' a , ' tcx > , span : Span ,
1143
+ fn simd_simple_float_intrinsic < ' a , ' tcx > ( name : & str ,
1144
+ in_elem : & :: rustc:: ty:: TyS ,
1145
+ in_ty : & :: rustc:: ty:: TyS ,
1146
+ in_len : usize ,
1147
+ bx : & Builder < ' a , ' tcx > ,
1148
+ span : Span ,
1145
1149
args : & [ OperandRef < ' tcx > ] )
1146
1150
-> Result < ValueRef , ( ) > {
1147
1151
macro_rules! emit_error {
@@ -1167,14 +1171,17 @@ fn generic_simd_intrinsic<'a, 'tcx>(
1167
1171
let ety = match in_elem. sty {
1168
1172
ty:: TyFloat ( f) if f. bit_width ( ) == 32 => {
1169
1173
if in_len < 2 || in_len > 16 {
1170
- return_error ! ( "unsupported floating-point vector `{}` with length `{}` out-of-range [2, 16]" ,
1171
- in_ty, in_len) ;
1174
+ return_error ! (
1175
+ "unsupported floating-point vector `{}` with length `{}` \
1176
+ out-of-range [2, 16]",
1177
+ in_ty, in_len) ;
1172
1178
}
1173
1179
"f32"
1174
1180
} ,
1175
1181
ty:: TyFloat ( f) if f. bit_width ( ) == 64 => {
1176
1182
if in_len < 2 || in_len > 8 {
1177
- return_error ! ( "unsupported floating-point vector `{}` with length `{}` out-of-range [2, 8]" ,
1183
+ return_error ! ( "unsupported floating-point vector `{}` with length `{}` \
1184
+ out-of-range [2, 8]",
1178
1185
in_ty, in_len) ;
1179
1186
}
1180
1187
"f64"
@@ -1504,7 +1511,10 @@ fn generic_simd_intrinsic<'a, 'tcx>(
1504
1511
let llvm_intrinsic = format ! ( "llvm.masked.scatter.{}.{}" ,
1505
1512
llvm_elem_vec_str, llvm_pointer_vec_str) ;
1506
1513
let f = declare:: declare_cfn ( bx. cx , & llvm_intrinsic,
1507
- Type :: func ( & [ llvm_elem_vec_ty, llvm_pointer_vec_ty, alignment_ty, mask_ty] , & ret_t) ) ;
1514
+ Type :: func ( & [ llvm_elem_vec_ty,
1515
+ llvm_pointer_vec_ty,
1516
+ alignment_ty,
1517
+ mask_ty] , & ret_t) ) ;
1508
1518
llvm:: SetUnnamedAddr ( f, false ) ;
1509
1519
let v = bx. call ( f, & [ args[ 0 ] . immediate ( ) , args[ 1 ] . immediate ( ) , alignment, mask] ,
1510
1520
None ) ;
0 commit comments