FileCheck combine_array_len.

This commit is contained in:
Camille GILLOT 2023-10-16 19:19:51 +00:00
parent d6f4bd5a8d
commit f0690d5232
3 changed files with 3 additions and 2 deletions

View File

@ -1,9 +1,10 @@
// skip-filecheck
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
// unit-test: InstSimplify
// EMIT_MIR combine_array_len.norm2.InstSimplify.diff
// EMIT_MIR combine_array_len.norm2.InstSimplify.diff
fn norm2(x: [f32; 2]) -> f32 {
// CHECK-LABEL: fn norm2(
// CHECK-NOT: Len(
let a = x[0];
let b = x[1];
a*a + b*b