[LoongArch] Eliminate the redundant sign extension of division (#107971)
[llvm-project.git] / llvm / test / CodeGen / LoongArch / cfr-pseudo-copy.mir
blobb8b358eeadc1df4287b14475bc3f80f0f147b9f3
1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc --mtriple=loongarch64 --mattr=+d --stop-after=postrapseudos %s \
3 # RUN:     -o - | FileCheck %s
5 ## Check the COPY instruction between CFRs.
6 ## A pseudo (PseudoCopyCFR) is generated after postrapseudos pass.
8 ...
9 ---
10 name: test
11 tracksRegLiveness: true
12 body:             |
13   bb.0.entry:
14     liveins: $fcc0
16     ; CHECK-LABEL: name: test
17     ; CHECK: liveins: $fcc0
18     ; CHECK-NEXT: {{  $}}
19     ; CHECK-NEXT: $fcc1 = PseudoCopyCFR $fcc0
20     ; CHECK-NEXT: $r4 = MOVCF2GR $fcc1
21     ; CHECK-NEXT: PseudoRET implicit $r4
22     $fcc1 = COPY $fcc0
23     $r4 = COPY $fcc1
24     PseudoRET implicit killed $r4
26 ...