xref: /llvm-project/llvm/test/CodeGen/PowerPC/spill-nor0.mir (revision 1bc8b3258e6d42f702fb11eb60d84d0e23935e3e)
1# RUN: llc -o - %s -mtriple=powerpc64-- -run-pass=regallocfast | FileCheck %s
2# RUN: llc -o - %s -mtriple=powerpc64-- -passes=regallocfast | FileCheck %s
3---
4# CHECK-LABEL: name: func
5name: func
6tracksRegLiveness: true
7body: |
8  bb.0:
9    %0 : gprc = LI 42
10    %1 : gprc_nor0 = COPY %0
11    ; CHECK: STW
12
13    ; Clobber all regs to force a spill
14    NOP csr_noregs
15
16    ; CHECK: LWZ
17    NOP implicit %1
18...
19