Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,6 @@ body: |
CFI_INSTRUCTION def_cfa_offset 16, debug-location !14
$rbx = frame-destroy POP64r implicit-def $rsp, implicit $rsp, debug-location !14
CFI_INSTRUCTION def_cfa_offset 8, debug-location !14
RETQ $eax, debug-location !14
RET64 $eax, debug-location !14
...
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ body: |
CALL64pcrel32 @call, csr_64, implicit $rsp, implicit $ssp, implicit killed $edi, implicit undef $esi, implicit-def $rsp, implicit-def $ssp, debug-location !15
$rax = frame-destroy POP64r implicit-def $rsp, implicit $rsp, debug-location !16
CFI_INSTRUCTION def_cfa_offset 8, debug-location !16
RETQ debug-location !16
RET64 debug-location !16
...

Expand Down
2 changes: 1 addition & 1 deletion llvm/test/DebugInfo/MIR/X86/dbgcall-site-reference.mir
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,6 @@ body: |
CALL64pcrel32 @_ZN1CC2E1B, csr_64, implicit $rsp, implicit $ssp, implicit $rdi, implicit $rsi, implicit-def $rsp, implicit-def $ssp, debug-location !36
$rax = frame-destroy POP64r implicit-def $rsp, implicit $rsp, debug-location !36
CFI_INSTRUCTION def_cfa_offset 8, debug-location !36
RETQ debug-location !36
RET64 debug-location !36
...
2 changes: 1 addition & 1 deletion llvm/test/DebugInfo/MIR/X86/dbgcall-site-reg-shuffle.mir
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ body: |
CALL64pcrel32 @call2, csr_64, implicit $rsp, implicit $ssp, implicit $edi, implicit $esi, implicit-def $rsp, implicit-def $ssp, debug-location !15
$rax = frame-destroy POP64r implicit-def $rsp, implicit $rsp, debug-location !16
CFI_INSTRUCTION def_cfa_offset 8, debug-location !16
RETQ debug-location !16
RET64 debug-location !16
...

Expand Down
4 changes: 2 additions & 2 deletions llvm/test/DebugInfo/MIR/X86/dbgcall-site-two-fwd-reg-defs.mir
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ body: |
renamable $eax = MOV32rm $rip, 1, $noreg, @a, $noreg, debug-location !16 :: (dereferenceable load (s32) from @a)
$rbp = frame-destroy POP64r implicit-def $rsp, implicit $rsp, debug-location !16
CFI_INSTRUCTION def_cfa $rsp, 8, debug-location !16
RETQ $eax, debug-location !16
RET64 $eax, debug-location !16
...
---
Expand Down Expand Up @@ -123,7 +123,7 @@ body: |
$rbx = frame-destroy POP64r implicit-def $rsp, implicit $rsp, debug-location !22
$rbp = frame-destroy POP64r implicit-def $rsp, implicit $rsp, debug-location !22
CFI_INSTRUCTION def_cfa $rsp, 8, debug-location !22
RETQ $eax, debug-location !22
RET64 $eax, debug-location !22
...

Expand Down
2 changes: 1 addition & 1 deletion llvm/test/DebugInfo/MIR/X86/debug-call-site-param.mir
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,6 @@ body: |
CFI_INSTRUCTION def_cfa_offset 16, debug-location !24
$r15 = frame-destroy POP64r implicit-def $rsp, implicit $rsp, debug-location !24
CFI_INSTRUCTION def_cfa_offset 8, debug-location !24
RETQ debug-location !24
RET64 debug-location !24
...
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,6 @@ body: |
MOV32mr $rip, 1, $noreg, @global, $noreg, killed renamable $edi, debug-location !18 :: (store (s32) into @global)
INLINEASM &"", 1, 12, implicit-def dead early-clobber $edi, 12, implicit-def dead early-clobber $esi, 12, implicit-def dead early-clobber $edx, 12, implicit-def dead early-clobber $df, 12, implicit-def dead early-clobber $fpsw, 12, implicit-def dead early-clobber $eflags, !19, debug-location !18
$eax = MOV32ri 123, debug-location !18
RETQ killed $eax, debug-location !18
RET64 killed $eax, debug-location !18
...
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ body: |
bb.4:
liveins: $rbx, $rsi
RETQ $rbx, debug-location !17
RET64 $rbx, debug-location !17
...

2 changes: 1 addition & 1 deletion llvm/test/DebugInfo/MIR/X86/dvl-livedebugvalues-join.mir
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ body: |
bb.10:
liveins: $rdi, $rsi
; Should _not_ be a live-in loc here.
RETQ
RET64
...

Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ body: |
bb.2:
liveins: $rbx, $rbp
RETQ $rbp, debug-location !17
RET64 $rbp, debug-location !17
...

Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,6 @@ body: |
$rax = COPY killed $rdi
$rdi = MOV64ri 0
$rdi = MOV64rm $rsp, 1, $noreg, -16, $noreg, debug-location !15 :: (load (s64) from %stack.0)
RETQ
RET64
...

