summaryrefslogtreecommitdiffstats
path: root/tests/mir-opt/combine_transmutes.integer_transmutes.InstSimplify.diff
blob: 8eff802dd3c4bc4715d6015cc394c236bb0edaa5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
- // MIR for `integer_transmutes` before InstSimplify
+ // MIR for `integer_transmutes` after InstSimplify
  
  fn integer_transmutes() -> () {
      let mut _0: ();
      let mut _1: u32;
      let mut _2: i64;
      let mut _3: i64;
      let mut _4: u32;
      let mut _5: usize;
  
      bb0: {
-         _1 = const 1_i32 as u32 (Transmute);
+         _1 = const 1_i32 as u32 (IntToInt);
          _2 = const 1_i32 as i64 (Transmute);
-         _3 = const 1_u64 as i64 (Transmute);
+         _3 = const 1_u64 as i64 (IntToInt);
          _4 = const 1_u64 as u32 (Transmute);
-         _5 = const 1_isize as usize (Transmute);
+         _5 = const 1_isize as usize (IntToInt);
          return;
      }
  }