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
71 lines
1.5 KiB
LLVM
71 lines
1.5 KiB
LLVM
; RUN: llc < %s -mtriple=i686-unknown-unknown | FileCheck %s --check-prefix=X86
|
|
; RUN: llc < %s -mtriple=x86_64-unknown-unknown | FileCheck %s --check-prefix=X64
|
|
|
|
; On i686, this is expanded into a loop. On x86_64, this calls __udivti3.
|
|
define i65 @udiv65(i65 %a, i65 %b) nounwind {
|
|
; X86-LABEL: udiv65:
|
|
; X86-NOT: call
|
|
;
|
|
; X64-LABEL: udiv65:
|
|
; X64: # %bb.0:
|
|
; X64-NEXT: pushq %rax
|
|
; X64-NEXT: andl $1, %esi
|
|
; X64-NEXT: andl $1, %ecx
|
|
; X64-NEXT: callq __udivti3@PLT
|
|
; X64-NEXT: popq %rcx
|
|
; X64-NEXT: retq
|
|
%res = udiv i65 %a, %b
|
|
ret i65 %res
|
|
}
|
|
|
|
define i129 @udiv129(i129 %a, i129 %b) nounwind {
|
|
; X86-LABEL: udiv129:
|
|
; X86-NOT: call
|
|
;
|
|
; X64-LABEL: udiv129:
|
|
; X64-NOT: call
|
|
%res = udiv i129 %a, %b
|
|
ret i129 %res
|
|
}
|
|
|
|
define i129 @urem129(i129 %a, i129 %b) nounwind {
|
|
; X86-LABEL: urem129:
|
|
; X86-NOT: call
|
|
;
|
|
; X64-LABEL: urem129:
|
|
; X64-NOT: call
|
|
%res = urem i129 %a, %b
|
|
ret i129 %res
|
|
}
|
|
|
|
define i129 @sdiv129(i129 %a, i129 %b) nounwind {
|
|
; X86-LABEL: sdiv129:
|
|
; X86-NOT: call
|
|
;
|
|
; X64-LABEL: sdiv129:
|
|
; X64-NOT: call
|
|
%res = sdiv i129 %a, %b
|
|
ret i129 %res
|
|
}
|
|
|
|
define i129 @srem129(i129 %a, i129 %b) nounwind {
|
|
; X86-LABEL: srem129:
|
|
; X86-NOT: call
|
|
;
|
|
; X64-LABEL: srem129:
|
|
; X64-NOT: call
|
|
%res = srem i129 %a, %b
|
|
ret i129 %res
|
|
}
|
|
|
|
; Some higher sizes
|
|
define i257 @sdiv257(i257 %a, i257 %b) nounwind {
|
|
; X86-LABEL: sdiv257:
|
|
; X86-NOT: call
|
|
;
|
|
; X64-LABEL: sdiv257:
|
|
; X64-NOT: call
|
|
%res = sdiv i257 %a, %b
|
|
ret i257 %res
|
|
}
|