Skip to content

Commit 16233a1

Browse files
committed
FileCheck combine_array_len.
1 parent a781d64 commit 16233a1

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

tests/mir-opt/combine_array_len.rs renamed to tests/mir-opt/instsimplify/combine_array_len.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
// skip-filecheck
21
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
32
// unit-test: InstSimplify
4-
// EMIT_MIR combine_array_len.norm2.InstSimplify.diff
53

4+
// EMIT_MIR combine_array_len.norm2.InstSimplify.diff
65
fn norm2(x: [f32; 2]) -> f32 {
6+
// CHECK-LABEL: fn norm2(
7+
// CHECK-NOT: Len(
78
let a = x[0];
89
let b = x[1];
910
a*a + b*b

0 commit comments

Comments
 (0)