brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.9 KiB · 554cf17 Raw
47 lines · plain
1# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py2# RUN: llc -mtriple=riscv64 -mattr=+v -run-pass=register-coalescer %s -o - 2>&1 | FileCheck %s3 4# This test used to crash in the register coalescer when the target would5# return the out-of-bounds CommuteAnyOperandIndex for one of its commutable6# operand indices.7 8--- |9  target triple = "riscv64"10  target datalayout = "e-m:e-p:64:64-i64:64-i128:128-n64-S128"11 12  define void @commuted_op_indices() {13    unreachable14  }15...16---17name:            commuted_op_indices18tracksRegLiveness: true19registers:20  - { id: 0, class: vr, preferred-register: '' }21  - { id: 1, class: vrnov0, preferred-register: '' }22  - { id: 2, class: vrnov0, preferred-register: '' }23  - { id: 3, class: vr, preferred-register: '' }24body:             |25  bb.0:26    liveins: $v0, $v1, $v227    ; CHECK-LABEL: name: commuted_op_indices28    ; CHECK: liveins: $v0, $v1, $v229    ; CHECK-NEXT: {{  $}}30    ; CHECK-NEXT: [[COPY:%[0-9]+]]:vr = COPY $v031    ; CHECK-NEXT: [[COPY1:%[0-9]+]]:vrnov0 = COPY $v132    ; CHECK-NEXT: [[COPY2:%[0-9]+]]:vrnov0 = COPY $v233    ; CHECK-NEXT: [[PseudoVNMSUB_VV_M1_:%[0-9]+]]:vr = PseudoVNMSUB_VV_M1 [[PseudoVNMSUB_VV_M1_]], [[COPY1]], [[COPY2]], -1, 6 /* e64 */, 1 /* ta, mu */, implicit $vl, implicit $vtype34    ; CHECK-NEXT: [[COPY2:%[0-9]+]]:vr = COPY [[PseudoVNMSUB_VV_M1_]]35    ; CHECK-NEXT: dead [[PseudoVSLL_VI_M1_:%[0-9]+]]:vr = PseudoVSLL_VI_M1 undef [[PseudoVSLL_VI_M1_]], [[PseudoVSLL_VI_M1_]], 11, $noreg, 6 /* e64 */, 0 /* tu, mu */, implicit $vl, implicit $vtype36    ; CHECK-NEXT: $v0 = COPY [[PseudoVNMSUB_VV_M1_]]37    ; CHECK-NEXT: PseudoRET implicit $v038    %0:vr = COPY $v039    %1:vrnov0 = COPY $v140    %2:vrnov0 = COPY $v241    %0:vr = PseudoVNMSUB_VV_M1 %0, %1, killed %2, -1, 6, 1, implicit $vl, implicit $vtype42    %3:vr = COPY %043    %3:vr = PseudoVSLL_VI_M1 undef %3, %3, 11, $noreg, 6, 0, implicit $vl, implicit $vtype44    $v0 = COPY %045    PseudoRET implicit $v046...47