34 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_test_checks.py2; RUN: opt < %s -mtriple=x86_64-unknown -passes=slp-vectorizer -S -mcpu=x86-64 | FileCheck %s3; RUN: opt < %s -mtriple=x86_64-unknown -passes=slp-vectorizer -S -mcpu=x86-64-v2 | FileCheck %s4; RUN: opt < %s -mtriple=x86_64-unknown -passes=slp-vectorizer -S -mcpu=x86-64-v3 | FileCheck %s5; RUN: opt < %s -mtriple=x86_64-unknown -passes=slp-vectorizer -S -mcpu=x86-64-v4 | FileCheck %s6 7define void @PR62969(ptr dereferenceable(16) %out, ptr dereferenceable(16) %in) {8; CHECK-LABEL: @PR62969(9; CHECK-NEXT: [[IN0:%.*]] = getelementptr inbounds [2 x i64], ptr [[IN:%.*]], i64 0, i64 010; CHECK-NEXT: [[OUT0:%.*]] = getelementptr inbounds [2 x i64], ptr [[OUT:%.*]], i64 0, i64 011; CHECK-NEXT: [[TMP1:%.*]] = load <2 x i64>, ptr [[IN0]], align 812; CHECK-NEXT: [[TMP2:%.*]] = and <2 x i64> [[TMP1]], splat (i64 4294967295)13; CHECK-NEXT: [[TMP3:%.*]] = lshr <2 x i64> [[TMP1]], splat (i64 32)14; CHECK-NEXT: [[TMP4:%.*]] = mul <2 x i64> [[TMP2]], [[TMP3]]15; CHECK-NEXT: store <2 x i64> [[TMP4]], ptr [[OUT0]], align 816; CHECK-NEXT: ret void17;18 %in0 = getelementptr inbounds [2 x i64], ptr %in, i64 0, i64 019 %in1 = getelementptr inbounds [2 x i64], ptr %in, i64 0, i64 120 %x = load i64, ptr %in0, align 821 %y = load i64, ptr %in1, align 822 %xl = and i64 %x, 429496729523 %yl = and i64 %y, 429496729524 %xh = lshr i64 %x, 3225 %yh = lshr i64 %y, 3226 %m0 = mul i64 %xl, %xh27 %m1 = mul i64 %yl, %yh28 %out0 = getelementptr inbounds [2 x i64], ptr %out, i64 0, i64 029 %out1 = getelementptr inbounds [2 x i64], ptr %out, i64 0, i64 130 store i64 %m0, ptr %out0, align 831 store i64 %m1, ptr %out1, align 832 ret void33}34