From c0a42d4491c5e237e3774523479ff5c603e48bc9 Mon Sep 17 00:00:00 2001 From: Anton Afanasyev Date: Thu, 12 Aug 2021 14:40:27 +0300 Subject: [PATCH] [Test] Move test for PR50555 from InstCombine to AggressiveInstCombine --- .../test/Transforms/{InstCombine => AggressiveInstCombine}/pr50555.ll | 4 ++-- llvm/test/Transforms/SLPVectorizer/X86/pr50555.ll | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) rename llvm/test/Transforms/{InstCombine => AggressiveInstCombine}/pr50555.ll (92%) diff --git a/llvm/test/Transforms/InstCombine/pr50555.ll b/llvm/test/Transforms/AggressiveInstCombine/pr50555.ll similarity index 92% rename from llvm/test/Transforms/InstCombine/pr50555.ll rename to llvm/test/Transforms/AggressiveInstCombine/pr50555.ll index f779806..0bedd8f 100644 --- a/llvm/test/Transforms/InstCombine/pr50555.ll +++ b/llvm/test/Transforms/AggressiveInstCombine/pr50555.ll @@ -1,11 +1,11 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -instcombine -S | FileCheck %s +; RUN: opt < %s -aggressive-instcombine -S | FileCheck %s define void @trunc_one_add(i16* %a, i8 %b) { ; CHECK-LABEL: @trunc_one_add( ; CHECK-NEXT: [[ZEXT:%.*]] = zext i8 [[B:%.*]] to i32 ; CHECK-NEXT: [[SHR:%.*]] = lshr i32 [[ZEXT]], 1 -; CHECK-NEXT: [[ADD:%.*]] = add nuw nsw i32 [[SHR]], [[ZEXT]] +; CHECK-NEXT: [[ADD:%.*]] = add nsw i32 [[ZEXT]], [[SHR]] ; CHECK-NEXT: [[TRUNC:%.*]] = trunc i32 [[ADD]] to i16 ; CHECK-NEXT: store i16 [[TRUNC]], i16* [[A:%.*]], align 2 ; CHECK-NEXT: ret void diff --git a/llvm/test/Transforms/SLPVectorizer/X86/pr50555.ll b/llvm/test/Transforms/SLPVectorizer/X86/pr50555.ll index 7b9efd6..818ba64 100644 --- a/llvm/test/Transforms/SLPVectorizer/X86/pr50555.ll +++ b/llvm/test/Transforms/SLPVectorizer/X86/pr50555.ll @@ -1,6 +1,6 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -mtriple=x86_64-- -instcombine -slp-vectorizer -dce -S | FileCheck %s --check-prefixes=SSE -; RUN: opt < %s -mtriple=x86_64-- -mcpu=corei7-avx -instcombine -slp-vectorizer -dce -S | FileCheck %s --check-prefixes=AVX +; RUN: opt < %s -mtriple=x86_64-- -aggressive-instcombine -slp-vectorizer -dce -S | FileCheck %s --check-prefixes=SSE +; RUN: opt < %s -mtriple=x86_64-- -mcpu=corei7-avx -aggressive-instcombine -slp-vectorizer -dce -S | FileCheck %s --check-prefixes=AVX define void @trunc_through_one_add(i16* noalias %0, i8* noalias readonly %1) { ; SSE-LABEL: @trunc_through_one_add( -- 2.7.4