|
| 1 | +# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py |
| 2 | +# RUN: llc %s -mtriple=riscv64 -mattr=+experimental-v -run-pass=simple-register-coalescing -o - | FileCheck %s |
| 3 | +--- |
| 4 | +# Make sure that SrcReg & DstReg of PseudoVRGATHER are not coalesced |
| 5 | +name: test_earlyclobber |
| 6 | +tracksRegLiveness: true |
| 7 | +body: | |
| 8 | + bb.0: |
| 9 | + liveins: $x10 |
| 10 | + ; CHECK-LABEL: name: test_earlyclobber |
| 11 | + ; CHECK: liveins: $x10 |
| 12 | + ; CHECK: undef %2.sub_vrm2_0:vrn2m2 = PseudoVLE32_V_M2 $x10, 1, 5 |
| 13 | + ; CHECK: %2.sub_vrm2_1:vrn2m2 = PseudoVLE32_V_M2 $x10, 1, 5 |
| 14 | + ; CHECK: [[PseudoVLE32_V_M2_:%[0-9]+]]:vrm2 = PseudoVLE32_V_M2 $x10, 1, 5 |
| 15 | + ; CHECK: early-clobber %2.sub_vrm2_0:vrn2m2 = PseudoVRGATHER_VI_M2 %2.sub_vrm2_0, 0, 1, 5, implicit $vl, implicit $vtype |
| 16 | + ; CHECK: PseudoVSUXSEG2EI32_V_M2_M2 %2, $x10, [[PseudoVLE32_V_M2_]], 1, 5, implicit $vl, implicit $vtype |
| 17 | + undef %0.sub_vrm2_0:vrn2m2 = PseudoVLE32_V_M2 $x10, 1, 5 |
| 18 | + %0.sub_vrm2_1:vrn2m2 = PseudoVLE32_V_M2 $x10, 1, 5 |
| 19 | + %1:vrm2 = PseudoVLE32_V_M2 $x10, 1, 5 |
| 20 | + undef early-clobber %2.sub_vrm2_0:vrn2m2 = PseudoVRGATHER_VI_M2 %0.sub_vrm2_0:vrn2m2, 0, 1, 5, implicit $vl, implicit $vtype |
| 21 | + %2.sub_vrm2_1:vrn2m2 = COPY %0.sub_vrm2_1:vrn2m2 |
| 22 | + PseudoVSUXSEG2EI32_V_M2_M2 %2:vrn2m2, $x10, %1:vrm2, 1, 5, implicit $vl, implicit $vtype |
| 23 | +... |
0 commit comments