Original file line number Diff line number Diff line change
Expand Up @@ -105,5 +105,5 @@ body: |
CALL64pcrel32 @foo, csr_64, implicit $rsp, implicit $ssp, implicit %3, implicit %5
RETQ
RET64
...
2 changes: 1 addition & 1 deletion llvm/test/DebugInfo/MIR/X86/dvl-livedebugvars-stackptr.mir
Original file line number Diff line number Diff line change
Expand Up @@ -109,5 +109,5 @@ body: |
CALL64pcrel32 @foo, csr_64, implicit $rsp, implicit $ssp, implicit %3, implicit %5
RETQ
RET64
...
4 changes: 2 additions & 2 deletions llvm/test/DebugInfo/MIR/X86/empty-inline.mir
Original file line number Diff line number Diff line change
Expand Up @@ -109,13 +109,13 @@ body: |
$rax = MOV64rm $rdi, 1, _, 0, _ :: (load (s64) from %ir.6, align 4)
$al = MOV8rm killed $rax, 1, _, 0, _ :: (load (s8) from %ir.8)
MOV8mr killed $rdi, 1, _, 8, _, killed $al, debug-location !14 :: (store (s8) into %ir.12)
RETQ undef $eax
RET64 undef $eax
bb.1:
liveins: $rdi
$al = IMPLICIT_DEF debug-location !10
MOV8mr killed $rdi, 1, _, 8, _, killed $al, debug-location !14 :: (store (s8) into %ir.12)
RETQ undef $eax
RET64 undef $eax
...
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,6 @@ body: |
renamable $al = SETCCr 12, implicit killed $eflags, implicit killed $eax, implicit-def $eax, debug-location !23
$rbx = frame-destroy POP64r implicit-def $rsp, implicit $rsp, debug-location !26
CFI_INSTRUCTION def_cfa_offset 8, debug-location !26
RETQ $eax, debug-location !26
RET64 $eax, debug-location !26
...
2 changes: 1 addition & 1 deletion llvm/test/DebugInfo/MIR/X86/entry-values-diamond-bbs.mir
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,6 @@ body: |
CFI_INSTRUCTION def_cfa_offset 16, debug-location !34
$rbp = frame-destroy POP64r implicit-def $rsp, implicit $rsp, debug-location !34
CFI_INSTRUCTION def_cfa_offset 8, debug-location !34
RETQ killed $eax, debug-location !34
RET64 killed $eax, debug-location !34
...
2 changes: 1 addition & 1 deletion llvm/test/DebugInfo/MIR/X86/kill-after-spill.mir
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,6 @@ body: |
$r14 = POP64r implicit-def $rsp, implicit $rsp
$r15 = POP64r implicit-def $rsp, implicit $rsp
$rbp = POP64r implicit-def $rsp, implicit $rsp
RETQ $eax, debug-location !57
RET64 $eax, debug-location !57
...
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ body: |
CFI_INSTRUCTION def_cfa_offset 16, debug-location !34
$rbp = frame-destroy POP64r implicit-def $rsp, implicit $rsp, debug-location !34
CFI_INSTRUCTION def_cfa_offset 8, debug-location !34
RETQ killed $eax, debug-location !34
RET64 killed $eax, debug-location !34
...

6 changes: 3 additions & 3 deletions llvm/test/DebugInfo/MIR/X86/live-debug-values-3preds.mir
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ body: |
$ecx = IMUL32rr killed $ecx, killed $edi, implicit-def dead $eflags, debug-location !36
DBG_VALUE 0, 0, !13, !17, debug-location !25
$eax = MOV32rr killed $ecx, debug-location !50
RETQ $eax, debug-location !50
RET64 $eax, debug-location !50
bb.6.if.then.4:
liveins: $ecx, $esi
Expand All @@ -278,7 +278,7 @@ body: |
$ecx = IMUL32rr killed $ecx, killed $esi, implicit-def dead $eflags, debug-location !40
DBG_VALUE 0, 0, !13, !17, debug-location !25
$eax = MOV32rr killed $ecx, debug-location !50
RETQ $eax, debug-location !50
RET64 $eax, debug-location !50
bb.8.if.then.8:
successors: %bb.9.for.end(0)
Expand All @@ -294,6 +294,6 @@ body: |
DBG_VALUE 0, 0, !13, !17, debug-location !25
$eax = MOV32rr killed $ecx, debug-location !50
RETQ $eax, debug-location !50
RET64 $eax, debug-location !50
...
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,6 @@ body: |
$eax = MOV32rr killed $ebx, debug-location !10
$rbx = frame-destroy POP64r implicit-def $rsp, implicit $rsp
CFI_INSTRUCTION def_cfa_offset 8
RETQ $eax, debug-location !10
RET64 $eax, debug-location !10
...
2 changes: 1 addition & 1 deletion llvm/test/DebugInfo/MIR/X86/live-debug-values-cutoffs.mir
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,6 @@ body: |
CALL64pcrel32 @use, csr_64, implicit $rsp, implicit $ssp, implicit killed $edi, implicit-def $eax, debug-location !14
DBG_VALUE renamable $eax, $noreg, !11, !DIExpression(), debug-location !14
$rcx = frame-destroy POP64r implicit-def $rsp, implicit $rsp, debug-location !15
RETQ implicit killed $eax, debug-location !15
RET64 implicit killed $eax, debug-location !15
...
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,6 @@ body: |
$eax = MOV32rr killed $ebx
$rbx = frame-destroy POP64r implicit-def $rsp, implicit $rsp
CFI_INSTRUCTION def_cfa_offset 8
RETQ $eax
RET64 $eax
...
12 changes: 6 additions & 6 deletions llvm/test/DebugInfo/MIR/X86/live-debug-values-fragments.mir
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
# CHECK-NEXT: DBG_VALUE $eax, $noreg, !{{[0-9]+}},
# CHECK-SAME: !DIExpression(DW_OP_LLVM_fragment, 0, 32)
# CHECK-NEXT: XOR32rr
# CHECK-NEXT: RETQ
# CHECK-NEXT: RET64
#
# CHECK-LABEL: bar
# CHECK-LABEL: bb.0.entry:
Expand Down Expand Up @@ -51,7 +51,7 @@
# CHECK-NEXT: DBG_VALUE $ax, $noreg, !{{[0-9]+}},
# CHECK-SAME: !DIExpression(DW_OP_LLVM_fragment, 8, 16)
# CHECK-NEXT: XOR32rr
# CHECK-NEXT: RETQ
# CHECK-NEXT: RET64

# CHECK-LABEL: baz
# CHECK-LABEL: bb.0.entry:
Expand Down Expand Up @@ -81,7 +81,7 @@
# CHECK: DBG_VALUE $ebx, $noreg, !{{[0-9]+}},
# CHECK-SAME: !DIExpression(DW_OP_LLVM_fragment, 32, 32)
# CHECK-NEXT: XOR32rr
# CHECK-NEXT: RETQ
# CHECK-NEXT: RET64

