brintos

brintos / llvm-project-archived public Read only

0
0
Text · 3.8 KiB · 9bef279 Raw
87 lines · plain
1; Test that selection of Vector Load Element instructions work in the presence of prefetches.2;3; RUN: llc < %s -mtriple=s390x-linux-gnu -mcpu=z13 | FileCheck %s4 5; CHECK-LABEL: .LBB0_1:6; CHECK-NOT: l %r7; CHECK-NOT: vlvgf8; CHECK-DAG: pfd9; CHECK-DAG: vlef10 11%type0 = type { i32, [400 x i8], i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }12@Mem = external global [150 x %type0], align 413 14define void @fun() local_unnamed_addr #0 {15entry:16  br label %vector.body17 18vector.body:                                      ; preds = %vector.body, %entry19  %index = phi i64 [ 0, %entry ], [ %index.next.3, %vector.body ]20  %vec.phi = phi <4 x i32> [ zeroinitializer, %entry ], [ %57, %vector.body ]21  %0 = or disjoint i64 %index, 222  %1 = or disjoint i64 %index, 323  %2 = getelementptr inbounds [150 x %type0], ptr @Mem, i64 0, i64 0, i32 324  %3 = getelementptr inbounds [150 x %type0], ptr @Mem, i64 0, i64 %0, i32 325  %4 = getelementptr inbounds [150 x %type0], ptr @Mem, i64 0, i64 %1, i32 326  %5 = load i32, ptr null, align 427  %6 = load i32, ptr %3, align 428  %7 = load i32, ptr %4, align 429  %8 = insertelement <4 x i32> undef, i32 %5, i32 030  %9 = insertelement <4 x i32> %8, i32 0, i32 131  %10 = insertelement <4 x i32> %9, i32 %6, i32 232  %11 = insertelement <4 x i32> %10, i32 %7, i32 333  %12 = add nsw <4 x i32> %11, %vec.phi34  %13 = or disjoint i64 %index, 735  %14 = getelementptr inbounds [150 x %type0], ptr @Mem, i64 0, i64 undef, i32 336  %15 = getelementptr inbounds [150 x %type0], ptr @Mem, i64 0, i64 0, i32 337  %16 = getelementptr inbounds [150 x %type0], ptr @Mem, i64 0, i64 %13, i32 338  %17 = load i32, ptr %14, align 439  %18 = load i32, ptr undef, align 440  %19 = load i32, ptr %15, align 441  %20 = load i32, ptr %16, align 442  %21 = insertelement <4 x i32> undef, i32 %17, i32 043  %22 = insertelement <4 x i32> %21, i32 %18, i32 144  %23 = insertelement <4 x i32> %22, i32 %19, i32 245  %24 = insertelement <4 x i32> %23, i32 %20, i32 346  %25 = add nsw <4 x i32> %24, %1247  %26 = or disjoint i64 %index, 948  %27 = or disjoint i64 %index, 1049  %28 = or disjoint i64 %index, 1150  %29 = getelementptr inbounds [150 x %type0], ptr @Mem, i64 0, i64 undef, i32 351  %30 = getelementptr inbounds [150 x %type0], ptr @Mem, i64 0, i64 %26, i32 352  %31 = getelementptr inbounds [150 x %type0], ptr @Mem, i64 0, i64 %27, i32 353  %32 = getelementptr inbounds [150 x %type0], ptr @Mem, i64 0, i64 %28, i32 354  %33 = load i32, ptr %29, align 455  %34 = load i32, ptr %30, align 456  %35 = load i32, ptr %31, align 457  %36 = load i32, ptr %32, align 458  %37 = insertelement <4 x i32> undef, i32 %33, i32 059  %38 = insertelement <4 x i32> %37, i32 %34, i32 160  %39 = insertelement <4 x i32> %38, i32 %35, i32 261  %40 = insertelement <4 x i32> %39, i32 %36, i32 362  %41 = add nsw <4 x i32> %40, %2563  %42 = or disjoint i64 %index, 1364  %43 = or disjoint i64 %index, 1465  %44 = or disjoint i64 %index, 1566  %45 = getelementptr inbounds [150 x %type0], ptr @Mem, i64 0, i64 undef, i32 367  %46 = getelementptr inbounds [150 x %type0], ptr @Mem, i64 0, i64 %42, i32 368  %47 = getelementptr inbounds [150 x %type0], ptr @Mem, i64 0, i64 %43, i32 369  %48 = getelementptr inbounds [150 x %type0], ptr @Mem, i64 0, i64 %44, i32 370  %49 = load i32, ptr %45, align 471  %50 = load i32, ptr %46, align 472  %51 = load i32, ptr %47, align 473  %52 = load i32, ptr %48, align 474  %53 = insertelement <4 x i32> undef, i32 %49, i32 075  %54 = insertelement <4 x i32> %53, i32 %50, i32 176  %55 = insertelement <4 x i32> %54, i32 %51, i32 277  %56 = insertelement <4 x i32> %55, i32 %52, i32 378  %57 = add nsw <4 x i32> %56, %4179  %index.next.3 = add i64 %index, 1680  br i1 false, label %middle.block.unr-lcssa, label %vector.body81 82middle.block.unr-lcssa:                           ; preds = %vector.body83  %rdx.shuf = shufflevector <4 x i32> %57, <4 x i32> undef, <4 x i32> <i32 2, i32 3, i32 undef, i32 undef>84  unreachable85}86 87