aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Bataev <a.bataev@outlook.com>2025-01-30 06:33:57 -0800
committerAlexey Bataev <a.bataev@outlook.com>2025-01-30 06:49:42 -0800
commitd1033d15cb6b87007d22d93bb8bd8d39fd984b29 (patch)
treece940112fb95a516679784bb68f003cfc975c686
parent2bde7a1b7c777ae0f0303af9634dd6e4a98cab00 (diff)
downloadllvm-d1033d15cb6b87007d22d93bb8bd8d39fd984b29.zip
llvm-d1033d15cb6b87007d22d93bb8bd8d39fd984b29.tar.gz
llvm-d1033d15cb6b87007d22d93bb8bd8d39fd984b29.tar.bz2
[SLP][NFC]Autogenerate checks and remove undef, NFC
-rw-r--r--llvm/test/Transforms/SLPVectorizer/NVPTX/vectorizable-intrinsic.ll19
1 files changed, 12 insertions, 7 deletions
diff --git a/llvm/test/Transforms/SLPVectorizer/NVPTX/vectorizable-intrinsic.ll b/llvm/test/Transforms/SLPVectorizer/NVPTX/vectorizable-intrinsic.ll
index e6ad2ad..114bf58 100644
--- a/llvm/test/Transforms/SLPVectorizer/NVPTX/vectorizable-intrinsic.ll
+++ b/llvm/test/Transforms/SLPVectorizer/NVPTX/vectorizable-intrinsic.ll
@@ -1,3 +1,4 @@
+; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 5
; RUN: opt < %s -passes=slp-vectorizer -o - -S -slp-threshold=-1000 | FileCheck %s
target datalayout = "e-p:32:32-i64:64-v16:16-v32:32-n16:32:64"
@@ -6,14 +7,16 @@ target triple = "nvptx--nvidiacl"
; Test that CTLZ can be vectorized currently even though the second argument is a scalar
define <2 x i8> @cltz_test(<2 x i8> %x) #0 {
-; CHECK-LABEL: @cltz_test(
-; CHECK: [[VEC:%.*]] = call <2 x i8> @llvm.ctlz.v2i8(<2 x i8> %{{.*}}, i1 false)
-; CHECK-NEXT: ret <2 x i8> [[VEC]]
+; CHECK-LABEL: define <2 x i8> @cltz_test(
+; CHECK-SAME: <2 x i8> [[X:%.*]]) #[[ATTR0:[0-9]+]] {
+; CHECK-NEXT: [[ENTRY:.*:]]
+; CHECK-NEXT: [[VEC:%.*]] = call <2 x i8> @llvm.ctlz.v2i8(<2 x i8> [[X]], i1 false)
+; CHECK-NEXT: ret <2 x i8> [[VEC]]
;
entry:
%0 = extractelement <2 x i8> %x, i32 0
%call.i = call i8 @llvm.ctlz.i8(i8 %0, i1 false)
- %vecinit = insertelement <2 x i8> undef, i8 %call.i, i32 0
+ %vecinit = insertelement <2 x i8> zeroinitializer, i8 %call.i, i32 0
%1 = extractelement <2 x i8> %x, i32 1
%call.i4 = call i8 @llvm.ctlz.i8(i8 %1, i1 false)
%vecinit2 = insertelement <2 x i8> %vecinit, i8 %call.i4, i32 1
@@ -22,9 +25,11 @@ entry:
define <2 x i8> @cltz_test_poison(<2 x i8> %x) #0 {
-; CHECK-LABEL: @cltz_test_poison(
-; CHECK: [[VEC:%.*]] = call <2 x i8> @llvm.ctlz.v2i8(<2 x i8> %{{.*}}, i1 false)
-; CHECK-NEXT: ret <2 x i8> [[VEC]]
+; CHECK-LABEL: define <2 x i8> @cltz_test_poison(
+; CHECK-SAME: <2 x i8> [[X:%.*]]) #[[ATTR0]] {
+; CHECK-NEXT: [[ENTRY:.*:]]
+; CHECK-NEXT: [[VEC:%.*]] = call <2 x i8> @llvm.ctlz.v2i8(<2 x i8> [[X]], i1 false)
+; CHECK-NEXT: ret <2 x i8> [[VEC]]
;
entry:
%0 = extractelement <2 x i8> %x, i32 0