--- |
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
Expand Down Expand Up @@ -178,7 +178,7 @@ body: |
bb.3.bb3:
liveins: $eax, $ebx
$eax = XOR32rr killed $eax, killed $ebx, implicit-def $eflags
RETQ $eax, debug-location !8
RET64 $eax, debug-location !8
...
---
Expand Down Expand Up @@ -216,7 +216,7 @@ body: |
bb.3.bb3:
liveins: $eax, $ebx
$eax = XOR32rr killed $eax, killed $ebx, implicit-def $eflags
RETQ $eax, debug-location !48
RET64 $eax, debug-location !48
...
---
Expand Down Expand Up @@ -254,6 +254,6 @@ body: |
bb.3.bb3:
liveins: $eax, $ebx
$eax = XOR32rr killed $eax, killed $ebx, implicit-def $eflags
RETQ $eax, debug-location !88
RET64 $eax, debug-location !88
...
Original file line number Diff line number Diff line change
Expand Up @@ -81,5 +81,5 @@ body: |
; Return faff
$eax = MOV32ri 0
$rsp = frame-destroy ADD64ri8 $rsp, 24, implicit-def dead $eflags
RETQ debug-location !10
RET64 debug-location !10
...
10 changes: 5 additions & 5 deletions llvm/test/DebugInfo/MIR/X86/live-debug-values-restore.mir
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ body: |
liveins: $rdi, $rbx, $r12, $r13, $r14, $r15, $rbp
renamable $eax = MOV32rm killed renamable $rdi, 1, $noreg, 4, $noreg, debug-location !23 :: (load (s32) from %ir.add.ptr, !tbaa !24)
RETQ $eax, debug-location !28
RET64 $eax, debug-location !28
...
---
Expand Down Expand Up @@ -401,7 +401,7 @@ body: |
renamable $eax = MOV32rm killed renamable $rsi, 1, $noreg, 4, $noreg, debug-location !123 :: (load (s32) from %ir.add.ptr, !tbaa !24)
$rdi = MOV64ri 0
RETQ $eax, debug-location !128
RET64 $eax, debug-location !128
...
---
Expand Down Expand Up @@ -507,7 +507,7 @@ body: |
liveins: $rdi, $rbx, $r12, $r13, $r14, $r15, $rbp
renamable $eax = MOV32rm killed renamable $rdi, 1, $noreg, 4, $noreg, debug-location !223 :: (load (s32) from %ir.add.ptr, !tbaa !24)
RETQ $eax, debug-location !228
RET64 $eax, debug-location !228
Expand Down Expand Up @@ -628,7 +628,7 @@ body: |
renamable $rdi = MOV64rm $rsp, 1, $noreg, -8, $noreg :: (load (s64) from %stack.0)
renamable $eax = MOV32rm killed renamable $rdi, 1, $noreg, 4, $noreg, debug-location !323 :: (load (s32) from %ir.add.ptr, !tbaa !24)
RETQ $eax, debug-location !328
RET64 $eax, debug-location !328
...
---
Expand Down Expand Up @@ -731,6 +731,6 @@ body: |
liveins: $rdi, $rbx, $r12, $r13, $r14, $r15, $rbp
renamable $eax = MOV32rm killed renamable $rdi, 1, $noreg, 4, $noreg, debug-location !414 :: (load (s32) from %ir.add.ptr, !tbaa !24)
RETQ $eax, debug-location !415
RET64 $eax, debug-location !415
...
2 changes: 1 addition & 1 deletion llvm/test/DebugInfo/MIR/X86/live-debug-values-spill.mir
Original file line number Diff line number Diff line change
Expand Up @@ -467,6 +467,6 @@ body: |
$r14 = POP64r implicit-def $rsp, implicit $rsp, debug-location !90
$r15 = POP64r implicit-def $rsp, implicit $rsp, debug-location !90
$rbp = POP64r implicit-def $rsp, implicit $rsp, debug-location !90
RETQ debug-location !90
RET64 debug-location !90
...
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,6 @@ body: |
$r14 = frame-destroy POP64r implicit-def $rsp, implicit $rsp, debug-location !28
$r15 = frame-destroy POP64r implicit-def $rsp, implicit $rsp, debug-location !28
$rbp = frame-destroy POP64r implicit-def $rsp, implicit $rsp, debug-location !28
RETQ $rax, debug-location !28
RET64 $rax, debug-location !28
...
2 changes: 1 addition & 1 deletion llvm/test/DebugInfo/MIR/X86/live-debug-values.mir
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,6 @@ body: |
CALL64pcrel32 @printf, csr_64, implicit $rsp, implicit $rdi, implicit $esi, implicit $al, implicit-def $rsp, implicit-def dead $eax, debug-location !46
$eax = XOR32rr undef $eax, undef $eax, implicit-def dead $eflags, debug-location !47
$rbx = POP64r implicit-def $rsp, implicit $rsp, debug-location !47
RETQ $eax, debug-location !47
RET64 $eax, debug-location !47
...
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,5 @@ body: |
successors: %bb.3
renamable $ebx = KILL $ebx
bb.3.bb3:
RETQ $eax, debug-location !17
RET64 $eax, debug-location !17
...
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,5 @@ body: |
successors: %bb.3
$eax = MOV32ri 0, debug-location !17
bb.3.bb3:
RETQ $eax, debug-location !17
RET64 $eax, debug-location !17
...
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,5 @@ body: |
successors: %bb.3
$ebx = MOV32ri 0, debug-location !17
bb.3.bb3:
RETQ $eax, debug-location !17
RET64 $eax, debug-location !17
...
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,5 @@ body: |
$eax = MOV32ri 0, debug-location !17
DBG_VALUE $eax, $noreg, !16, !DIExpression(), debug-location !17
bb.3.bb3:
RETQ $eax, debug-location !17
RET64 $eax, debug-location !17
...
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,5 @@ body: |
successors: %bb.3
$eax = MOV32ri 0, debug-location !17
bb.3.bb3:
RETQ $eax, debug-location !17
RET64 $eax, debug-location !17
...
Original file line number Diff line number Diff line change
Expand Up @@ -64,5 +64,5 @@ body: |
successors: %bb.3
$eax = MOV32ri 0, debug-location !17
bb.3.bb3:
RETQ $eax, debug-location !17
RET64 $eax, debug-location !17
...
2 changes: 1 addition & 1 deletion llvm/test/DebugInfo/MIR/X86/livedebugvalues_basic_loop.mir
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,5 @@ body: |
$eax = MOV32ri 0, debug-location !17
JCC_1 %bb.1, 4, implicit killed $eflags
bb.3.bb3:
RETQ $eax, debug-location !17
RET64 $eax, debug-location !17
...
2 changes: 1 addition & 1 deletion llvm/test/DebugInfo/MIR/X86/livedebugvalues_bb_to_bb.mir
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,5 @@ body: |
successors: %bb.3
$eax = MOV32ri 0, debug-location !17
bb.3.bb3:
RETQ $eax, debug-location !17
RET64 $eax, debug-location !17
...
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,5 @@ body: |
successors: %bb.3
$eax = MOV32ri 0, debug-location !17
bb.3.bb3:
RETQ $eax, debug-location !17
RET64 $eax, debug-location !17
...
Original file line number Diff line number Diff line change
Expand Up @@ -64,5 +64,5 @@ body: |
successors: %bb.3
$eax = MOV32ri 0, debug-location !17
bb.3.bb3:
RETQ $eax, debug-location !17
RET64 $eax, debug-location !17
...
Original file line number Diff line number Diff line change
Expand Up @@ -109,5 +109,5 @@ body: |
liveins: $rax, $rbp
bb.6:
liveins: $rax, $rbp
RETQ $rax, debug-location !17
RET64 $rax, debug-location !17
...
2 changes: 1 addition & 1 deletion llvm/test/DebugInfo/MIR/X86/livedebugvalues_loop_break.mir
Original file line number Diff line number Diff line change
Expand Up @@ -70,5 +70,5 @@ body: |
$eax = MOV32ri 0, debug-location !17
JCC_1 %bb.1, 4, implicit killed $eflags
bb.4.bb4:
RETQ $eax, debug-location !17
RET64 $eax, debug-location !17
...
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,5 @@ body: |
$eax = MOV32ri 0, debug-location !17
JCC_1 %bb.1, 4, implicit killed $eflags
bb.4.bb4:
RETQ $eax, debug-location !17
RET64 $eax, debug-location !17
...
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,5 @@ body: |
JCC_1 %bb.1, 4, implicit killed $eflags
bb.3.bb3:
RETQ $eax, debug-location !17
RET64 $eax, debug-location !17
...
Original file line number Diff line number Diff line change
Expand Up @@ -78,5 +78,5 @@ body: |
$eax = MOV32ri 0, debug-location !17
JCC_1 %bb.1, 4, implicit killed $eflags
bb.5.bb5:
RETQ $eax, debug-location !17
RET64 $eax, debug-location !17
...
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,5 @@ body: |
$eax = MOV32ri 0, debug-location !17
JCC_1 %bb.1, 4, implicit killed $eflags
bb.5.bb5:
RETQ $eax, debug-location !17
RET64 $eax, debug-location !17
...
Original file line number Diff line number Diff line change
Expand Up @@ -79,5 +79,5 @@ body: |
$ebx = MOV32ri 0, debug-location !17
JCC_1 %bb.1, 4, implicit killed $eflags
bb.5.bb5:
RETQ $eax, debug-location !17
RET64 $eax, debug-location !17
...
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,5 @@ body: |
$eax = MOV32ri 0, debug-location !17
JCC_1 %bb.1, 4, implicit killed $eflags
bb.3.bb3:
RETQ $eax, debug-location !17
RET64 $eax, debug-location !17
...
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,5 @@ body: |
JCC_1 %bb.1, 4, implicit killed $eflags
bb.3.bb3:
RETQ $eax, debug-location !17
RET64 $eax, debug-location !17
...
Original file line number Diff line number Diff line change
Expand Up @@ -70,5 +70,5 @@ body: |
$eax = MOV32ri 0, debug-location !17
JCC_1 %bb.1, 4, implicit killed $eflags
bb.4.bb4:
RETQ $eax, debug-location !17
RET64 $eax, debug-location !17
...
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,5 @@ body: |
$eax = MOV32ri 0, debug-location !17
JCC_1 %bb.1, 4, implicit killed $eflags
bb.4.bb4:
RETQ $eax, debug-location !17
RET64 $eax, debug-location !17
...
Original file line number Diff line number Diff line change
Expand Up @@ -77,5 +77,5 @@ body: |
$eax = MOV32ri 0, debug-location !17
JCC_1 %bb.1, 4, implicit killed $eflags
bb.5.bb5:
RETQ $eax, debug-location !17
RET64 $eax, debug-location !17
...
Original file line number Diff line number Diff line change
Expand Up @@ -68,5 +68,5 @@ body: |
$eax = MOV32ri 0, debug-location !17
JCC_1 %bb.1, 4, implicit killed $eflags
bb.5.bb5:
RETQ $eax, debug-location !17
RET64 $eax, debug-location !17
...
Original file line number Diff line number Diff line change
Expand Up @@ -71,5 +71,5 @@ body: |
$eax = MOV32ri 0, debug-location !17
JCC_1 %bb.1, 4, implicit killed $eflags
bb.5.bb5:
RETQ $eax, debug-location !17
RET64 $eax, debug-location !17
...
Original file line number Diff line number Diff line change
Expand Up @@ -73,5 +73,5 @@ body: |
DBG_VALUE $eax, $noreg, !16, !DIExpression(), debug-location !17
JCC_1 %bb.1, 4, implicit killed $eflags
bb.5.bb5:
RETQ $eax, debug-location !17
RET64 $eax, debug-location !17
...
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,6 @@ body: |

