llvm/test/CodeGen/PowerPC/GlobalISel/legalize-ret.mir
raw| 1 | # RUN: llc -mtriple=powerpc64le-unknown-linux-gnu -global-isel -run-pass=legalizer -verify-machineinstrs %s -o - | FileCheck %s |
| 2 | |
| 3 | --- |
| 4 | name: test_simple |
| 5 | body: | |
| 6 | ; CHECK-LABEL: name: test_simple |
| 7 | ; CHECK: [[IN:%[0-9]+]]:_(s64) = COPY $x3 |
| 8 | ; CHECK: $x3 = COPY [[IN]] |
| 9 | ; CHECK: BLR8 implicit $lr8, implicit $rm, implicit $x3 |
| 10 | bb.1.entry: |
| 11 | liveins: $x3 |
| 12 | |
| 13 | %0:_(s64) = COPY $x3 |
| 14 | $x3 = COPY %0(s64) |
| 15 | BLR8 implicit $lr8, implicit $rm, implicit $x3 |
| 16 | |
| 17 | ... |