llvm/test/CodeGen/PowerPC/spill-nor0.mir
raw| 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 |
| 5 | name: func |
| 6 | tracksRegLiveness: true |
| 7 | body: | |
| 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 | ... |