bb.18:
liveins: $rsi, $rdi, $eflags
RETQ
RET64

...
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,6 @@ body: |

bb.4.exit:
$eax = COPY %5, debug-location !18
RETQ implicit $eax, debug-location !18
RET64 implicit $eax, debug-location !18

...
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,6 @@ body: |
MOV32mr $rip, 1, $noreg, @global, $noreg, killed renamable $edi, debug-location !18 :: (store (s32) into @global)
INLINEASM &"", 1, 12, implicit-def dead early-clobber $edi, 12, implicit-def dead early-clobber $esi, 12, implicit-def dead early-clobber $edx, 12, implicit-def dead early-clobber $df, 12, implicit-def dead early-clobber $fpsw, 12, implicit-def dead early-clobber $eflags, !19, debug-location !18
$eax = MOV32ri 123, debug-location !18
RETQ killed $eax, debug-location !18
RET64 killed $eax, debug-location !18

...
2 changes: 1 addition & 1 deletion llvm/test/DebugInfo/MIR/X86/piece-entryval.mir
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,6 @@ body: |
frame-setup PUSH64r killed $rbp, implicit-def $rsp, implicit $rsp
$rbp = frame-setup MOV64rr $rsp
$rbp = frame-destroy POP64r implicit-def $rsp, implicit $rsp, debug-location !16
RETQ debug-location !16
RET64 debug-location !16

