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
59 lines
1.7 KiB
LLVM
59 lines
1.7 KiB
LLVM
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
|
|
; RUN: llc < %s -mtriple=thumbv6-unknown-linux-gnu | FileCheck %s
|
|
|
|
%umul.ty = type { i32, i1 }
|
|
|
|
define i32 @test1(i32 %a, i1 %x) nounwind {
|
|
; CHECK-LABEL: test1:
|
|
; CHECK: @ %bb.0:
|
|
; CHECK-NEXT: push {r4, r5, r7, lr}
|
|
; CHECK-NEXT: mov r5, r1
|
|
; CHECK-NEXT: movs r2, #37
|
|
; CHECK-NEXT: movs r4, #0
|
|
; CHECK-NEXT: mov r1, r4
|
|
; CHECK-NEXT: mov r3, r4
|
|
; CHECK-NEXT: bl __muldi3
|
|
; CHECK-NEXT: lsls r1, r5, #31
|
|
; CHECK-NEXT: beq .LBB0_2
|
|
; CHECK-NEXT: @ %bb.1:
|
|
; CHECK-NEXT: mvns r0, r4
|
|
; CHECK-NEXT: .LBB0_2:
|
|
; CHECK-NEXT: pop {r4, r5, r7, pc}
|
|
%tmp0 = tail call %umul.ty @llvm.umul.with.overflow.i32(i32 %a, i32 37)
|
|
%tmp1 = extractvalue %umul.ty %tmp0, 0
|
|
%tmp2 = select i1 %x, i32 -1, i32 %tmp1
|
|
ret i32 %tmp2
|
|
}
|
|
|
|
declare %umul.ty @llvm.umul.with.overflow.i32(i32, i32) nounwind readnone
|
|
|
|
define i32 @test2(ptr %m_degree) ssp {
|
|
; CHECK-LABEL: test2:
|
|
; CHECK: @ %bb.0:
|
|
; CHECK-NEXT: push {r4, lr}
|
|
; CHECK-NEXT: ldr r1, [r0]
|
|
; CHECK-NEXT: lsls r0, r1, #3
|
|
; CHECK-NEXT: lsrs r2, r0, #3
|
|
; CHECK-NEXT: subs r1, r1, r2
|
|
; CHECK-NEXT: subs r2, r1, #1
|
|
; CHECK-NEXT: sbcs r1, r2
|
|
; CHECK-NEXT: movs r4, #0
|
|
; CHECK-NEXT: cmp r1, #0
|
|
; CHECK-NEXT: beq .LBB1_2
|
|
; CHECK-NEXT: @ %bb.1:
|
|
; CHECK-NEXT: mvns r0, r4
|
|
; CHECK-NEXT: .LBB1_2:
|
|
; CHECK-NEXT: bl _Znam
|
|
; CHECK-NEXT: mov r0, r4
|
|
; CHECK-NEXT: pop {r4, pc}
|
|
%val = load i32, ptr %m_degree, align 4
|
|
%res = call %umul.ty @llvm.umul.with.overflow.i32(i32 %val, i32 8)
|
|
%ov = extractvalue %umul.ty %res, 1
|
|
%mul = extractvalue %umul.ty %res, 0
|
|
%sel = select i1 %ov, i32 -1, i32 %mul
|
|
%ret = call noalias ptr @_Znam(i32 %sel)
|
|
ret i32 0
|
|
}
|
|
|
|
declare noalias ptr @_Znam(i32)
|