brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.6 KiB · 482907d Raw
55 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 42; RUN: opt < %s -passes="default<O3>" -mcpu=skx -S | FileCheck %s3 4target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"5target triple = "x86_64-unknown-linux-gnu"6 7define void @foo(ptr noalias noundef %0, ptr noalias noundef %1) optsize {8; CHECK-LABEL: define void @foo(9; CHECK-SAME: ptr noalias noundef readonly captures(none) [[TMP0:%.*]], ptr noalias noundef writeonly captures(none) [[TMP1:%.*]]) local_unnamed_addr #[[ATTR0:[0-9]+]] {10; CHECK-NEXT:  vector.ph:11; CHECK-NEXT:    br label [[TMP4:%.*]]12; CHECK:       vector.body:13; CHECK-NEXT:    [[INDVARS_IV:%.*]] = phi i64 [ 0, [[TMP2:%.*]] ], [ [[INDVARS_IV_NEXT:%.*]], [[TMP4]] ]14; CHECK-NEXT:    [[TMP3:%.*]] = sub nuw nsw i64 255, [[INDVARS_IV]]15; CHECK-NEXT:    [[TMP7:%.*]] = getelementptr inbounds nuw i32, ptr [[TMP0]], i64 [[TMP3]]16; CHECK-NEXT:    [[GEP:%.*]] = getelementptr inbounds i8, ptr [[TMP7]], i64 -2817; CHECK-NEXT:    [[WIDE_MASKED_GATHER:%.*]] = load <8 x i32>, ptr [[GEP]], align 418; CHECK-NEXT:    [[TMP5:%.*]] = add nsw <8 x i32> [[WIDE_MASKED_GATHER]], splat (i32 5)19; CHECK-NEXT:    [[TMP6:%.*]] = shufflevector <8 x i32> [[TMP5]], <8 x i32> poison, <8 x i32> <i32 7, i32 6, i32 5, i32 4, i32 3, i32 2, i32 1, i32 0>20; CHECK-NEXT:    [[TMP10:%.*]] = getelementptr inbounds nuw i32, ptr [[TMP1]], i64 [[INDVARS_IV]]21; CHECK-NEXT:    store <8 x i32> [[TMP6]], ptr [[TMP10]], align 422; CHECK-NEXT:    [[INDVARS_IV_NEXT]] = add nuw i64 [[INDVARS_IV]], 823; CHECK-NEXT:    [[EXITCOND_NOT:%.*]] = icmp eq i64 [[INDVARS_IV_NEXT]], 25624; CHECK-NEXT:    br i1 [[EXITCOND_NOT]], label [[MIDDLE_BLOCK:%.*]], label [[TMP4]], !llvm.loop [[LOOP0:![0-9]+]]25; CHECK:       middle.block:26; CHECK-NEXT:    ret void27;28  br label %329 303:                                                ; preds = %7, %231  %4 = phi i32 [ 0, %2 ], [ %15, %7 ]32  %5 = icmp slt i32 %4, 25633  br i1 %5, label %7, label %634 356:                                                ; preds = %336  ret void37 387:                                                ; preds = %339  %8 = sub nsw i32 255, %440  %9 = zext nneg i32 %8 to i6441  %10 = getelementptr inbounds i32, ptr %0, i64 %942  %11 = load i32, ptr %10, align 443  %12 = add nsw i32 %11, 544  %13 = sext i32 %4 to i6445  %14 = getelementptr inbounds i32, ptr %1, i64 %1346  store i32 %12, ptr %14, align 447  %15 = add nsw i32 %4, 148  br label %349}50;.51; CHECK: [[LOOP0]] = distinct !{[[LOOP0]], [[META1:![0-9]+]], [[META2:![0-9]+]]}52; CHECK: [[META1]] = !{!"llvm.loop.isvectorized", i32 1}53; CHECK: [[META2]] = !{!"llvm.loop.unroll.runtime.disable"}54;.55