...
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,6 @@ body: |
CFI_INSTRUCTION def_cfa_offset 16, debug-location !34
$rbp = frame-destroy POP64r implicit-def $rsp, implicit $rsp, debug-location !34
CFI_INSTRUCTION def_cfa_offset 8, debug-location !34
RETQ killed $eax, debug-location !34
RET64 killed $eax, debug-location !34

...
4 changes: 2 additions & 2 deletions llvm/test/DebugInfo/MIR/X86/remove-entry-value-from-loop.mir
Original file line number Diff line number Diff line change
Expand Up @@ -154,14 +154,14 @@ body: |
liveins: $eax

DBG_VALUE $eax, $noreg, !15, !DIExpression(), debug-location !17
RETQ $eax, debug-location !32
RET64 $eax, debug-location !32

bb.3.if.then:
liveins: $eax, $edi

renamable $eax = nsw IMUL32rr killed renamable $eax, killed renamable $edi, implicit-def dead $eflags, debug-location !28
DBG_VALUE $eax, $noreg, !15, !DIExpression(), debug-location !17
DBG_VALUE $eax, $noreg, !15, !DIExpression(), debug-location !17
RETQ $eax, debug-location !32
RET64 $eax, debug-location !32

...
12 changes: 6 additions & 6 deletions llvm/test/DebugInfo/MIR/X86/remove-redundant-dbg-vals.mir
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ body: |
$eax = XOR32rr undef $eax, undef $eax, implicit-def dead $eflags, debug-location !22
$rcx = frame-destroy POP64r implicit-def $rsp, implicit $rsp, debug-location !22
CFI_INSTRUCTION def_cfa_offset 8, debug-location !22
RETQ killed $eax, debug-location !22
RET64 killed $eax, debug-location !22

...
---
Expand All @@ -192,7 +192,7 @@ body: |
$eax = XOR32rr undef $eax, undef $eax, implicit-def dead $eflags, debug-location !22
$rcx = frame-destroy POP64r implicit-def $rsp, implicit $rsp, debug-location !22
CFI_INSTRUCTION def_cfa_offset 8, debug-location !22
RETQ killed $eax, debug-location !22
RET64 killed $eax, debug-location !22

...
---
Expand All @@ -214,7 +214,7 @@ body: |
DBG_VALUE $edi, $noreg, !13, !DIExpression(DW_OP_LLVM_fragment, 0, 32), debug-location !14
$rcx = frame-destroy POP64r implicit-def $rsp, implicit $rsp, debug-location !22
CFI_INSTRUCTION def_cfa_offset 8, debug-location !22
RETQ killed $eax, debug-location !22
RET64 killed $eax, debug-location !22

...
---
Expand All @@ -236,7 +236,7 @@ body: |
DBG_VALUE $edi, $noreg, !13, !DIExpression(DW_OP_LLVM_fragment, 0, 32), debug-location !14
$rcx = frame-destroy POP64r implicit-def $rsp, implicit $rsp, debug-location !22
CFI_INSTRUCTION def_cfa_offset 8, debug-location !22
RETQ killed $eax, debug-location !22
RET64 killed $eax, debug-location !22

...
---
Expand All @@ -258,7 +258,7 @@ body: |
DBG_VALUE $edi, $noreg, !13, !DIExpression(DW_OP_LLVM_fragment, 0, 32), debug-location !14
$rcx = frame-destroy POP64r implicit-def $rsp, implicit $rsp, debug-location !22
CFI_INSTRUCTION def_cfa_offset 8, debug-location !22
RETQ killed $eax, debug-location !22
RET64 killed $eax, debug-location !22

...
---
Expand All @@ -279,6 +279,6 @@ body: |
$eax = XOR32rr undef $eax, undef $eax, implicit-def dead $eflags, debug-location !22
$rcx = frame-destroy POP64r implicit-def $rsp, implicit $rsp, debug-location !22
CFI_INSTRUCTION def_cfa_offset 8, debug-location !22
RETQ killed $eax, debug-location !22
RET64 killed $eax, debug-location !22

...
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,6 @@ body: |
$eax = XOR32rr undef $eax, undef $eax, implicit-def dead $eflags, debug-location !18
$rcx = frame-destroy POP64r implicit-def $rsp, implicit $rsp, debug-location !18
CFI_INSTRUCTION def_cfa_offset 8, debug-location !18
RETQ killed $eax, debug-location !18
RET64 killed $eax, debug-location !18

...
2 changes: 1 addition & 1 deletion llvm/test/DebugInfo/X86/bbjoin.ll
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
; CHECK: DBG_VALUE 43, $noreg, ![[X]],
; CHECK: bb.2.if.end:
; CHECK-NOT: DBG_VALUE 23, $noreg, ![[X]],
; CHECK: RETQ $eax
; CHECK: RET64 $eax

target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-apple-macosx10.11.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,6 @@ body: |
; CHECK: [0x0000000000000003, 0x0000000000000004): DW_OP_reg0 RAX)
; CHECK-NEXT: DW_AT_name ("result")
renamable $eax = KILL killed $eax, implicit-def $rax
RETQ killed $eax, debug-location !24
RET64 killed $eax, debug-location !24

