From 46e6a37fe56e299f1077dac63787acf151f1bbff Mon Sep 17 00:00:00 2001
From: Bjorn Pettersson <bjorn.a.pettersson@ericsson.com>
Date: Sun, 25 Aug 2019 10:54:44 +0000
Subject: [PATCH] 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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@369866 91177308-0d34-0410-b5e6-96231b3b80d8
---
 .../X86/live-debug-vars-discard-invalid.mir        | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/test/DebugInfo/X86/live-debug-vars-discard-invalid.mir b/test/DebugInfo/X86/live-debug-vars-discard-invalid.mir
index 92fc740b77e..4588192a437 100644
--- a/test/DebugInfo/X86/live-debug-vars-discard-invalid.mir
+++ b/test/DebugInfo/X86/live-debug-vars-discard-invalid.mir
@@ -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
-- 
2.40.0