]> git.proxmox.com Git - rustc.git/blobdiff - src/test/mir-opt/combine_array_len.rs
New upstream version 1.44.1+dfsg1
[rustc.git] / src / test / mir-opt / combine_array_len.rs
index 9a046202cd004135fb0cdf5474e3a65e0ae36fad..aa1c7459ea155f542fe8ba4a34dd2989eff762ed 100644 (file)
@@ -1,3 +1,6 @@
+// EMIT_MIR_FOR_EACH_BIT_WIDTH
+// EMIT_MIR rustc.norm2.InstCombine.diff
+
 fn norm2(x: [f32; 2]) -> f32 {
     let a = x[0];
     let b = x[1];
@@ -7,17 +10,3 @@ fn norm2(x: [f32; 2]) -> f32 {
 fn main() {
     assert_eq!(norm2([3.0, 4.0]), 5.0*5.0);
 }
-
-// END RUST SOURCE
-
-// START rustc.norm2.InstCombine.before.mir
-//     _4 = Len(_1);
-//     ...
-//     _8 = Len(_1);
-// END rustc.norm2.InstCombine.before.mir
-
-// START rustc.norm2.InstCombine.after.mir
-//     _4 = const 2usize;
-//     ...
-//     _8 = const 2usize;
-// END rustc.norm2.InstCombine.after.mir