37 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_test_checks.py2; RUN: opt < %s -passes=instcombine -S | FileCheck %s3 4@wyhash64_x = global i64 0, align 85 6define i64 @_Z8wyhash64v() {7; CHECK-LABEL: @_Z8wyhash64v(8; CHECK-NEXT: [[TMP1:%.*]] = load i64, ptr @wyhash64_x, align 89; CHECK-NEXT: [[TMP2:%.*]] = add i64 [[TMP1]], 697125858266480539710; CHECK-NEXT: store i64 [[TMP2]], ptr @wyhash64_x, align 811; CHECK-NEXT: [[TMP3:%.*]] = zext i64 [[TMP2]] to i12812; CHECK-NEXT: [[TMP4:%.*]] = mul nuw i128 [[TMP3]], 1179537295517114138913; CHECK-NEXT: [[TMP5:%.*]] = lshr i128 [[TMP4]], 6414; CHECK-NEXT: [[DOTMASKED:%.*]] = and i128 [[TMP4]], 1844674407370955161515; CHECK-NEXT: [[TMP6:%.*]] = xor i128 [[TMP5]], [[DOTMASKED]]16; CHECK-NEXT: [[TMP7:%.*]] = mul nuw nsw i128 [[TMP6]], 194652648793039405717; CHECK-NEXT: [[TMP8:%.*]] = lshr i128 [[TMP7]], 6418; CHECK-NEXT: [[TMP9:%.*]] = xor i128 [[TMP8]], [[TMP7]]19; CHECK-NEXT: [[TMP10:%.*]] = trunc i128 [[TMP9]] to i6420; CHECK-NEXT: ret i64 [[TMP10]]21;22 %1 = load i64, ptr @wyhash64_x, align 823 %2 = add i64 %1, 697125858266480539724 store i64 %2, ptr @wyhash64_x, align 825 %3 = zext i64 %2 to i12826 %4 = mul i128 %3, 1179537295517114138927 %5 = lshr i128 %4, 6428 %6 = xor i128 %5, %429 %7 = trunc i128 %6 to i6430 %8 = zext i64 %7 to i12831 %9 = mul i128 %8, 194652648793039405732 %10 = lshr i128 %9, 6433 %11 = xor i128 %10, %934 %12 = trunc i128 %11 to i6435 ret i64 %1236}37