1 # RUN: llc -mtriple=riscv32 %s -run-pass=machine-sink -o - | FileCheck %s
3 # Verify that sinking of '%20:gpr = LUI 1, implicit $x0' is not inhibited by
4 # the implicit use of '$x0'.
5 # Register '$x0' is a 'MRI->isConstantPhysReg()' on RISCV and such uses should
6 # not inhibit sinking transformation even though they are livein to the block
7 # they are to be sunk into (inhibit under such conditions should only happen
12 tracksRegLiveness: true
15 ; CHECK-NEXT: successors: %bb.3(0x80000000)
16 ; CHECK-NEXT: liveins: $x0
18 ; CHECK-NEXT: [[LUI:%[0-9]+]]:gpr = LUI 1, implicit $x0
22 %20:gpr = LUI 1, implicit $x0