Skip to content

Commit 7a6a23d

Browse files
committed
fix tidy
1 parent f8f204c commit 7a6a23d

File tree

3 files changed

+18
-6
lines changed

3 files changed

+18
-6
lines changed

src/librustc_codegen_llvm/intrinsic.rs

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

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,
11451149
args: &[OperandRef<'tcx>])
11461150
-> Result<ValueRef, ()> {
11471151
macro_rules! emit_error {
@@ -1167,14 +1171,17 @@ fn generic_simd_intrinsic<'a, 'tcx>(
11671171
let ety = match in_elem.sty {
11681172
ty::TyFloat(f) if f.bit_width() == 32 => {
11691173
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);
11721178
}
11731179
"f32"
11741180
},
11751181
ty::TyFloat(f) if f.bit_width() == 64 => {
11761182
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]",
11781185
in_ty, in_len);
11791186
}
11801187
"f64"
@@ -1504,7 +1511,10 @@ fn generic_simd_intrinsic<'a, 'tcx>(
15041511
let llvm_intrinsic = format!("llvm.masked.scatter.{}.{}",
15051512
llvm_elem_vec_str, llvm_pointer_vec_str);
15061513
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));
15081518
llvm::SetUnnamedAddr(f, false);
15091519
let v = bx.call(f, &[args[0].immediate(), args[1].immediate(), alignment, mask],
15101520
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)