[llvm] 58c242e - [X86] Fix gisel copy tests to fix issue reported on D77354

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 3 08:15:39 PDT 2020


Author: Simon Pilgrim
Date: 2020-04-03T16:15:24+01:00
New Revision: 58c242e7b8740ba1d43c84ffab3dbb6fa2dc8b4e

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

LOG: [X86] Fix gisel copy tests to fix issue reported on D77354

Added: 
    

Modified: 
    llvm/test/CodeGen/X86/GlobalISel/select-copy.mir

Removed: 
    


################################################################################
diff  --git a/llvm/test/CodeGen/X86/GlobalISel/select-copy.mir b/llvm/test/CodeGen/X86/GlobalISel/select-copy.mir
index c4d6be6ca16f..72a6ed15f63b 100644
--- a/llvm/test/CodeGen/X86/GlobalISel/select-copy.mir
+++ b/llvm/test/CodeGen/X86/GlobalISel/select-copy.mir
@@ -40,10 +40,10 @@ regBankSelected: true
 registers:
   - { id: 0, class: gpr, preferred-register: '' }
   - { id: 1, class: gpr, preferred-register: '' }
-# ALL           %0:gr8 = COPY $al
-# ALL-NEXT      %1:gr32 = MOVZX32rr8 %0
-# ALL-NEXT      $eax = COPY %1
-# ALL-NEXT      RET 0, implicit $eax
+# ALL:          %0:gr8 = COPY $al
+# ALL-NEXT:     %1:gr32 = MOVZX32rr8 %0
+# ALL-NEXT:     $eax = COPY %1
+# ALL-NEXT:     RET 0, implicit $eax
 body:             |
   bb.1 (%ir-block.0):
     liveins: $eax
@@ -95,11 +95,13 @@ registers:
   - { id: 0, class: gpr, preferred-register: '' }
   - { id: 1, class: gpr, preferred-register: '' }
   - { id: 2, class: gpr, preferred-register: '' }
-# ALL           %0:gr16 = COPY $ax
-# ALL-NEXT      %1:gr8 = COPY %0.sub_8bit
-# ALL-NEXT      %2:gr32 = MOVZX32rr8 %1
-# ALL-NEXT      $eax = COPY %2
-# ALL-NEXT      RET 0, implicit $eax
+# ALL:          %0:gr16 = COPY $ax
+# X32-NEXT:     %3:gr16_abcd = COPY %0
+# X32-NEXT:     %1:gr8_abcd_l = COPY %3.sub_8bit
+# X64-NEXT:     %1:gr8 = COPY %0.sub_8bit
+# ALL-NEXT:     %2:gr32 = MOVZX32rr8 %1
+# ALL-NEXT:     $eax = COPY %2
+# ALL-NEXT:     RET 0, implicit $eax
 body:             |
   bb.1 (%ir-block.0):
     liveins: $eax
@@ -125,11 +127,11 @@ registers:
   - { id: 0, class: gpr, preferred-register: '' }
   - { id: 1, class: gpr, preferred-register: '' }
   - { id: 2, class: gpr, preferred-register: '' }
-# ALL           %0:gr32 = COPY $eax
-# ALL-NEXT      %1:gr16 = COPY %0.sub_16bit
-# ALL-NEXT      %2:gr32 = MOVZX32rr16 %1
-# ALL-NEXT      $eax = COPY %2
-# ALL-NEXT      RET 0, implicit $eax
+# ALL:          %0:gr32 = COPY $eax
+# ALL-NEXT:     %1:gr16 = COPY %0.sub_16bit
+# ALL-NEXT:     %2:gr32 = MOVZX32rr16 %1
+# ALL-NEXT:     $eax = COPY %2
+# ALL-NEXT:     RET 0, implicit $eax
 body:             |
   bb.1 (%ir-block.0):
     liveins: $eax
@@ -156,11 +158,13 @@ registers:
   - { id: 0, class: gpr, preferred-register: '' }
   - { id: 1, class: gpr, preferred-register: '' }
   - { id: 2, class: gpr, preferred-register: '' }
-# ALL           %0:gr32[[ABCD]] = COPY $edx
-# ALL-NEXT      %1:gr8 = COPY %0.sub_8bit
-# ALL-NEXT      %2:gr32 = MOVZX32rr8 %1
-# ALL-NEXT      $eax = COPY %2
-# ALL-NEXT      RET 0, implicit $eax
+# ALL:          %0:gr32 = COPY $edx
+# X32-NEXT:     %3:gr32_abcd = COPY %0
+# X32-NEXT:     %1:gr8_abcd_l = COPY %3.sub_8bit
+# X64-NEXT:     %1:gr8 = COPY %0.sub_8bit
+# ALL-NEXT:     %2:gr32 = MOVZX32rr8 %1
+# ALL-NEXT:     $eax = COPY %2
+# ALL-NEXT:     RET 0, implicit $eax
 body:             |
   bb.1 (%ir-block.0):
     liveins: $eax,$edx


        


More information about the llvm-commits mailing list