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
37 lines
1.4 KiB
LLVM
37 lines
1.4 KiB
LLVM
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
|
|
; RUN: opt < %s -passes=instcombine -S | FileCheck %s
|
|
|
|
@wyhash64_x = global i64 0, align 8
|
|
|
|
define i64 @_Z8wyhash64v() {
|
|
; CHECK-LABEL: @_Z8wyhash64v(
|
|
; CHECK-NEXT: [[TMP1:%.*]] = load i64, ptr @wyhash64_x, align 8
|
|
; CHECK-NEXT: [[TMP2:%.*]] = add i64 [[TMP1]], 6971258582664805397
|
|
; CHECK-NEXT: store i64 [[TMP2]], ptr @wyhash64_x, align 8
|
|
; CHECK-NEXT: [[TMP3:%.*]] = zext i64 [[TMP2]] to i128
|
|
; CHECK-NEXT: [[TMP4:%.*]] = mul nuw i128 [[TMP3]], 11795372955171141389
|
|
; CHECK-NEXT: [[TMP5:%.*]] = lshr i128 [[TMP4]], 64
|
|
; CHECK-NEXT: [[DOTMASKED:%.*]] = and i128 [[TMP4]], 18446744073709551615
|
|
; CHECK-NEXT: [[TMP6:%.*]] = xor i128 [[TMP5]], [[DOTMASKED]]
|
|
; CHECK-NEXT: [[TMP7:%.*]] = mul nuw nsw i128 [[TMP6]], 1946526487930394057
|
|
; CHECK-NEXT: [[TMP8:%.*]] = lshr i128 [[TMP7]], 64
|
|
; CHECK-NEXT: [[TMP9:%.*]] = xor i128 [[TMP8]], [[TMP7]]
|
|
; CHECK-NEXT: [[TMP10:%.*]] = trunc i128 [[TMP9]] to i64
|
|
; CHECK-NEXT: ret i64 [[TMP10]]
|
|
;
|
|
%1 = load i64, ptr @wyhash64_x, align 8
|
|
%2 = add i64 %1, 6971258582664805397
|
|
store i64 %2, ptr @wyhash64_x, align 8
|
|
%3 = zext i64 %2 to i128
|
|
%4 = mul i128 %3, 11795372955171141389
|
|
%5 = lshr i128 %4, 64
|
|
%6 = xor i128 %5, %4
|
|
%7 = trunc i128 %6 to i64
|
|
%8 = zext i64 %7 to i128
|
|
%9 = mul i128 %8, 1946526487930394057
|
|
%10 = lshr i128 %9, 64
|
|
%11 = xor i128 %10, %9
|
|
%12 = trunc i128 %11 to i64
|
|
ret i64 %12
|
|
}
|