1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -mtriple=riscv64 -mattr=+m,+v -run-pass=regbankselect \
3 # RUN: -simplify-mir -verify-machineinstrs %s \
4 # RUN: -o - | FileCheck %s
9 tracksRegLiveness: true
12 ; CHECK-LABEL: name: test
13 ; CHECK: [[READ_VLENB:%[0-9]+]]:gprb(s64) = G_READ_VLENB
14 ; CHECK-NEXT: [[C:%[0-9]+]]:gprb(s64) = G_CONSTANT i64 3
15 ; CHECK-NEXT: [[LSHR:%[0-9]+]]:gprb(s64) = G_LSHR [[READ_VLENB]], [[C]](s64)
16 ; CHECK-NEXT: $x10 = COPY [[LSHR]](s64)
17 ; CHECK-NEXT: PseudoRET implicit $x10
18 %1:_(s64) = G_READ_VLENB
19 %2:_(s64) = G_CONSTANT i64 3
20 %0:_(s64) = G_LSHR %1, %2(s64)
22 PseudoRET implicit $x10