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
131 lines
4.0 KiB
LLVM
131 lines
4.0 KiB
LLVM
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
|
|
; RUN: llc < %s -mtriple=x86_64-unknown | FileCheck %s --check-prefix=X64
|
|
; RUN: llc < %s -mtriple=i386-unknown | FileCheck %s --check-prefix=X86
|
|
|
|
define i128 @foo(i128 %t, i128 %u) {
|
|
; X64-LABEL: foo:
|
|
; X64: # %bb.0:
|
|
; X64-NEXT: movq %rdx, %r8
|
|
; X64-NEXT: movq %rdi, %rax
|
|
; X64-NEXT: imulq %rdi, %rcx
|
|
; X64-NEXT: mulq %rdx
|
|
; X64-NEXT: addq %rcx, %rdx
|
|
; X64-NEXT: imulq %rsi, %r8
|
|
; X64-NEXT: addq %r8, %rdx
|
|
; X64-NEXT: retq
|
|
;
|
|
; X86-LABEL: foo:
|
|
; X86: # %bb.0:
|
|
; X86-NEXT: pushl %ebp
|
|
; X86-NEXT: .cfi_def_cfa_offset 8
|
|
; X86-NEXT: .cfi_offset %ebp, -8
|
|
; X86-NEXT: movl %esp, %ebp
|
|
; X86-NEXT: .cfi_def_cfa_register %ebp
|
|
; X86-NEXT: pushl %ebx
|
|
; X86-NEXT: pushl %edi
|
|
; X86-NEXT: pushl %esi
|
|
; X86-NEXT: andl $-16, %esp
|
|
; X86-NEXT: subl $16, %esp
|
|
; X86-NEXT: .cfi_offset %esi, -20
|
|
; X86-NEXT: .cfi_offset %edi, -16
|
|
; X86-NEXT: .cfi_offset %ebx, -12
|
|
; X86-NEXT: movl 32(%ebp), %ecx
|
|
; X86-NEXT: movl 40(%ebp), %edi
|
|
; X86-NEXT: movl 44(%ebp), %esi
|
|
; X86-NEXT: imull %ecx, %esi
|
|
; X86-NEXT: movl %edi, %eax
|
|
; X86-NEXT: mull %ecx
|
|
; X86-NEXT: movl %eax, (%esp) # 4-byte Spill
|
|
; X86-NEXT: movl %edx, %ebx
|
|
; X86-NEXT: addl %esi, %ebx
|
|
; X86-NEXT: movl 36(%ebp), %eax
|
|
; X86-NEXT: imull %edi, %eax
|
|
; X86-NEXT: addl %eax, %ebx
|
|
; X86-NEXT: movl 48(%ebp), %eax
|
|
; X86-NEXT: movl %eax, %ecx
|
|
; X86-NEXT: imull 28(%ebp), %ecx
|
|
; X86-NEXT: movl 24(%ebp), %edi
|
|
; X86-NEXT: mull %edi
|
|
; X86-NEXT: addl %ecx, %edx
|
|
; X86-NEXT: movl 52(%ebp), %esi
|
|
; X86-NEXT: imull %edi, %esi
|
|
; X86-NEXT: addl %edx, %esi
|
|
; X86-NEXT: addl (%esp), %eax # 4-byte Folded Reload
|
|
; X86-NEXT: movl %eax, (%esp) # 4-byte Spill
|
|
; X86-NEXT: adcl %ebx, %esi
|
|
; X86-NEXT: movl %edi, %eax
|
|
; X86-NEXT: movl 40(%ebp), %ecx
|
|
; X86-NEXT: mull %ecx
|
|
; X86-NEXT: movl %edx, %ebx
|
|
; X86-NEXT: movl %eax, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
|
|
; X86-NEXT: movl 28(%ebp), %eax
|
|
; X86-NEXT: mull %ecx
|
|
; X86-NEXT: movl %edx, %edi
|
|
; X86-NEXT: movl %eax, %ecx
|
|
; X86-NEXT: addl %ebx, %ecx
|
|
; X86-NEXT: adcl $0, %edi
|
|
; X86-NEXT: movl 24(%ebp), %eax
|
|
; X86-NEXT: mull 44(%ebp)
|
|
; X86-NEXT: movl %edx, %ebx
|
|
; X86-NEXT: addl %ecx, %eax
|
|
; X86-NEXT: movl %eax, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
|
|
; X86-NEXT: adcl %edi, %ebx
|
|
; X86-NEXT: setb %cl
|
|
; X86-NEXT: movl 28(%ebp), %eax
|
|
; X86-NEXT: mull 44(%ebp)
|
|
; X86-NEXT: addl %ebx, %eax
|
|
; X86-NEXT: movzbl %cl, %ecx
|
|
; X86-NEXT: adcl %ecx, %edx
|
|
; X86-NEXT: addl (%esp), %eax # 4-byte Folded Reload
|
|
; X86-NEXT: adcl %esi, %edx
|
|
; X86-NEXT: movl 8(%ebp), %ecx
|
|
; X86-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %esi # 4-byte Reload
|
|
; X86-NEXT: movl %esi, 4(%ecx)
|
|
; X86-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %esi # 4-byte Reload
|
|
; X86-NEXT: movl %esi, (%ecx)
|
|
; X86-NEXT: movl %eax, 8(%ecx)
|
|
; X86-NEXT: movl %edx, 12(%ecx)
|
|
; X86-NEXT: movl %ecx, %eax
|
|
; X86-NEXT: leal -12(%ebp), %esp
|
|
; X86-NEXT: popl %esi
|
|
; X86-NEXT: popl %edi
|
|
; X86-NEXT: popl %ebx
|
|
; X86-NEXT: popl %ebp
|
|
; X86-NEXT: .cfi_def_cfa %esp, 4
|
|
; X86-NEXT: retl $4
|
|
%k = mul i128 %t, %u
|
|
ret i128 %k
|
|
}
|
|
|
|
@aaa = external dso_local global i128
|
|
@bbb = external dso_local global i128
|
|
|
|
define void @PR13897() nounwind {
|
|
; X64-LABEL: PR13897:
|
|
; X64: # %bb.0: # %"0x0"
|
|
; X64-NEXT: movq bbb(%rip), %rax
|
|
; X64-NEXT: movl %eax, %ecx
|
|
; X64-NEXT: shlq $32, %rax
|
|
; X64-NEXT: orq %rcx, %rax
|
|
; X64-NEXT: movq %rax, aaa+8(%rip)
|
|
; X64-NEXT: movq %rax, aaa(%rip)
|
|
; X64-NEXT: retq
|
|
;
|
|
; X86-LABEL: PR13897:
|
|
; X86: # %bb.0: # %"0x0"
|
|
; X86-NEXT: movl bbb, %eax
|
|
; X86-NEXT: movl %eax, aaa+12
|
|
; X86-NEXT: movl %eax, aaa+8
|
|
; X86-NEXT: movl %eax, aaa+4
|
|
; X86-NEXT: movl %eax, aaa
|
|
; X86-NEXT: retl
|
|
"0x0":
|
|
%0 = load i128, ptr @bbb
|
|
%1 = and i128 %0, 4294967295
|
|
%2 = shl i128 %0, 96
|
|
%3 = mul i128 %1, 18446744078004518913
|
|
%4 = add i128 %3, %2
|
|
store i128 %4, ptr @aaa
|
|
ret void
|
|
}
|