[NFC][RemoveDIs] Prefer iterators over inst-pointers in InstCombine
[llvm-project.git] / llvm / test / CodeGen / AArch64 / GlobalISel / postlegalizer-combiner-identity.mir
blob017d87c11aadbce0be43b7340843037d384719df
1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -mtriple aarch64 -run-pass=aarch64-postlegalizer-combiner -verify-machineinstrs %s -o - | FileCheck %s
4 ---
5 name:            shift_of_zero
6 alignment:       4
7 legalized:       true
8 liveins:
9   - { reg: '$w0' }
10 body:             |
11   bb.1.entry:
12     liveins: $x0
14     ; CHECK-LABEL: name: shift_of_zero
15     ; CHECK: %a:_(s64) = COPY $x0
16     ; CHECK: $x0 = COPY %a(s64)
17     ; CHECK: RET_ReallyLR implicit $x0
18     %a:_(s64) = COPY $x0
19     %b:_(s64) = G_CONSTANT i64 0
20     %res:_(s64) = G_LSHR %a, %b
21     $x0 = COPY %res(s64)
22     RET_ReallyLR implicit $x0
24 ...