brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.5 KiB · 2b9891d Raw
36 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 22; RUN: opt -S --passes=slp-vectorizer -slp-threshold=-50 -mtriple=riscv64-unknown-linux-gnu -mattr=+v < %s| FileCheck %s3 4%class.A = type { i32, i32 }5 6define void @test() {7; CHECK-LABEL: define void @test8; CHECK-SAME: () #[[ATTR0:[0-9]+]] {9; CHECK-NEXT:  entry:10; CHECK-NEXT:    [[SUB4_I_I65_US:%.*]] = or i64 0, 111; CHECK-NEXT:    br label [[BODY:%.*]]12; CHECK:       body:13; CHECK-NEXT:    [[TMP0:%.*]] = call <2 x i32> @llvm.masked.gather.v2i32.v2p0(<2 x ptr> align 4 getelementptr ([[CLASS_A:%.*]], <2 x ptr> zeroinitializer, <2 x i64> <i64 0, i64 1>), <2 x i1> splat (i1 true), <2 x i32> poison)14; CHECK-NEXT:    [[TMP1:%.*]] = extractelement <2 x i32> [[TMP0]], i32 015; CHECK-NEXT:    [[TMP2:%.*]] = extractelement <2 x i32> [[TMP0]], i32 116; CHECK-NEXT:    [[CMP_I_I_I_I67_US:%.*]] = icmp slt i32 [[TMP1]], [[TMP2]]17; CHECK-NEXT:    [[SPEC_SELECT_I_I68_US:%.*]] = select i1 false, i64 [[SUB4_I_I65_US]], i64 018; CHECK-NEXT:    br label [[BODY]]19;20entry:21  br label %body22 23body:24  %add.i.i62.us = shl i64 0, 025  %mul.i.i63.us = or i64 %add.i.i62.us, 026  %add.ptr.i.i.i64.us = getelementptr %class.A, ptr null, i64 %mul.i.i63.us27  %sub4.i.i65.us = or i64 0, 128  %add.ptr.i63.i.i66.us = getelementptr %class.A, ptr null, i64 %sub4.i.i65.us29  %0 = load i32, ptr %add.ptr.i.i.i64.us, align 430  %1 = load i32, ptr %add.ptr.i63.i.i66.us, align 431  %cmp.i.i.i.i67.us = icmp slt i32 %0, %132  %spec.select.i.i68.us = select i1 false, i64 %sub4.i.i65.us, i64 033  br label %body34}35 36