| 1 |
# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py |
| 2 |
# RUN: llc -mtriple=powerpc64le-linux-gnu -run-pass=peephole-opt -verify-machineinstrs -o - %s | FileCheck %s |
| 3 |
# RUN: llc -mtriple=powerpc64le-linux-gnu -passes=peephole-opt -verify-machineinstrs -o - %s | FileCheck %s |
| 4 |
|
| 5 |
--- |
| 6 |
name: bitCast |
| 7 |
tracksRegLiveness: true |
| 8 |
body: | |
| 9 |
bb.0.entry: |
| 10 |
; CHECK-LABEL: name: bitCast |
| 11 |
; CHECK: [[XXLEQVOnes:%[0-9]+]]:vsrc = XXLEQVOnes |
| 12 |
; CHECK: $v2 = COPY [[XXLEQVOnes]] |
| 13 |
; CHECK: BLR8 implicit $lr8, implicit $rm, implicit $v2 |
| 14 |
%0:vsrc = XXLEQVOnes |
| 15 |
$v2 = COPY %0 |
| 16 |
BLR8 implicit $lr8, implicit $rm, implicit $v2 |
| 17 |
|
| 18 |
... |
| 19 |
|
| 20 |
# This used to hit an assertion: |
| 21 |
# llvm/include/llvm/CodeGen/MachineInstr.h:417: const |
| 22 |
# llvm::MachineOperand &llvm::MachineInstr::getOperand(unsigned int) |
| 23 |
# const: Assertion `i < getNumOperands() && "getOperand() out of range!"' failed. |
| 24 |
# |