Skip to content

Commit f56ebc5

Browse files
committed
Make codegen test more sophisticated
1 parent 91e3678 commit f56ebc5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/test/codegen/repeat-trusted-len.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2016 The Rust Project Developers. See the COPYRIGHT
1+
// Copyright 2018 The Rust Project Developers. See the COPYRIGHT
22
// file at the top-level directory of this distribution and at
33
// http://rust-lang.org/COPYRIGHT.
44
//
@@ -25,7 +25,7 @@ pub fn repeat_take_collect() -> Vec<u8> {
2525
// CHECK-LABEL: @range_from_take_collect
2626
#[no_mangle]
2727
pub fn range_from_take_collect() -> Vec<u8> {
28-
// CHECK: %broadcast.splatinsert = insertelement <{{[0-9]+}} x i8> undef, i8 %{{.*}}, i32 0
29-
// CHECK: %broadcast.splat = shufflevector <[[WIDTH:[0-9]+]] x i8> %broadcast.splatinsert, <[[WIDTH]] x i8> undef, <[[WIDTH]] x i32> zeroinitializer
28+
// CHECK: %[[SPLATINSERT:.*]] = insertelement <{{[0-9]+}} x i8> undef, i8 %{{.*}}, i32 0
29+
// CHECK: %{{.*}} = shufflevector <[[WIDTH:[0-9]+]] x i8> %[[SPLATINSERT]], <[[WIDTH]] x i8> undef, <[[WIDTH]] x i32> zeroinitializer
3030
(0..).take(100000).collect()
3131
}

0 commit comments

Comments
 (0)