30 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 62; RUN: opt -passes=slp-vectorizer -S -slp-threshold=-100 -mtriple=arm64-apple-macosx15.0.0 < %s | FileCheck %s3 4define i1 @test(i32 %shr.i.i90, i32 %x) {5; CHECK-LABEL: define i1 @test(6; CHECK-SAME: i32 [[SHR_I_I90:%.*]], i32 [[X:%.*]]) {7; CHECK-NEXT: [[ENTRY:.*:]]8; CHECK-NEXT: [[TMP0:%.*]] = insertelement <2 x i32> poison, i32 [[X]], i32 09; CHECK-NEXT: [[TMP6:%.*]] = insertelement <2 x i32> [[TMP0]], i32 [[SHR_I_I90]], i32 110; CHECK-NEXT: [[TMP1:%.*]] = sub <2 x i32> [[TMP6]], <i32 2, i32 0>11; CHECK-NEXT: [[TMP2:%.*]] = call <2 x i32> @llvm.abs.v2i32(<2 x i32> [[TMP1]], i1 true)12; CHECK-NEXT: [[TMP3:%.*]] = zext <2 x i32> [[TMP2]] to <2 x i64>13; CHECK-NEXT: [[TMP4:%.*]] = icmp ugt <2 x i64> [[TMP3]], <i64 100, i64 300>14; CHECK-NEXT: [[TMP5:%.*]] = extractelement <2 x i1> [[TMP4]], i32 015; CHECK-NEXT: ret i1 [[TMP5]]16;17entry:18 %cond.i.i = tail call i32 @llvm.abs.i32(i32 %shr.i.i90, i1 true)19 %conv.i.i91 = zext i32 %cond.i.i to i6420 %sub32.i.i = sub i32 %x, 221 %cond41.i.i = tail call i32 @llvm.abs.i32(i32 %sub32.i.i, i1 true)22 %conv42.i.i = zext i32 %cond41.i.i to i6423 %cmp.not.i.2.i.i = icmp ugt i64 %conv.i.i91, 30024 %cmp.not.i.3.i.i = icmp ugt i64 %conv42.i.i, 10025 ret i1 %cmp.not.i.3.i.i26}27 28; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)29declare i32 @llvm.abs.i32(i32, i1 immarg) #030