[llvm] ed956b4 - [NFC][PowerPC] Supplement test cases for D88274.

via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 8 19:32:39 PDT 2020


Author: Esme-Yi
Date: 2020-10-09T02:32:05Z
New Revision: ed956b46b0789d19be166eb1c6b39032cc6e4a3c

URL: https://github.com/llvm/llvm-project/commit/ed956b46b0789d19be166eb1c6b39032cc6e4a3c
DIFF: https://github.com/llvm/llvm-project/commit/ed956b46b0789d19be166eb1c6b39032cc6e4a3c.diff

LOG: [NFC][PowerPC] Supplement test cases for D88274.

Added: 
    llvm/test/CodeGen/PowerPC/reg_copy.mir

Modified: 
    

Removed: 
    


################################################################################
diff  --git a/llvm/test/CodeGen/PowerPC/reg_copy.mir b/llvm/test/CodeGen/PowerPC/reg_copy.mir
new file mode 100644
index 000000000000..a280cd568b7e
--- /dev/null
+++ b/llvm/test/CodeGen/PowerPC/reg_copy.mir
@@ -0,0 +1,86 @@
+# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
+# RUN: llc -mtriple=powerpc64le-unknown-linux-gnu \
+# RUN:   -run-pass postrapseudos %s -o - -verify-machineinstrs | FileCheck %s
+
+---
+name:  copy_cr0_gprc
+body:             |
+  bb.0.entry:
+    liveins: $v2, $v3
+    ; CHECK-LABEL: name: copy_cr0_gprc
+    ; CHECK: renamable $cr0 = nofpexcept XVTDIVDP killed renamable $v2, killed renamable $v3, implicit $rm
+    ; CHECK: $r3 = MFOCRF $cr0
+    ; CHECK: $r3 = RLWINM killed $r3, 4, 28, 31, implicit-def $x3
+    ; CHECK: BLR8 implicit $lr8, implicit $rm, implicit $x3
+    renamable $cr0 = nofpexcept XVTDIVDP killed renamable $v2, killed renamable $v3, implicit $rm
+    renamable $r3 = COPY killed renamable $cr0, implicit-def $x3
+    BLR8 implicit $lr8, implicit $rm, implicit $x3
+...
+---
+name:  copy_cr3_gprc
+body:             |
+  bb.0.entry:
+    liveins: $v2, $v3
+    ; CHECK-LABEL: name: copy_cr3_gprc
+    ; CHECK: renamable $cr3 = nofpexcept XVTDIVDP killed renamable $v2, killed renamable $v3, implicit $rm
+    ; CHECK: $r3 = MFOCRF $cr3
+    ; CHECK: $r3 = RLWINM killed $r3, 16, 28, 31, implicit-def $x3
+    ; CHECK: BLR8 implicit $lr8, implicit $rm, implicit $x3
+    renamable $cr3 = nofpexcept XVTDIVDP killed renamable $v2, killed renamable $v3, implicit $rm
+    renamable $r3 = COPY killed renamable $cr3, implicit-def $x3
+    BLR8 implicit $lr8, implicit $rm, implicit $x3
+...
+---
+name:  copy_cr7_gprc
+body:             |
+  bb.0.entry:
+    liveins: $v2, $v3
+    ; CHECK-LABEL: name: copy_cr7_gprc
+    ; CHECK: renamable $cr7 = nofpexcept XVTDIVDP killed renamable $v2, killed renamable $v3, implicit $rm
+    ; CHECK: $r3 = MFOCRF $cr7, implicit-def $x3
+    ; CHECK: BLR8 implicit $lr8, implicit $rm, implicit $x3
+    renamable $cr7 = nofpexcept XVTDIVDP killed renamable $v2, killed renamable $v3, implicit $rm
+    renamable $r3 = COPY killed renamable $cr7, implicit-def $x3
+    BLR8 implicit $lr8, implicit $rm, implicit $x3
+...
+---
+name:  copy_cr0_g8rc
+body:             |
+  bb.0.entry:
+    liveins: $v2, $v3
+    ; CHECK-LABEL: name: copy_cr0_g8rc
+    ; CHECK: renamable $cr0 = nofpexcept XVTDIVDP killed renamable $v2, killed renamable $v3, implicit $rm
+    ; CHECK: $x5 = MFOCRF8 $cr0
+    ; CHECK: $x5 = RLWINM8 killed $x5, 4, 28, 31, implicit-def $x3
+    ; CHECK: BLR8 implicit $lr8, implicit $rm, implicit $x3
+    renamable $cr0 = nofpexcept XVTDIVDP killed renamable $v2, killed renamable $v3, implicit $rm
+    renamable $x5 = COPY killed renamable $cr0, implicit-def $x3
+    BLR8 implicit $lr8, implicit $rm, implicit $x3
+...
+---
+name:  copy_cr3_g8rc
+body:             |
+  bb.0.entry:
+    liveins: $v2, $v3
+    ; CHECK-LABEL: name: copy_cr3_g8rc
+    ; CHECK: renamable $cr3 = nofpexcept XVTDIVDP killed renamable $v2, killed renamable $v3, implicit $rm
+    ; CHECK: $x5 = MFOCRF8 $cr3
+    ; CHECK: $x5 = RLWINM8 killed $x5, 16, 28, 31, implicit-def $x3
+    ; CHECK: BLR8 implicit $lr8, implicit $rm, implicit $x3
+    renamable $cr3 = nofpexcept XVTDIVDP killed renamable $v2, killed renamable $v3, implicit $rm
+    renamable $x5 = COPY killed renamable $cr3, implicit-def $x3
+    BLR8 implicit $lr8, implicit $rm, implicit $x3
+...
+---
+name:  copy_cr7_g8rc
+body:             |
+  bb.0.entry:
+    liveins: $v2, $v3
+    ; CHECK-LABEL: name: copy_cr7_g8rc
+    ; CHECK: renamable $cr7 = nofpexcept XVTDIVDP killed renamable $v2, killed renamable $v3, implicit $rm
+    ; CHECK: $x5 = MFOCRF8 $cr7, implicit-def $x3
+    ; CHECK: BLR8 implicit $lr8, implicit $rm, implicit $x3
+    renamable $cr7 = nofpexcept XVTDIVDP killed renamable $v2, killed renamable $v3, implicit $rm
+    renamable $x5 = COPY killed renamable $cr7, implicit-def $x3
+    BLR8 implicit $lr8, implicit $rm, implicit $x3
+...


        


More information about the llvm-commits mailing list