brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.8 KiB · 16423e8 Raw
31 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 42; RUN: opt -S --passes=slp-vectorizer -mtriple=riscv64-unknown-linux-gnu -mattr=+v -slp-threshold=-11 < %s | FileCheck %s3 4define <4 x i32> @test(<2 x i64> %v, ptr %p) {5; CHECK-LABEL: define <4 x i32> @test(6; CHECK-SAME: <2 x i64> [[V:%.*]], ptr [[P:%.*]]) #[[ATTR0:[0-9]+]] {7; CHECK-NEXT:  entry:8; CHECK-NEXT:    [[TMP4:%.*]] = shufflevector <2 x i64> [[V]], <2 x i64> poison, <2 x i32> <i32 1, i32 0>9; CHECK-NEXT:    [[TMP0:%.*]] = insertelement <2 x ptr> poison, ptr [[P]], i32 010; CHECK-NEXT:    [[TMP1:%.*]] = shufflevector <2 x ptr> [[TMP0]], <2 x ptr> poison, <2 x i32> zeroinitializer11; CHECK-NEXT:    [[TMP2:%.*]] = getelementptr i16, <2 x ptr> [[TMP1]], <2 x i64> [[TMP4]]12; CHECK-NEXT:    [[TMP3:%.*]] = call <2 x i16> @llvm.masked.gather.v2i16.v2p0(<2 x ptr> align 2 [[TMP2]], <2 x i1> splat (i1 true), <2 x i16> poison)13; CHECK-NEXT:    [[TMP7:%.*]] = zext <2 x i16> [[TMP3]] to <2 x i32>14; CHECK-NEXT:    [[TMP6:%.*]] = shufflevector <2 x i32> [[TMP7]], <2 x i32> poison, <4 x i32> <i32 0, i32 1, i32 poison, i32 poison>15; CHECK-NEXT:    [[TMP5:%.*]] = shufflevector <4 x i32> zeroinitializer, <4 x i32> [[TMP6]], <4 x i32> <i32 4, i32 5, i32 2, i32 3>16; CHECK-NEXT:    ret <4 x i32> [[TMP5]]17;18entry:19  %0 = extractelement <2 x i64> %v, i32 120  %arrayidx127.2 = getelementptr i16, ptr %p, i64 %021  %1 = load i16, ptr %arrayidx127.2, align 222  %conv128.2 = zext i16 %1 to i3223  %2 = extractelement <2 x i64> %v, i32 024  %arrayidx127.3 = getelementptr i16, ptr %p, i64 %225  %3 = load i16, ptr %arrayidx127.3, align 226  %conv128.3 = zext i16 %3 to i3227  %4 = insertelement <4 x i32> zeroinitializer, i32 %conv128.2, i32 028  %5 = insertelement <4 x i32> %4, i32 %conv128.3, i32 129  ret <4 x i32> %530}31