...
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,6 @@ body: |
$edi = MOV32rr $eax, debug-location !24
$eax = MOV32rr $eax, debug-location !24
$edi = MOV32rr $eax, debug-location !24
RETQ killed $eax, debug-location !24
RET64 killed $eax, debug-location !24

...
2 changes: 1 addition & 1 deletion llvm/test/DebugInfo/X86/dbg_value_list_clobbers.mir
Original file line number Diff line number Diff line change
Expand Up @@ -80,5 +80,5 @@ body: |
DBG_VALUE_LIST !12, !DIExpression(DW_OP_LLVM_arg, 0, DW_OP_LLVM_arg, 1, DW_OP_plus, DW_OP_stack_value, DW_OP_LLVM_fragment, 16, 16), $eax, $ecx, debug-location !15
; CHECK-NEXT: [{{.*}}): DW_OP_breg0 RAX+0, DW_OP_constu 0xffffffff, DW_OP_and, DW_OP_stack_value, DW_OP_piece 0x2, DW_OP_breg0 RAX+0, DW_OP_constu 0xffffffff, DW_OP_and, DW_OP_breg2 RCX+0, DW_OP_constu 0xffffffff, DW_OP_and, DW_OP_plus, DW_OP_stack_value, DW_OP_piece 0x2

RETQ debug-location !15
RET64 debug-location !15
...
2 changes: 1 addition & 1 deletion llvm/test/DebugInfo/X86/dbg_value_list_emission.mir
Original file line number Diff line number Diff line change
Expand Up @@ -97,5 +97,5 @@ body: |
; CHECK-NEXT: DW_AT_name ("localh")
; CHECK-NOT: DW_AT_location

RETQ debug-location !15
RET64 debug-location !15
...
2 changes: 1 addition & 1 deletion llvm/test/DebugInfo/X86/debug-loc-asan.mir
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,6 @@ body: |
$rsp = MOV64rr $rbp, debug-location !12
$rbp = frame-destroy POP64r implicit-def $rsp, implicit $rsp, debug-location !12
CFI_INSTRUCTION def_cfa $rsp, 8, debug-location !12
RETQ implicit killed $eax, debug-location !12
RET64 implicit killed $eax, debug-location !12

...
4 changes: 2 additions & 2 deletions llvm/test/DebugInfo/X86/debug-loc-offset.mir
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ body: |
$esp = frame-destroy ADD32ri8 $esp, 4, implicit-def dead $eflags, debug-location !16
$ebp = frame-destroy POP32r implicit-def $esp, implicit $esp, debug-location !16
CFI_INSTRUCTION def_cfa $esp, 4, debug-location !16
RETL implicit killed $eax, debug-location !16
RET32 implicit killed $eax, debug-location !16

...
---
Expand Down Expand Up @@ -271,6 +271,6 @@ body: |
$esp = frame-destroy ADD32ri8 $esp, 24, implicit-def dead $eflags, debug-location !30
$ebp = frame-destroy POP32r implicit-def $esp, implicit $esp, debug-location !30
CFI_INSTRUCTION def_cfa $esp, 4, debug-location !30
RETL debug-location !30
RET32 debug-location !30

...
6 changes: 3 additions & 3 deletions llvm/test/DebugInfo/X86/dw_op_constu.mir
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ body: |
renamable $rcx = MOV64rm renamable $noreg, 1, $noreg, 0, $fs
DBG_VALUE renamable $rcx, 0, !9, !DIExpression(DW_OP_constu, 18446744073709551614, DW_OP_minus), debug-location !14

RETQ debug-location !14
RET64 debug-location !14


bb.1: ;-------------------------- DW_OP_plus -------------------------------
Expand Down Expand Up @@ -106,7 +106,7 @@ body: |
renamable $rcx = MOV64rm renamable $noreg, 1, $noreg, 0, $fs
DBG_VALUE renamable $rcx, 0, !9, !DIExpression(DW_OP_constu, 18446744073709551614, DW_OP_plus), debug-location !14

RETQ debug-location !14
RET64 debug-location !14


bb.2: ;-------------------------- DW_OP_plus_uconst -------------------------------
Expand Down Expand Up @@ -139,7 +139,7 @@ body: |
renamable $rcx = MOV64rm renamable $noreg, 1, $noreg, 0, $fs
DBG_VALUE renamable $rcx, 0, !9, !DIExpression(DW_OP_plus_uconst, 18446744073709551614), debug-location !14

RETQ debug-location !14
RET64 debug-location !14

...

Expand Down
2 changes: 1 addition & 1 deletion llvm/test/DebugInfo/X86/dw_op_minus.mir
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,6 @@ body: |
MOV64mr killed renamable $rax, 1, $noreg, 0, $fs, killed renamable $rcx, debug-location !18 :: (store (s64) into @__safestack_unsafe_stack_ptr)
$rsp = frame-destroy ADD64ri8 $rsp, 24, implicit-def dead $eflags, debug-location !18
CFI_INSTRUCTION def_cfa_offset 8, debug-location !18
RETQ debug-location !18
RET64 debug-location !18

...
8 changes: 4 additions & 4 deletions llvm/test/DebugInfo/X86/live-debug-values-constprop.mir
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ body: |

bb.3.bb3:
liveins: $rax
RETQ $eax, debug-location !9
RET64 $eax, debug-location !9

...
---
Expand Down Expand Up @@ -217,7 +217,7 @@ body: |

bb.3.bb3:
liveins: $rax
RETQ $eax, debug-location !42
RET64 $eax, debug-location !42

...
---
Expand Down Expand Up @@ -281,7 +281,7 @@ body: |

bb.3.bb3:
liveins: $rax
RETQ $eax, debug-location !82
RET64 $eax, debug-location !82

...
---
Expand Down Expand Up @@ -342,6 +342,6 @@ body: |

bb.3.bb3:
liveins: $rax
RETQ $eax, debug-location !122
RET64 $eax, debug-location !122

