[llvm] e18c5de - [X86/AArch64] Autogen two additional tests
Philip Reames via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 3 13:11:35 PDT 2025
Author: Philip Reames
Date: 2025-07-03T13:11:29-07:00
New Revision: e18c5dec6dc36145012503484a3ae55a94431f1b
URL: https://github.com/llvm/llvm-project/commit/e18c5dec6dc36145012503484a3ae55a94431f1b
DIFF: https://github.com/llvm/llvm-project/commit/e18c5dec6dc36145012503484a3ae55a94431f1b.diff
LOG: [X86/AArch64] Autogen two additional tests
The AArch64 one still has some manual check lines, so it's only "mostly"
auto generated
Added:
Modified:
llvm/test/CodeGen/AArch64/merge-scoped-aa-store.ll
llvm/test/CodeGen/X86/statepoint-cmp-sunk-past-statepoint.ll
Removed:
################################################################################
diff --git a/llvm/test/CodeGen/AArch64/merge-scoped-aa-store.ll b/llvm/test/CodeGen/AArch64/merge-scoped-aa-store.ll
index a0eba7c747e95..6b2a8c5aaf8b8 100644
--- a/llvm/test/CodeGen/AArch64/merge-scoped-aa-store.ll
+++ b/llvm/test/CodeGen/AArch64/merge-scoped-aa-store.ll
@@ -1,3 +1,4 @@
+; NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py UTC_ARGS: --version 5
; RUN: llc %s -mtriple=aarch64 -stop-after=finalize-isel -o - | FileCheck --check-prefix=MIR %s
; Ensure the scoped AA metadata is still retained after store merging.
@@ -13,9 +14,15 @@
; MIR-DAG: ![[SET3:[0-9]+]] = !{![[SCOPE3]]}
define void @blam0(ptr %g0, ptr %g1) {
-; MIR-LABEL: name: blam0
-; MIR: LDRDui %0, 0 :: (load (s64) from %ir.g0, align 4, !alias.scope ![[SET0]], !noalias ![[SET1]])
-; MIR: STRDui killed %{{[0-9]*}}, %1, 0 :: (store (s64) into %ir.tmp41, align 4, !alias.scope ![[SET1]], !noalias ![[SET0]])
+ ; MIR-LABEL: name: blam0
+ ; MIR: bb.0 (%ir-block.0):
+ ; MIR-NEXT: liveins: $x0, $x1
+ ; MIR-NEXT: {{ $}}
+ ; MIR-NEXT: [[COPY:%[0-9]+]]:gpr64common = COPY $x1
+ ; MIR-NEXT: [[COPY1:%[0-9]+]]:gpr64common = COPY $x0
+ ; MIR-NEXT: [[LDRDui:%[0-9]+]]:fpr64 = LDRDui [[COPY1]], 0 :: (load (s64) from %ir.g0, align 4, !alias.scope !0, !noalias !3)
+ ; MIR-NEXT: STRDui killed [[LDRDui]], [[COPY]], 0 :: (store (s64) into %ir.tmp41, align 4, !alias.scope !3, !noalias !0)
+ ; MIR-NEXT: RET_ReallyLR
%tmp4 = getelementptr inbounds <3 x float>, ptr %g1, i64 0, i64 0
%tmp5 = load <3 x float>, ptr %g0, align 4, !alias.scope !0, !noalias !1
%tmp6 = extractelement <3 x float> %tmp5, i64 0
@@ -29,13 +36,15 @@ define void @blam0(ptr %g0, ptr %g1) {
; Ensure new scoped AA metadata are calculated after merging stores.
define void @blam1(ptr %g0, ptr %g1) {
-; MIR-LABEL: name: blam1
-; MIR: machineMetadataNodes:
-; MIR-DAG: ![[MMSET0:[0-9]+]] = !{![[SCOPE2]], ![[SCOPE1]]}
-; MIR-DAG: ![[MMSET1:[0-9]+]] = !{}
-; MIR: body:
-; MIR: LDRDui %0, 0 :: (load (s64) from %ir.g0, align 4, !alias.scope ![[SET0]], !noalias ![[SET1]])
-; MIR: STRDui killed %{{[0-9]*}}, %1, 0 :: (store (s64) into %ir.tmp41, align 4, !alias.scope ![[MMSET0]], !noalias ![[MMSET1]])
+ ; MIR-LABEL: name: blam1
+ ; MIR: bb.0 (%ir-block.0):
+ ; MIR-NEXT: liveins: $x0, $x1
+ ; MIR-NEXT: {{ $}}
+ ; MIR-NEXT: [[COPY:%[0-9]+]]:gpr64common = COPY $x1
+ ; MIR-NEXT: [[COPY1:%[0-9]+]]:gpr64common = COPY $x0
+ ; MIR-NEXT: [[LDRDui:%[0-9]+]]:fpr64 = LDRDui [[COPY1]], 0 :: (load (s64) from %ir.g0, align 4, !alias.scope !0, !noalias !3)
+ ; MIR-NEXT: STRDui killed [[LDRDui]], [[COPY]], 0 :: (store (s64) into %ir.tmp41, align 4, !alias.scope !9, !noalias !10)
+ ; MIR-NEXT: RET_ReallyLR
%tmp4 = getelementptr inbounds <3 x float>, ptr %g1, i64 0, i64 0
%tmp5 = load <3 x float>, ptr %g0, align 4, !alias.scope !0, !noalias !1
%tmp6 = extractelement <3 x float> %tmp5, i64 0
diff --git a/llvm/test/CodeGen/X86/statepoint-cmp-sunk-past-statepoint.ll b/llvm/test/CodeGen/X86/statepoint-cmp-sunk-past-statepoint.ll
index 391963de79703..8d589c519eff2 100644
--- a/llvm/test/CodeGen/X86/statepoint-cmp-sunk-past-statepoint.ll
+++ b/llvm/test/CodeGen/X86/statepoint-cmp-sunk-past-statepoint.ll
@@ -1,5 +1,6 @@
-; RUN: llc -max-registers-for-gc-values=256 -verify-machineinstrs -stop-after twoaddressinstruction < %s | FileCheck --check-prefixes CHECK,CHECK-LV %s
-; RUN: llc -max-registers-for-gc-values=256 -verify-machineinstrs -stop-after twoaddressinstruction -early-live-intervals < %s | FileCheck --check-prefixes CHECK,CHECK-LIS %s
+; NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py UTC_ARGS: --version 5
+; RUN: llc -max-registers-for-gc-values=256 -verify-machineinstrs -stop-after twoaddressinstruction < %s | FileCheck --check-prefix=CHECK-LV %s
+; RUN: llc -max-registers-for-gc-values=256 -verify-machineinstrs -stop-after twoaddressinstruction -early-live-intervals < %s | FileCheck --check-prefix=CHECK-LIS %s
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128-ni:1-p2:32:8:8:32-ni:2"
target triple = "x86_64-unknown-linux-gnu"
@@ -10,26 +11,54 @@ declare void @bar(ptr addrspace(1)) gc "statepoint-example"
declare ptr @fake_personality_function()
; Simplest possible test demonstrating the problem
-
-; CHECK-LABEL: name: test
-; CHECK: bb.0
-; CHECK-LV: %0:gr64 = COPY killed $rdi
-; CHECK-LIS: %0:gr64 = COPY $rdi
-; CHECK: %1:gr64 = COPY %0
-; CHECK: %1:gr64 = STATEPOINT 2, 5, 0, undef %2:gr64, 2, 0, 2, 0, 2, 0, 2, 1, %1(tied-def 0), 2, 0, 2, 1, 0, 0
-; CHECK-LV: TEST64rr killed %0, %0, implicit-def $eflags
-; CHECK-LIS: TEST64rr %0, %0, implicit-def $eflags
-; CHECK: JCC_1 %bb.2, 4, implicit killed $eflags
-; CHECK: JMP_1 %bb.1
-; CHECK: bb.1
-; CHECK-LV: $rdi = COPY killed %1
-; CHECK-LV: STATEPOINT 2, 5, 1, undef %3:gr64, killed $rdi, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0
-; CHECK-LIS: $rdi = COPY %1
-; CHECK-LIS: STATEPOINT 2, 5, 1, undef %3:gr64, $rdi, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0
-; CHECK: RET 0
-; CHECK: bb.2
-; CHECK: RET 0
define void @test(ptr addrspace(1) %a) gc "statepoint-example" {
+ ; CHECK-LV-LABEL: name: test
+ ; CHECK-LV: bb.0.entry:
+ ; CHECK-LV-NEXT: successors: %bb.2(0x30000000), %bb.1(0x50000000)
+ ; CHECK-LV-NEXT: liveins: $rdi
+ ; CHECK-LV-NEXT: {{ $}}
+ ; CHECK-LV-NEXT: [[COPY:%[0-9]+]]:gr64 = COPY killed $rdi
+ ; CHECK-LV-NEXT: ADJCALLSTACKDOWN64 0, 0, 0, implicit-def dead $rsp, implicit-def dead $eflags, implicit-def dead $ssp, implicit $rsp, implicit $ssp
+ ; CHECK-LV-NEXT: [[COPY1:%[0-9]+]]:gr64 = COPY [[COPY]]
+ ; CHECK-LV-NEXT: [[COPY1:%[0-9]+]]:gr64 = STATEPOINT 2, 5, 0, undef %2:gr64, 2, 0, 2, 0, 2, 0, 2, 1, [[COPY1]](tied-def 0), 2, 0, 2, 1, 0, 0, csr_64, implicit-def $rsp, implicit-def $ssp
+ ; CHECK-LV-NEXT: ADJCALLSTACKUP64 0, 0, implicit-def dead $rsp, implicit-def dead $eflags, implicit-def dead $ssp, implicit $rsp, implicit $ssp
+ ; CHECK-LV-NEXT: TEST64rr killed [[COPY]], [[COPY]], implicit-def $eflags
+ ; CHECK-LV-NEXT: JCC_1 %bb.2, 4, implicit killed $eflags
+ ; CHECK-LV-NEXT: JMP_1 %bb.1
+ ; CHECK-LV-NEXT: {{ $}}
+ ; CHECK-LV-NEXT: bb.1.not_zero:
+ ; CHECK-LV-NEXT: ADJCALLSTACKDOWN64 0, 0, 0, implicit-def dead $rsp, implicit-def dead $eflags, implicit-def dead $ssp, implicit $rsp, implicit $ssp
+ ; CHECK-LV-NEXT: $rdi = COPY killed [[COPY1]]
+ ; CHECK-LV-NEXT: STATEPOINT 2, 5, 1, undef %3:gr64, killed $rdi, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, csr_64, implicit-def $rsp, implicit-def $ssp
+ ; CHECK-LV-NEXT: ADJCALLSTACKUP64 0, 0, implicit-def dead $rsp, implicit-def dead $eflags, implicit-def dead $ssp, implicit $rsp, implicit $ssp
+ ; CHECK-LV-NEXT: RET 0
+ ; CHECK-LV-NEXT: {{ $}}
+ ; CHECK-LV-NEXT: bb.2.zero:
+ ; CHECK-LV-NEXT: RET 0
+ ;
+ ; CHECK-LIS-LABEL: name: test
+ ; CHECK-LIS: bb.0.entry:
+ ; CHECK-LIS-NEXT: successors: %bb.2(0x30000000), %bb.1(0x50000000)
+ ; CHECK-LIS-NEXT: liveins: $rdi
+ ; CHECK-LIS-NEXT: {{ $}}
+ ; CHECK-LIS-NEXT: [[COPY:%[0-9]+]]:gr64 = COPY $rdi
+ ; CHECK-LIS-NEXT: ADJCALLSTACKDOWN64 0, 0, 0, implicit-def dead $rsp, implicit-def dead $eflags, implicit-def dead $ssp, implicit $rsp, implicit $ssp
+ ; CHECK-LIS-NEXT: [[COPY1:%[0-9]+]]:gr64 = COPY [[COPY]]
+ ; CHECK-LIS-NEXT: [[COPY1:%[0-9]+]]:gr64 = STATEPOINT 2, 5, 0, undef %2:gr64, 2, 0, 2, 0, 2, 0, 2, 1, [[COPY1]](tied-def 0), 2, 0, 2, 1, 0, 0, csr_64, implicit-def $rsp, implicit-def $ssp
+ ; CHECK-LIS-NEXT: ADJCALLSTACKUP64 0, 0, implicit-def dead $rsp, implicit-def dead $eflags, implicit-def dead $ssp, implicit $rsp, implicit $ssp
+ ; CHECK-LIS-NEXT: TEST64rr [[COPY]], [[COPY]], implicit-def $eflags
+ ; CHECK-LIS-NEXT: JCC_1 %bb.2, 4, implicit killed $eflags
+ ; CHECK-LIS-NEXT: JMP_1 %bb.1
+ ; CHECK-LIS-NEXT: {{ $}}
+ ; CHECK-LIS-NEXT: bb.1.not_zero:
+ ; CHECK-LIS-NEXT: ADJCALLSTACKDOWN64 0, 0, 0, implicit-def dead $rsp, implicit-def dead $eflags, implicit-def dead $ssp, implicit $rsp, implicit $ssp
+ ; CHECK-LIS-NEXT: $rdi = COPY [[COPY1]]
+ ; CHECK-LIS-NEXT: STATEPOINT 2, 5, 1, undef %3:gr64, $rdi, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, csr_64, implicit-def $rsp, implicit-def $ssp
+ ; CHECK-LIS-NEXT: ADJCALLSTACKUP64 0, 0, implicit-def dead $rsp, implicit-def dead $eflags, implicit-def dead $ssp, implicit $rsp, implicit $ssp
+ ; CHECK-LIS-NEXT: RET 0
+ ; CHECK-LIS-NEXT: {{ $}}
+ ; CHECK-LIS-NEXT: bb.2.zero:
+ ; CHECK-LIS-NEXT: RET 0
entry:
%not7 = icmp eq ptr addrspace(1) %a, null
%statepoint_token1745 = call token (i64, i32, ptr, i32, i32, ...) @llvm.experimental.gc.statepoint.p0(i64 2, i32 5, ptr nonnull elementtype(void ()) @foo, i32 0, i32 0, i32 0, i32 0) [ "deopt"(), "gc-live"(ptr addrspace(1) %a) ]
@@ -45,28 +74,138 @@ zero:
}
; A bit more complex test, where both registers are used in same successor BB
-
-; CHECK-LABEL: name: test2
-; CHECK: bb.2
-; CHECK: %1:gr64 = STATEPOINT 2882400000, 0, 0, undef %11:gr64, 2, 0, 2, 0, 2, 0, 2, 1, %1(tied-def 0), 2, 0, 2, 1, 0, 0, csr_64
-; CHECK: %10:gr64 = COPY %1
-; CHECK: %10:gr64 = STATEPOINT 2882400000, 0, 0, undef %13:gr64, 2, 0, 2, 0, 2, 0, 2, 1, %10(tied-def 0), 2, 0, 2, 1, 0, 0, csr_64
-; CHECK: JMP_1 %bb.3
-; CHECK: bb.3
-; CHECK: %18:gr8 = COPY %17.sub_8bit
-; CHECK-LV: TEST8rr killed %18, %18, implicit-def $eflags
-; CHECK-LIS: TEST8rr %18, %18, implicit-def $eflags
-; CHECK: JCC_1 %bb.5, 5, implicit killed $eflags
-; CHECK: JMP_1 %bb.4
-; CHECK: bb.4
-; CHECK: bb.5
-; CHECK: %3:gr64 = COPY %10
-; CHECK: %4:gr64 = COPY killed %10
-; CHECK: %4:gr64 = nuw ADD64ri32 %4, 8, implicit-def dead $eflags
-; CHECK: TEST64rr killed %1, %1, implicit-def $eflags
-; CHECK: JCC_1 %bb.1, 5, implicit killed $eflags
-; CHECK: JMP_1 %bb.6
define void @test2(ptr addrspace(1) %this, i32 %0, ptr addrspace(1) %p0, ptr addrspace(1) %p1) gc "statepoint-example" personality ptr @fake_personality_function {
+ ; CHECK-LV-LABEL: name: test2
+ ; CHECK-LV: bb.0.preheader:
+ ; CHECK-LV-NEXT: successors: %bb.1(0x80000000)
+ ; CHECK-LV-NEXT: liveins: $rdx, $rcx
+ ; CHECK-LV-NEXT: {{ $}}
+ ; CHECK-LV-NEXT: [[COPY:%[0-9]+]]:gr64 = COPY killed $rcx
+ ; CHECK-LV-NEXT: [[COPY1:%[0-9]+]]:gr64 = COPY killed $rdx
+ ; CHECK-LV-NEXT: [[MOV32r0_:%[0-9]+]]:gr32 = MOV32r0 implicit-def dead $eflags
+ ; CHECK-LV-NEXT: [[COPY2:%[0-9]+]]:gr64 = COPY killed [[COPY1]]
+ ; CHECK-LV-NEXT: [[COPY3:%[0-9]+]]:gr64 = COPY killed [[COPY]]
+ ; CHECK-LV-NEXT: {{ $}}
+ ; CHECK-LV-NEXT: bb.1.loop.head:
+ ; CHECK-LV-NEXT: successors: %bb.6(0x04000000), %bb.2(0x7c000000)
+ ; CHECK-LV-NEXT: {{ $}}
+ ; CHECK-LV-NEXT: [[COPY4:%[0-9]+]]:gr64 = COPY killed [[COPY3]]
+ ; CHECK-LV-NEXT: [[COPY5:%[0-9]+]]:gr64 = COPY killed [[COPY2]]
+ ; CHECK-LV-NEXT: TEST64rr killed [[COPY5]], [[COPY5]], implicit-def $eflags
+ ; CHECK-LV-NEXT: JCC_1 %bb.6, 5, implicit killed $eflags
+ ; CHECK-LV-NEXT: JMP_1 %bb.2
+ ; CHECK-LV-NEXT: {{ $}}
+ ; CHECK-LV-NEXT: bb.2.BB3:
+ ; CHECK-LV-NEXT: successors: %bb.3(0x7ffff800), %bb.7(0x00000800)
+ ; CHECK-LV-NEXT: {{ $}}
+ ; CHECK-LV-NEXT: ADJCALLSTACKDOWN64 0, 0, 0, implicit-def dead $rsp, implicit-def dead $eflags, implicit-def dead $ssp, implicit $rsp, implicit $ssp
+ ; CHECK-LV-NEXT: [[COPY4:%[0-9]+]]:gr64 = STATEPOINT 2882400000, 0, 0, undef %11:gr64, 2, 0, 2, 0, 2, 0, 2, 1, [[COPY4]](tied-def 0), 2, 0, 2, 1, 0, 0, csr_64, implicit-def $rsp, implicit-def $ssp, implicit-def dead $rax
+ ; CHECK-LV-NEXT: ADJCALLSTACKUP64 0, 0, implicit-def dead $rsp, implicit-def dead $eflags, implicit-def dead $ssp, implicit $rsp, implicit $ssp
+ ; CHECK-LV-NEXT: EH_LABEL <mcsymbol >
+ ; CHECK-LV-NEXT: ADJCALLSTACKDOWN64 0, 0, 0, implicit-def dead $rsp, implicit-def dead $eflags, implicit-def dead $ssp, implicit $rsp, implicit $ssp
+ ; CHECK-LV-NEXT: [[COPY6:%[0-9]+]]:gr64 = COPY [[COPY4]]
+ ; CHECK-LV-NEXT: [[COPY6:%[0-9]+]]:gr64 = STATEPOINT 2882400000, 0, 0, undef %13:gr64, 2, 0, 2, 0, 2, 0, 2, 1, [[COPY6]](tied-def 0), 2, 0, 2, 1, 0, 0, csr_64, implicit-def $rsp, implicit-def $ssp, implicit-def dead $rax
+ ; CHECK-LV-NEXT: ADJCALLSTACKUP64 0, 0, implicit-def dead $rsp, implicit-def dead $eflags, implicit-def dead $ssp, implicit $rsp, implicit $ssp
+ ; CHECK-LV-NEXT: EH_LABEL <mcsymbol >
+ ; CHECK-LV-NEXT: JMP_1 %bb.3
+ ; CHECK-LV-NEXT: {{ $}}
+ ; CHECK-LV-NEXT: bb.3.BB2:
+ ; CHECK-LV-NEXT: successors: %bb.4(0x40000000), %bb.5(0x40000000)
+ ; CHECK-LV-NEXT: {{ $}}
+ ; CHECK-LV-NEXT: [[COPY7:%[0-9]+]]:gr8 = COPY [[MOV32r0_]].sub_8bit
+ ; CHECK-LV-NEXT: TEST8rr killed [[COPY7]], [[COPY7]], implicit-def $eflags
+ ; CHECK-LV-NEXT: JCC_1 %bb.5, 5, implicit killed $eflags
+ ; CHECK-LV-NEXT: JMP_1 %bb.4
+ ; CHECK-LV-NEXT: {{ $}}
+ ; CHECK-LV-NEXT: bb.4.BB4:
+ ; CHECK-LV-NEXT: successors: %bb.5(0x80000000)
+ ; CHECK-LV-NEXT: {{ $}}
+ ; CHECK-LV-NEXT: bb.5.tail:
+ ; CHECK-LV-NEXT: successors: %bb.6(0x04000000), %bb.1(0x7c000000)
+ ; CHECK-LV-NEXT: {{ $}}
+ ; CHECK-LV-NEXT: [[COPY8:%[0-9]+]]:gr64 = COPY [[COPY6]]
+ ; CHECK-LV-NEXT: [[COPY9:%[0-9]+]]:gr64 = COPY killed [[COPY6]]
+ ; CHECK-LV-NEXT: [[COPY9:%[0-9]+]]:gr64 = nuw ADD64ri32 [[COPY9]], 8, implicit-def dead $eflags
+ ; CHECK-LV-NEXT: TEST64rr killed [[COPY4]], [[COPY4]], implicit-def $eflags
+ ; CHECK-LV-NEXT: [[COPY2:%[0-9]+]]:gr64 = COPY killed [[COPY9]]
+ ; CHECK-LV-NEXT: [[COPY3:%[0-9]+]]:gr64 = COPY killed [[COPY8]]
+ ; CHECK-LV-NEXT: JCC_1 %bb.1, 5, implicit killed $eflags
+ ; CHECK-LV-NEXT: JMP_1 %bb.6
+ ; CHECK-LV-NEXT: {{ $}}
+ ; CHECK-LV-NEXT: bb.6.BB1:
+ ; CHECK-LV-NEXT: RET 0
+ ; CHECK-LV-NEXT: {{ $}}
+ ; CHECK-LV-NEXT: bb.7.BB6 (landing-pad):
+ ; CHECK-LV-NEXT: liveins: $rax, $rdx
+ ; CHECK-LV-NEXT: {{ $}}
+ ; CHECK-LV-NEXT: EH_LABEL <mcsymbol >
+ ; CHECK-LV-NEXT: RET 0
+ ;
+ ; CHECK-LIS-LABEL: name: test2
+ ; CHECK-LIS: bb.0.preheader:
+ ; CHECK-LIS-NEXT: successors: %bb.1(0x80000000)
+ ; CHECK-LIS-NEXT: liveins: $rdx, $rcx
+ ; CHECK-LIS-NEXT: {{ $}}
+ ; CHECK-LIS-NEXT: [[COPY:%[0-9]+]]:gr64 = COPY $rcx
+ ; CHECK-LIS-NEXT: [[COPY1:%[0-9]+]]:gr64 = COPY $rdx
+ ; CHECK-LIS-NEXT: [[MOV32r0_:%[0-9]+]]:gr32 = MOV32r0 implicit-def dead $eflags
+ ; CHECK-LIS-NEXT: [[COPY2:%[0-9]+]]:gr64 = COPY [[COPY1]]
+ ; CHECK-LIS-NEXT: [[COPY3:%[0-9]+]]:gr64 = COPY [[COPY]]
+ ; CHECK-LIS-NEXT: {{ $}}
+ ; CHECK-LIS-NEXT: bb.1.loop.head:
+ ; CHECK-LIS-NEXT: successors: %bb.6(0x04000000), %bb.2(0x7c000000)
+ ; CHECK-LIS-NEXT: {{ $}}
+ ; CHECK-LIS-NEXT: [[COPY4:%[0-9]+]]:gr64 = COPY [[COPY3]]
+ ; CHECK-LIS-NEXT: [[COPY5:%[0-9]+]]:gr64 = COPY [[COPY2]]
+ ; CHECK-LIS-NEXT: TEST64rr [[COPY5]], [[COPY5]], implicit-def $eflags
+ ; CHECK-LIS-NEXT: JCC_1 %bb.6, 5, implicit killed $eflags
+ ; CHECK-LIS-NEXT: JMP_1 %bb.2
+ ; CHECK-LIS-NEXT: {{ $}}
+ ; CHECK-LIS-NEXT: bb.2.BB3:
+ ; CHECK-LIS-NEXT: successors: %bb.3(0x7ffff800), %bb.7(0x00000800)
+ ; CHECK-LIS-NEXT: {{ $}}
+ ; CHECK-LIS-NEXT: ADJCALLSTACKDOWN64 0, 0, 0, implicit-def dead $rsp, implicit-def dead $eflags, implicit-def dead $ssp, implicit $rsp, implicit $ssp
+ ; CHECK-LIS-NEXT: [[COPY4:%[0-9]+]]:gr64 = STATEPOINT 2882400000, 0, 0, undef %11:gr64, 2, 0, 2, 0, 2, 0, 2, 1, [[COPY4]](tied-def 0), 2, 0, 2, 1, 0, 0, csr_64, implicit-def $rsp, implicit-def $ssp, implicit-def dead $rax
+ ; CHECK-LIS-NEXT: ADJCALLSTACKUP64 0, 0, implicit-def dead $rsp, implicit-def dead $eflags, implicit-def dead $ssp, implicit $rsp, implicit $ssp
+ ; CHECK-LIS-NEXT: EH_LABEL <mcsymbol >
+ ; CHECK-LIS-NEXT: ADJCALLSTACKDOWN64 0, 0, 0, implicit-def dead $rsp, implicit-def dead $eflags, implicit-def dead $ssp, implicit $rsp, implicit $ssp
+ ; CHECK-LIS-NEXT: [[COPY6:%[0-9]+]]:gr64 = COPY [[COPY4]]
+ ; CHECK-LIS-NEXT: [[COPY6:%[0-9]+]]:gr64 = STATEPOINT 2882400000, 0, 0, undef %13:gr64, 2, 0, 2, 0, 2, 0, 2, 1, [[COPY6]](tied-def 0), 2, 0, 2, 1, 0, 0, csr_64, implicit-def $rsp, implicit-def $ssp, implicit-def dead $rax
+ ; CHECK-LIS-NEXT: ADJCALLSTACKUP64 0, 0, implicit-def dead $rsp, implicit-def dead $eflags, implicit-def dead $ssp, implicit $rsp, implicit $ssp
+ ; CHECK-LIS-NEXT: EH_LABEL <mcsymbol >
+ ; CHECK-LIS-NEXT: JMP_1 %bb.3
+ ; CHECK-LIS-NEXT: {{ $}}
+ ; CHECK-LIS-NEXT: bb.3.BB2:
+ ; CHECK-LIS-NEXT: successors: %bb.4(0x40000000), %bb.5(0x40000000)
+ ; CHECK-LIS-NEXT: {{ $}}
+ ; CHECK-LIS-NEXT: [[COPY7:%[0-9]+]]:gr8 = COPY [[MOV32r0_]].sub_8bit
+ ; CHECK-LIS-NEXT: TEST8rr [[COPY7]], [[COPY7]], implicit-def $eflags
+ ; CHECK-LIS-NEXT: JCC_1 %bb.5, 5, implicit killed $eflags
+ ; CHECK-LIS-NEXT: JMP_1 %bb.4
+ ; CHECK-LIS-NEXT: {{ $}}
+ ; CHECK-LIS-NEXT: bb.4.BB4:
+ ; CHECK-LIS-NEXT: successors: %bb.5(0x80000000)
+ ; CHECK-LIS-NEXT: {{ $}}
+ ; CHECK-LIS-NEXT: bb.5.tail:
+ ; CHECK-LIS-NEXT: successors: %bb.6(0x04000000), %bb.1(0x7c000000)
+ ; CHECK-LIS-NEXT: {{ $}}
+ ; CHECK-LIS-NEXT: [[COPY8:%[0-9]+]]:gr64 = COPY [[COPY6]]
+ ; CHECK-LIS-NEXT: [[COPY9:%[0-9]+]]:gr64 = COPY killed [[COPY6]]
+ ; CHECK-LIS-NEXT: [[COPY9:%[0-9]+]]:gr64 = nuw ADD64ri32 [[COPY9]], 8, implicit-def dead $eflags
+ ; CHECK-LIS-NEXT: TEST64rr killed [[COPY4]], [[COPY4]], implicit-def $eflags
+ ; CHECK-LIS-NEXT: [[COPY2:%[0-9]+]]:gr64 = COPY [[COPY9]]
+ ; CHECK-LIS-NEXT: [[COPY3:%[0-9]+]]:gr64 = COPY [[COPY8]]
+ ; CHECK-LIS-NEXT: JCC_1 %bb.1, 5, implicit killed $eflags
+ ; CHECK-LIS-NEXT: JMP_1 %bb.6
+ ; CHECK-LIS-NEXT: {{ $}}
+ ; CHECK-LIS-NEXT: bb.6.BB1:
+ ; CHECK-LIS-NEXT: RET 0
+ ; CHECK-LIS-NEXT: {{ $}}
+ ; CHECK-LIS-NEXT: bb.7.BB6 (landing-pad):
+ ; CHECK-LIS-NEXT: liveins: $rax, $rdx
+ ; CHECK-LIS-NEXT: {{ $}}
+ ; CHECK-LIS-NEXT: EH_LABEL <mcsymbol >
+ ; CHECK-LIS-NEXT: RET 0
preheader:
br label %loop.head
More information about the llvm-commits
mailing list