llvm.org GIT mirror llvm / 46e6a37
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 Bjorn Pettersson 22 days ago
1 changed file(s) with 7 addition(s) and 7 deletion(s). Raw diff Collapse all Expand all
8989 DBG_VALUE %1, $noreg, !18, !DIExpression(), debug-location !25
9090
9191 bb.4:
92 ; 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.
92 ; 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.
9393 DBG_VALUE %2, $noreg, !18, !DIExpression(), debug-location !25
94 %2:gr64 = BTS64rr %2, 0, implicit-def $eflags
94 %2:gr64 = BTS64ri8 %2, 0, implicit-def $eflags
9595 DBG_VALUE 0, $noreg, !23, !DIExpression(), debug-location !25
9696 DBG_VALUE %2, $noreg, !18, !DIExpression(), debug-location !25
97 %2:gr64 = BTS64rr %2, 0, implicit-def $eflags
97 %2:gr64 = BTS64ri8 %2, 0, implicit-def $eflags
9898 DBG_VALUE %2, $noreg, !18, !DIExpression(), debug-location !25
99 %2:gr64 = BTS64rr %2, 0, implicit-def $eflags
99 %2:gr64 = BTS64ri8 %2, 0, implicit-def $eflags
100100 DBG_VALUE %2, $noreg, !18, !DIExpression(), debug-location !25
101101
102102 bb.5:
124124 # CHECK-LABEL: bb.4:
125125 # CHECK: liveins: $rax
126126 # CHECK: DBG_VALUE $rax, $noreg, !18, !DIExpression()
127 # CHECK-NEXT: renamable $rax = BTS64rr killed renamable $rax, 0, implicit-def $eflags
127 # CHECK-NEXT: renamable $rax = BTS64ri8 killed renamable $rax, 0, implicit-def $eflags
128128 # CHECK-NEXT: DBG_VALUE 0, $noreg, !23, !DIExpression()
129129 # CHECK-NEXT: DBG_VALUE $rax, $noreg, !18, !DIExpression()
130 # CHECK-NEXT: renamable $rax = BTS64rr killed renamable $rax, 0, implicit-def $eflags
130 # CHECK-NEXT: renamable $rax = BTS64ri8 killed renamable $rax, 0, implicit-def $eflags
131131 # CHECK-NEXT: DBG_VALUE $rax, $noreg, !18, !DIExpression()
132 # CHECK-NEXT: dead renamable $rax = BTS64rr killed renamable $rax, 0, implicit-def $eflags
132 # CHECK-NEXT: dead renamable $rax = BTS64ri8 killed renamable $rax, 0, implicit-def $eflags
133133
134134 # CHECK-LABEL: bb.5:
135135 # CHECK-NEXT: RET 0