...
2 changes: 1 addition & 1 deletion llvm/test/DebugInfo/X86/location-range-inlined-xblock.mir
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,6 @@ body: |
$rbx = frame-destroy POP64r implicit-def $rsp, implicit $rsp, debug-location !40
DBG_VALUE $edi, $noreg, !15, !DIExpression(DW_OP_LLVM_entry_value, 1), debug-location !16
CFI_INSTRUCTION def_cfa_offset 8, debug-location !40
RETQ $eax, debug-location !40
RET64 $eax, debug-location !40

...
6 changes: 3 additions & 3 deletions llvm/test/DebugInfo/X86/location-range.mir
Original file line number Diff line number Diff line change
Expand Up @@ -133,12 +133,12 @@ body: |

bb.1.if.then:
renamable $rax = MOV64rm $rip, 1, $noreg, @b, $noreg, debug-location !21 :: (dereferenceable load (s64) from @b)
RETQ $rax, debug-location !27
RET64 $rax, debug-location !27

bb.2.if.end:
DBG_VALUE 0, $noreg, !19, !DIExpression(), debug-location !27
renamable $rax = MOV64rm $rip, 1, $noreg, @a, $noreg, debug-location !27 :: (dereferenceable load (s64) from @a)
RETQ $rax, debug-location !27
RET64 $rax, debug-location !27

...
---
Expand All @@ -147,6 +147,6 @@ body: |
bb.0.entry:
$eax = MOVZX32rm16 $noreg, 1, $noreg, 0, $noreg, debug-location !48 :: (load (s16) from `i16* null`, align 1)
DBG_VALUE $ax, $noreg, !39, !DIExpression(), debug-location !51
RETQ $ax, debug-location !51
RET64 $ax, debug-location !51

...
2 changes: 1 addition & 1 deletion llvm/test/DebugInfo/X86/pr19307.mir
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,6 @@ body: |
$rsp = frame-destroy ADD64ri8 $rsp, 32, implicit-def dead $eflags, debug-location !53
$rbp = frame-destroy POP64r implicit-def $rsp, implicit $rsp, debug-location !53
CFI_INSTRUCTION def_cfa $rsp, 8, debug-location !53
RETQ debug-location !53
RET64 debug-location !53

...
2 changes: 1 addition & 1 deletion llvm/test/DebugInfo/X86/pr34545.ll
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
; CHECK: DBG_VALUE $eax
; CHECK: $eax = SHL32rCL killed renamable $eax
; CHECK: DBG_VALUE $eax
; CHECK: RETQ $eax
; CHECK: RET64 $eax

target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/DebugInfo/X86/single-location-2.mir
Original file line number Diff line number Diff line change
Expand Up @@ -88,5 +88,5 @@ body: |
;; end scope, end location range
$esi = MOV32ri 2, debug-location !26

RETQ debug-location !15
RET64 debug-location !15
...
4 changes: 2 additions & 2 deletions llvm/test/DebugInfo/X86/single-location-inlined-param.mir
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,10 @@ body: |
bb.2.return:
liveins: $eax

RETQ $eax, debug-location !36
RET64 $eax, debug-location !36

bb.1.if.end:
renamable $eax = MOV32ri 1
RETQ $eax, debug-location !36
RET64 $eax, debug-location !36

...
4 changes: 2 additions & 2 deletions llvm/test/DebugInfo/X86/single-location-interrupted-scope.mir
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ body: |
TAILJMPd64 @ext, csr_64, implicit $rsp, implicit $ssp, implicit $rsp, implicit $ssp, implicit killed $al, debug-location !35

bb.1.if.end:
RETQ debug-location !36
RET64 debug-location !36

...
---
Expand All @@ -177,6 +177,6 @@ body: |
TAILJMPd64 @ext, csr_64, implicit $rsp, implicit $ssp, implicit $rsp, implicit $ssp, implicit killed $al, debug-location !49

bb.1.if.end:
RETQ debug-location !50
RET64 debug-location !50

...
2 changes: 1 addition & 1 deletion llvm/test/DebugInfo/X86/trim-var-locs.mir
Original file line number Diff line number Diff line change
Expand Up @@ -116,5 +116,5 @@ body: |
$edi = MOV32ri 9, debug-location !26

; scope fun !7
RETQ debug-location !15
RET64 debug-location !15
...
4 changes: 2 additions & 2 deletions llvm/test/Transforms/SampleProfile/pseudo-probe.mir
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ body: |
bb.2:
PSEUDO_PROBE 6699318081062747564, 3, 0, 0
PSEUDO_PROBE 6699318081062747564, 4, 0, 0
RETQ
RET64

bb.1:
PSEUDO_PROBE 6699318081062747564, 2, 0, 0
PSEUDO_PROBE 6699318081062747564, 4, 0, 0
RETQ
RET64

...
26 changes: 13 additions & 13 deletions llvm/unittests/CodeGen/InstrRefLDVTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ body: |
TEST_F(InstrRefLDVTest, MTransferDefs) {
MachineFunction *MF = readMIRBlock(
" $rax = MOV64ri 0\n"
" RETQ $rax\n");
" RET64 $rax\n");
setupLDVObj(MF);

