Skip to content

Commit 0068f40

Browse files
committed
fix tidy
1 parent 66d94bd commit 0068f40

File tree

3 files changed

+18
-6
lines changed

3 files changed

+18
-6
lines changed

src/librustc_trans/intrinsic.rs

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1180,8 +1180,12 @@ fn generic_simd_intrinsic<'a, 'tcx>(
11801180
return Ok(bx.select(m_i1s, args[1].immediate(), args[2].immediate()));
11811181
}
11821182

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,
11851189
args: &[OperandRef<'tcx>])
11861190
-> Result<ValueRef, ()> {
11871191
macro_rules! emit_error {
@@ -1207,14 +1211,17 @@ fn generic_simd_intrinsic<'a, 'tcx>(
12071211
let ety = match in_elem.sty {
12081212
ty::TyFloat(f) if f.bit_width() == 32 => {
12091213
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);
12121218
}
12131219
"f32"
12141220
},
12151221
ty::TyFloat(f) if f.bit_width() == 64 => {
12161222
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]",
12181225
in_ty, in_len);
12191226
}
12201227
"f64"
@@ -1544,7 +1551,10 @@ fn generic_simd_intrinsic<'a, 'tcx>(
15441551
let llvm_intrinsic = format!("llvm.masked.scatter.{}.{}",
15451552
llvm_elem_vec_str, llvm_pointer_vec_str);
15461553
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));
15481558
llvm::SetUnnamedAddr(f, false);
15491559
let v = bx.call(f, &[args[0].immediate(), args[1].immediate(), alignment, mask],
15501560
None);

src/test/codegen/simd-intrinsic-generic-gather.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// except according to those terms.
1010

1111
// ignore-emscripten
12+
// ignore-tidy-linelength
1213

1314
// compile-flags: -C no-prepopulate-passes
1415

src/test/codegen/simd-intrinsic-generic-scatter.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// except according to those terms.
1010

1111
// ignore-emscripten
12+
// ignore-tidy-linelength
1213

1314
// compile-flags: -C no-prepopulate-passes
1415

0 commit comments

Comments
 (0)