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
57 lines
1.8 KiB
LLVM
57 lines
1.8 KiB
LLVM
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5
|
|
; RUN: llc < %s -mtriple=powerpc-unknown-linux-gnu | FileCheck %s --check-prefix=LINUXASM
|
|
; RUN: llc < %s -mtriple=powerpc-ibm-aix-xcoff | FileCheck %s --check-prefix=AIXASM
|
|
|
|
define noundef i32 @add(i32 noundef %a, i32 noundef %b, ptr nocapture noundef writeonly %ovf) {
|
|
; LINUXASM-LABEL: add:
|
|
; LINUXASM: # %bb.0: # %entry
|
|
; LINUXASM-NEXT: li 6, 0
|
|
; LINUXASM-NEXT: addc 3, 3, 4
|
|
; LINUXASM-NEXT: addze 4, 6
|
|
; LINUXASM-NEXT: stw 4, 0(5)
|
|
; LINUXASM-NEXT: blr
|
|
|
|
; AIXASM-LABEL: .add:
|
|
; AIXASM: # %bb.0: # %entry
|
|
; AIXASM-NEXT: addc 3, 3, 4
|
|
; AIXASM-NEXT: li 4, 0
|
|
; AIXASM-NEXT: addze 4, 4
|
|
; AIXASM-NEXT: stw 4, 0(5)
|
|
; AIXASM-NEXT: blr
|
|
|
|
entry:
|
|
%0 = tail call { i32, i1 } @llvm.uadd.with.overflow.i32(i32 %a, i32 %b)
|
|
%1 = extractvalue { i32, i1 } %0, 1
|
|
%2 = extractvalue { i32, i1 } %0, 0
|
|
%3 = zext i1 %1 to i32
|
|
store i32 %3, ptr %ovf, align 8
|
|
ret i32 %2
|
|
}
|
|
|
|
declare { i32, i1 } @llvm.uadd.with.overflow.i32(i32, i32)
|
|
|
|
define noundef zeroext i1 @add_overflow(i32 noundef %a, i32 noundef %b, ptr nocapture noundef writeonly %ovf) {
|
|
; LINUXASM-LABEL: add_overflow:
|
|
; LINUXASM: # %bb.0: # %entry
|
|
; LINUXASM-NEXT: li 6, 0
|
|
; LINUXASM-NEXT: addc 4, 3, 4
|
|
; LINUXASM-NEXT: addze 3, 6
|
|
; LINUXASM-NEXT: stw 4, 0(5)
|
|
; LINUXASM-NEXT: blr
|
|
|
|
; AIXASM-LABEL: .add_overflow:
|
|
; AIXASM: # %bb.0: # %entry
|
|
; AIXASM-NEXT: addc 4, 3, 4
|
|
; AIXASM-NEXT: li 3, 0
|
|
; AIXASM-NEXT: addze 3, 3
|
|
; AIXASM-NEXT: stw 4, 0(5)
|
|
; AIXASM-NEXT: blr
|
|
|
|
entry:
|
|
%0 = tail call { i32, i1 } @llvm.uadd.with.overflow.i32(i32 %a, i32 %b)
|
|
%1 = extractvalue { i32, i1 } %0, 1
|
|
%2 = extractvalue { i32, i1 } %0, 0
|
|
store i32 %2, ptr %ovf, align 8
|
|
ret i1 %1
|
|
}
|