1 # RUN: llc -mtriple=aarch64-none-linux-gnu -run-pass machine-sink -o - %s | FileCheck %s
3 define void @sinkwzr() { ret void }
7 tracksRegLiveness: true
9 - { id: 0, class: gpr32 }
10 - { id: 1, class: gpr32 }
11 - { id: 2, class: gpr32sp }
12 - { id: 3, class: gpr32 }
13 - { id: 4, class: gpr32 }
15 ; Check that WZR copy is sunk into the loop preheader.
16 ; CHECK-LABEL: name: sinkwzr
18 ; CHECK-NOT: COPY $wzr
33 %2 = PHI %0, %bb.1, %4, %bb.2
35 %3 = SUBSWri %2, 1, 0, implicit-def dead $nzcv