// We should start with only SP tracked.
Expand Down Expand Up @@ -519,7 +519,7 @@ TEST_F(InstrRefLDVTest, MTransferDefs) {
MF = readMIRBlock(
" $rax = MOV64ri 0\n"
" $al = MOV8ri 0\n"
" RETQ $rax\n");
" RET64 $rax\n");
setupLDVObj(MF);
TransferMap.clear();
TransferMap.resize(1);
Expand Down Expand Up @@ -556,7 +556,7 @@ TEST_F(InstrRefLDVTest, MTransferDefs) {
" $rdi = MOV64ri 0\n" // instr 4
" $rsi = MOV64ri 0\n" // instr 5
" CALL64r $rax, csr_64, implicit $rsp, implicit $ssp, implicit $rdi, implicit $rsi, implicit-def $rsp, implicit-def $ssp, implicit-def $rax, implicit-def $esp, implicit-def $sp\n\n\n\n" // instr 6
" RETQ $rax\n"); // instr 7
" RET64 $rax\n"); // instr 7
setupLDVObj(MF);
TransferMap.clear();
TransferMap.resize(1);
Expand Down Expand Up @@ -590,7 +590,7 @@ TEST_F(InstrRefLDVTest, MTransferDefs) {
// When we DBG_PHI something, we should track all its subregs.
MF = readMIRBlock(
" DBG_PHI $rdi, 0\n"
" RETQ\n");
" RET64\n");
setupLDVObj(MF);
TransferMap.clear();
TransferMap.resize(1);
Expand All @@ -613,7 +613,7 @@ TEST_F(InstrRefLDVTest, MTransferMeta) {
" $rax = MOV64ri 0\n"
" $rax = IMPLICIT_DEF\n"
" $rax = KILL killed $rax\n"
" RETQ $rax\n");
" RET64 $rax\n");
setupLDVObj(MF);
TransferMap.clear();
TransferMap.resize(1);
Expand All @@ -632,7 +632,7 @@ TEST_F(InstrRefLDVTest, MTransferCopies) {
MachineFunction *MF = readMIRBlock(
" $rax = MOV64ri 0\n"
" MOV64mr $rsp, 1, $noreg, 16, $noreg, $rax :: (store 8 into %stack.0)\n"
" RETQ $rax\n");
" RET64 $rax\n");
setupLDVObj(MF);
TransferMap.clear();
TransferMap.resize(1);
Expand All @@ -657,7 +657,7 @@ TEST_F(InstrRefLDVTest, MTransferCopies) {
" $rax = MOV64ri 0\n"
" MOV64mr $rsp, 1, $noreg, 16, $noreg, $rax :: (store 8 into %stack.0)\n"
" $rbx = MOV64rm $rsp, 1, $noreg, 0, $noreg :: (load 8 from %stack.0)\n"
" RETQ\n");
" RET64\n");
setupLDVObj(MF);
TransferMap.clear();
TransferMap.resize(1);
Expand All @@ -681,7 +681,7 @@ TEST_F(InstrRefLDVTest, MTransferCopies) {
" $rax = MOV64ri 0\n"
" $rcx = COPY $rax\n"
" $rbx = MOV64rr $rcx\n"
" RETQ\n");
" RET64\n");
setupLDVObj(MF);
TransferMap.clear();
TransferMap.resize(1);
Expand Down Expand Up @@ -711,7 +711,7 @@ TEST_F(InstrRefLDVTest, MTransferCopies) {
MF = readMIRBlock(
" $rax = MOV64ri 0\n"
" $ecx = COPY $eax\n"
" RETQ\n");
" RET64\n");
setupLDVObj(MF);
TransferMap.clear();
TransferMap.resize(1);
Expand Down Expand Up @@ -741,7 +741,7 @@ TEST_F(InstrRefLDVTest, MTransferSubregSpills) {
" $rax = MOV64ri 0\n"
" MOV64mr $rsp, 1, $noreg, 16, $noreg, $rax :: (store 8 into %stack.0)\n"
" $rbx = MOV64rm $rsp, 1, $noreg, 0, $noreg :: (load 8 from %stack.0)\n"
" RETQ\n");
" RET64\n");
setupLDVObj(MF);
TransferMap.clear();
TransferMap.resize(1);
Expand Down Expand Up @@ -788,7 +788,7 @@ TEST_F(InstrRefLDVTest, MTransferSubregSpills) {
" MOV64mr $rsp, 1, $noreg, 16, $noreg, $rax :: (store 8 into %stack.0)\n"
" MOV32mr $rsp, 1, $noreg, 16, $noreg, $eax :: (store 4 into %stack.0)\n"
" $rbx = MOV64rm $rsp, 1, $noreg, 0, $noreg :: (load 8 from %stack.0)\n"
" RETQ\n");
" RET64\n");
setupLDVObj(MF);
TransferMap.clear();
TransferMap.resize(1);
Expand Down Expand Up @@ -839,7 +839,7 @@ TEST_F(InstrRefLDVTest, MTransferSubregSpills) {
" $xmm0 = IMPLICIT_DEF\n"
" MOVUPDmr $rsp, 1, $noreg, 16, $noreg, killed $xmm0 :: (store (s128) into %stack.0)\n"
" $rbx = MOV64rm $rsp, 1, $noreg, 0, $noreg :: (load 8 from %stack.0)\n"
" RETQ\n");
" RET64\n");
setupLDVObj(MF);
TransferMap.clear();
TransferMap.resize(1);
Expand Down Expand Up @@ -874,7 +874,7 @@ TEST_F(InstrRefLDVTest, MTransferSubregSpills) {
" $rax = MOV64ri 0\n"
" MOV8mr $rsp, 1, $noreg, 16, $noreg, $ah :: (store 1 into %stack.0)\n"
" $al = MOV8rm $rsp, 1, $noreg, 0, $noreg :: (load 1 from %stack.0)\n"
" RETQ\n");
" RET64\n");
setupLDVObj(MF);
TransferMap.clear();
TransferMap.resize(1);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ TEST_F(X86SnippetRepetitorTest, Duplicate) {
ASSERT_EQ(MF->getNumBlockIDs(), 1u);
EXPECT_THAT(MF->getBlockNumbered(0)->instrs(),
ElementsAre(HasOpcode(X86::NOOP), HasOpcode(X86::NOOP),
HasOpcode(X86::NOOP), HasOpcode(X86::RETQ)));
HasOpcode(X86::NOOP), HasOpcode(X86::RET64)));
}

TEST_F(X86SnippetRepetitorTest, Loop) {
Expand All @@ -90,7 +90,7 @@ TEST_F(X86SnippetRepetitorTest, Loop) {
LiveReg(State.getExegesisTarget().getLoopCounterRegister(
State.getTargetMachine().getTargetTriple()))));
EXPECT_THAT(MF->getBlockNumbered(2)->instrs(),
ElementsAre(HasOpcode(X86::RETQ)));
ElementsAre(HasOpcode(X86::RET64)));
}

} // namespace
Expand Down