From: Bjorn Pettersson Date: Sun, 25 Aug 2019 10:54:44 +0000 (+0000) Subject: Fixup in test/DebugInfo/X86/live-debug-vars-discard-invalid.mir X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=46e6a37fe56e299f1077dac63787acf151f1bbff;p=llvm 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 --- 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