CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
89 lines
3.6 KiB
YAML
89 lines
3.6 KiB
YAML
# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py UTC_ARGS: --version 6
|
|
# RUN: llc -mtriple=x86_64-- -run-pass=livevars,phi-node-elimination %s -o - | FileCheck %s
|
|
# RUN: llc -mtriple=x86_64-- --passes='require<live-vars>,phi-node-elimination' -verify-each -o - %s | FileCheck %s
|
|
|
|
--- |
|
|
define i64 @inlineasm_br_different_indirect_target(i1 %cmp) {
|
|
entry:
|
|
br label %loop
|
|
|
|
loop: ; preds = %loop.end, %loop, %entry
|
|
%val = phi i64 [ 0, %entry ], [ %val.next, %loop.end ], [ poison, %loop ]
|
|
br i1 %cmp, label %loop.end, label %loop
|
|
|
|
loop.end: ; preds = %loop
|
|
%val.next = xor i64 %val, 9
|
|
callbr void asm sideeffect "", "!i,~{dirflag},~{fpsr},~{flags}"()
|
|
to label %exit [label %loop]
|
|
|
|
exit: ; preds = %loop.end
|
|
ret i64 %val.next
|
|
}
|
|
...
|
|
---
|
|
name: inlineasm_br_different_indirect_target
|
|
alignment: 16
|
|
tracksRegLiveness: true
|
|
noPhis: false
|
|
isSSA: true
|
|
body: |
|
|
; CHECK-LABEL: name: inlineasm_br_different_indirect_target
|
|
; CHECK: bb.0.entry:
|
|
; CHECK-NEXT: successors: %bb.1(0x80000000)
|
|
; CHECK-NEXT: liveins: $edi
|
|
; CHECK-NEXT: {{ $}}
|
|
; CHECK-NEXT: [[COPY:%[0-9]+]]:gr32 = COPY killed $edi
|
|
; CHECK-NEXT: [[COPY1:%[0-9]+]]:gr8 = COPY killed [[COPY]].sub_8bit
|
|
; CHECK-NEXT: [[MOV32r0_:%[0-9]+]]:gr32 = MOV32r0 implicit-def dead $eflags
|
|
; CHECK-NEXT: [[SUBREG_TO_REG:%[0-9]+]]:gr64 = SUBREG_TO_REG killed [[MOV32r0_]], %subreg.sub_32bit
|
|
; CHECK-NEXT: [[COPY2:%[0-9]+]]:gr64 = COPY killed [[SUBREG_TO_REG]]
|
|
; CHECK-NEXT: {{ $}}
|
|
; CHECK-NEXT: bb.1.loop (inlineasm-br-indirect-target):
|
|
; CHECK-NEXT: successors: %bb.2(0x40000000), %bb.1(0x40000000)
|
|
; CHECK-NEXT: {{ $}}
|
|
; CHECK-NEXT: [[COPY3:%[0-9]+]]:gr64 = COPY killed [[COPY2]]
|
|
; CHECK-NEXT: TEST8ri [[COPY1]], 1, implicit-def $eflags
|
|
; CHECK-NEXT: [[COPY2:%[0-9]+]]:gr64 = IMPLICIT_DEF
|
|
; CHECK-NEXT: JCC_1 %bb.1, 4, implicit killed $eflags
|
|
; CHECK-NEXT: JMP_1 %bb.2
|
|
; CHECK-NEXT: {{ $}}
|
|
; CHECK-NEXT: bb.2.loop.end:
|
|
; CHECK-NEXT: successors: %bb.3(0x80000000), %bb.1(0x00000000)
|
|
; CHECK-NEXT: {{ $}}
|
|
; CHECK-NEXT: [[XOR64ri32_:%[0-9]+]]:gr64 = XOR64ri32 killed [[COPY3]], 9, implicit-def dead $eflags
|
|
; CHECK-NEXT: [[COPY2:%[0-9]+]]:gr64 = COPY [[XOR64ri32_]]
|
|
; CHECK-NEXT: INLINEASM_BR &"", sideeffect attdialect, imm, %bb.1, clobber, implicit-def dead early-clobber $df, clobber, implicit-def early-clobber $fpsw, clobber, implicit-def dead early-clobber $eflags
|
|
; CHECK-NEXT: JMP_1 %bb.3
|
|
; CHECK-NEXT: {{ $}}
|
|
; CHECK-NEXT: bb.3.exit:
|
|
; CHECK-NEXT: $rax = COPY killed [[XOR64ri32_]]
|
|
; CHECK-NEXT: RET 0, killed $rax
|
|
bb.0.entry:
|
|
successors: %bb.1(0x80000000)
|
|
liveins: $edi
|
|
|
|
%2:gr32 = COPY killed $edi
|
|
%3:gr8 = COPY killed %2.sub_8bit
|
|
%5:gr32 = MOV32r0 implicit-def dead $eflags
|
|
%4:gr64 = SUBREG_TO_REG killed %5, %subreg.sub_32bit
|
|
|
|
bb.1.loop (inlineasm-br-indirect-target):
|
|
successors: %bb.2(0x40000000), %bb.1(0x40000000)
|
|
|
|
%0:gr64 = PHI %4, %bb.0, undef %6:gr64, %bb.1, %1, %bb.2
|
|
TEST8ri %3, 1, implicit-def $eflags
|
|
JCC_1 %bb.1, 4, implicit killed $eflags
|
|
JMP_1 %bb.2
|
|
|
|
bb.2.loop.end:
|
|
successors: %bb.3(0x80000000), %bb.1(0x00000000)
|
|
|
|
%1:gr64 = XOR64ri32 killed %0, 9, implicit-def dead $eflags
|
|
INLINEASM_BR &"", sideeffect attdialect, imm, %bb.1, clobber, implicit-def dead early-clobber $df, clobber, implicit-def early-clobber $fpsw, clobber, implicit-def dead early-clobber $eflags
|
|
JMP_1 %bb.3
|
|
|
|
bb.3.exit:
|
|
$rax = COPY killed %1
|
|
RET 0, killed $rax
|
|
...
|