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
95 lines
2.7 KiB
LLVM
95 lines
2.7 KiB
LLVM
; RUN: llc -mtriple=aarch64-linux-gnu -mcpu=cortex-a57 -verify-machineinstrs < %s | FileCheck %s
|
|
|
|
; CHECK-LABEL: f_XX:
|
|
; CHECK: cbz x[[REG:[0-9]+]], [[BB:.LBB.*]]
|
|
; CHECK: [[BB]]:
|
|
; CHECK-NOT: mov x[[REG]], xzr
|
|
define i64 @f_XX(i64 %n, ptr nocapture readonly %P) {
|
|
entry:
|
|
%tobool = icmp eq i64 %n, 0
|
|
br i1 %tobool, label %if.end, label %if.then
|
|
|
|
if.then: ; preds = %entry
|
|
%0 = load i64, ptr %P
|
|
br label %if.end
|
|
|
|
if.end: ; preds = %entry, %if.then
|
|
%a.0 = phi i64 [ %0, %if.then ], [ 0, %entry ]
|
|
ret i64 %a.0
|
|
}
|
|
|
|
; CHECK-LABEL: f_WW:
|
|
; CHECK: cbz w[[REG:[0-9]+]], [[BB:.LBB.*]]
|
|
; CHECK: [[BB]]:
|
|
; CHECK-NOT: mov w[[REG]], wzr
|
|
define i32 @f_WW(i32 %n, ptr nocapture readonly %P) {
|
|
entry:
|
|
%tobool = icmp eq i32 %n, 0
|
|
br i1 %tobool, label %if.end, label %if.then
|
|
|
|
if.then: ; preds = %entry
|
|
%0 = load i32, ptr %P
|
|
br label %if.end
|
|
|
|
if.end: ; preds = %entry, %if.then
|
|
%a.0 = phi i32 [ %0, %if.then ], [ 0, %entry ]
|
|
ret i32 %a.0
|
|
}
|
|
|
|
; CHECK-LABEL: f_XW:
|
|
; CHECK: cbz x[[REG:[0-9]+]], [[BB:.LBB.*]]
|
|
; CHECK: [[BB]]:
|
|
; CHECK-NOT: mov w[[REG]], wzr
|
|
define i32 @f_XW(i64 %n, ptr nocapture readonly %P) {
|
|
entry:
|
|
%tobool = icmp eq i64 %n, 0
|
|
br i1 %tobool, label %if.end, label %if.then
|
|
|
|
if.then: ; preds = %entry
|
|
%0 = load i32, ptr %P
|
|
br label %if.end
|
|
|
|
if.end: ; preds = %entry, %if.then
|
|
%a.0 = phi i32 [ %0, %if.then ], [ 0, %entry ]
|
|
ret i32 %a.0
|
|
}
|
|
|
|
; CHECK-LABEL: f_WX:
|
|
; CHECK: cbz w[[REG:[0-9]+]], [[BB:.LBB.*]]
|
|
; CHECK: [[BB]]:
|
|
; CHECK: mov x[[REG]], xzr
|
|
; Do not remove the mov in this case because we do not know if the upper bits
|
|
; of the X register are zero.
|
|
define i64 @f_WX(i32 %n, ptr nocapture readonly %P) {
|
|
entry:
|
|
%tobool = icmp eq i32 %n, 0
|
|
br i1 %tobool, label %if.end, label %if.then
|
|
|
|
if.then: ; preds = %entry
|
|
%0 = load i64, ptr %P
|
|
br label %if.end
|
|
|
|
if.end: ; preds = %entry, %if.then
|
|
%a.0 = phi i64 [ %0, %if.then ], [ 0, %entry ]
|
|
ret i64 %a.0
|
|
}
|
|
|
|
; CHECK-LABEL: test_superreg:
|
|
; CHECK: cbz x[[REG:[0-9]+]], [[BB:.LBB.*]]
|
|
; CHECK: [[BB]]:
|
|
; CHECK: str x[[REG]], [x1]
|
|
; CHECK-NOT: mov w[[REG]], wzr
|
|
; Because we returned w0 but x0 was marked live-in to the block, we didn't
|
|
; remove the <kill> on the str leading to a verification failure.
|
|
define i32 @test_superreg(i64 %in, ptr %dest) {
|
|
%tst = icmp eq i64 %in, 0
|
|
br i1 %tst, label %true, label %false
|
|
|
|
false:
|
|
ret i32 42
|
|
|
|
true:
|
|
store volatile i64 %in, ptr %dest
|
|
ret i32 0
|
|
}
|