forked from OSchip/llvm-project
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. llvm-svn: 369866
This commit is contained in:
parent
6bd3a9eaa6
commit
89846231f7
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue