[llvm] r369866 - Fixup in test/DebugInfo/X86/live-debug-vars-discard-invalid.mir

Bjorn Pettersson via llvm-commits llvm-commits at lists.llvm.org
Sun Aug 25 03:54:45 PDT 2019


Author: bjope
Date: Sun Aug 25 03:54:44 2019
New Revision: 369866

URL: http://llvm.org/viewvc/llvm-project?rev=369866&view=rev
Log:
Fixup in test/DebugInfo/X86/live-debug-vars-discard-invalid.mir

The test case used invalid source operands as input
to BTS64rr instructions (feeding register operands with
immediates). This patch changes those instruction into
using BTS64ri8 instead, which seems to better match the
operand types.

Fixes problems seen in https://reviews.llvm.org/D63973.

Modified:
    llvm/trunk/test/DebugInfo/X86/live-debug-vars-discard-invalid.mir

Modified: llvm/trunk/test/DebugInfo/X86/live-debug-vars-discard-invalid.mir
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/DebugInfo/X86/live-debug-vars-discard-invalid.mir?rev=369866&r1=369865&r2=369866&view=diff
==============================================================================
--- llvm/trunk/test/DebugInfo/X86/live-debug-vars-discard-invalid.mir (original)
+++ llvm/trunk/test/DebugInfo/X86/live-debug-vars-discard-invalid.mir Sun Aug 25 03:54:44 2019
@@ -90,14 +90,14 @@ body:             |
     DBG_VALUE %1, $noreg, !18, !DIExpression(), debug-location !25
 
   bb.4:
-    ; All DBG_VALUEs here should survive. %2 is livein as it was defined in bb.0, and it has use/def in the BTS64rr instruction.
+    ; All DBG_VALUEs here should survive. %2 is livein as it was defined in bb.0, and it has use/def in the BTS64ri8 instruction.
     DBG_VALUE %2, $noreg, !18, !DIExpression(), debug-location !25
-    %2:gr64 = BTS64rr %2, 0, implicit-def $eflags
+    %2:gr64 = BTS64ri8 %2, 0, implicit-def $eflags
     DBG_VALUE 0, $noreg, !23, !DIExpression(), debug-location !25
     DBG_VALUE %2, $noreg, !18, !DIExpression(), debug-location !25
-    %2:gr64 = BTS64rr %2, 0, implicit-def $eflags
+    %2:gr64 = BTS64ri8 %2, 0, implicit-def $eflags
     DBG_VALUE %2, $noreg, !18, !DIExpression(), debug-location !25
-    %2:gr64 = BTS64rr %2, 0, implicit-def $eflags
+    %2:gr64 = BTS64ri8 %2, 0, implicit-def $eflags
     DBG_VALUE %2, $noreg, !18, !DIExpression(), debug-location !25
 
   bb.5:
@@ -125,12 +125,12 @@ body:             |
 # CHECK-LABEL: bb.4:
 # CHECK:        liveins: $rax
 # CHECK:        DBG_VALUE $rax, $noreg, !18, !DIExpression()
-# CHECK-NEXT:   renamable $rax = BTS64rr killed renamable $rax, 0, implicit-def $eflags
+# CHECK-NEXT:   renamable $rax = BTS64ri8 killed renamable $rax, 0, implicit-def $eflags
 # CHECK-NEXT:   DBG_VALUE 0, $noreg, !23, !DIExpression()
 # CHECK-NEXT:   DBG_VALUE $rax, $noreg, !18, !DIExpression()
-# CHECK-NEXT:   renamable $rax = BTS64rr killed renamable $rax, 0, implicit-def $eflags
+# CHECK-NEXT:   renamable $rax = BTS64ri8 killed renamable $rax, 0, implicit-def $eflags
 # CHECK-NEXT:   DBG_VALUE $rax, $noreg, !18, !DIExpression()
-# CHECK-NEXT:   dead renamable $rax = BTS64rr killed renamable $rax, 0, implicit-def $eflags
+# CHECK-NEXT:   dead renamable $rax = BTS64ri8 killed renamable $rax, 0, implicit-def $eflags
 
 # CHECK-LABEL: bb.5:
 # CHECK-NEXT:   RET 0




More information about the llvm-commits mailing list