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
45 lines
1.7 KiB
LLVM
45 lines
1.7 KiB
LLVM
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
|
|
;
|
|
; PR30298: Check if the target doesn't have SSE2, compiler will not crash
|
|
; or generate incorrect code because of vector mul width shrinking optimization.
|
|
;
|
|
; RUN: llc -mtriple=i386-pc-linux-gnu -mattr=+sse < %s | FileCheck %s
|
|
|
|
@c = external dso_local global ptr, align 8
|
|
|
|
define void @mul_2xi8(ptr nocapture readonly %a, ptr nocapture readonly %b, i64 %index) nounwind {
|
|
; CHECK-LABEL: mul_2xi8:
|
|
; CHECK: # %bb.0: # %entry
|
|
; CHECK-NEXT: pushl %ebx
|
|
; CHECK-NEXT: pushl %edi
|
|
; CHECK-NEXT: pushl %esi
|
|
; CHECK-NEXT: movl {{[0-9]+}}(%esp), %eax
|
|
; CHECK-NEXT: movl {{[0-9]+}}(%esp), %ecx
|
|
; CHECK-NEXT: movl {{[0-9]+}}(%esp), %edx
|
|
; CHECK-NEXT: movl c, %esi
|
|
; CHECK-NEXT: movzbl 1(%edx,%ecx), %edi
|
|
; CHECK-NEXT: movzbl (%edx,%ecx), %edx
|
|
; CHECK-NEXT: movzbl 1(%eax,%ecx), %ebx
|
|
; CHECK-NEXT: imull %edi, %ebx
|
|
; CHECK-NEXT: movzbl (%eax,%ecx), %eax
|
|
; CHECK-NEXT: imull %edx, %eax
|
|
; CHECK-NEXT: movl %ebx, 4(%esi,%ecx,4)
|
|
; CHECK-NEXT: movl %eax, (%esi,%ecx,4)
|
|
; CHECK-NEXT: popl %esi
|
|
; CHECK-NEXT: popl %edi
|
|
; CHECK-NEXT: popl %ebx
|
|
; CHECK-NEXT: retl
|
|
entry:
|
|
%pre = load ptr, ptr @c
|
|
%tmp6 = getelementptr inbounds i8, ptr %a, i64 %index
|
|
%wide.load = load <2 x i8>, ptr %tmp6, align 1
|
|
%tmp8 = zext <2 x i8> %wide.load to <2 x i32>
|
|
%tmp10 = getelementptr inbounds i8, ptr %b, i64 %index
|
|
%wide.load17 = load <2 x i8>, ptr %tmp10, align 1
|
|
%tmp12 = zext <2 x i8> %wide.load17 to <2 x i32>
|
|
%tmp13 = mul nuw nsw <2 x i32> %tmp12, %tmp8
|
|
%tmp14 = getelementptr inbounds i32, ptr %pre, i64 %index
|
|
store <2 x i32> %tmp13, ptr %tmp14, align 4
|
|
ret void
|
|
}
|