From b723aa2a5ab26a58344ce4a9207cb54830151bcd Mon Sep 17 00:00:00 2001 From: Nashe Mncube Date: Tue, 23 Mar 2021 13:26:37 +0000 Subject: [PATCH] [InstCombine]Generalise regression tests for sve The tests, test/Transforms/InstCombine/AArch64/sve-*, have been shown to not be AArch64 specific. These tests have been renamed and moved to reflect this. Differential Revision: https://reviews.llvm.org/D99253 --- .../sve-bitcast-inseltpoison.ll => scalable-bitcast-inseltpoison.ll} | 2 +- .../InstCombine/{AArch64/sve-bitcast.ll => scalable-bitcast.ll} | 2 +- .../{AArch64/sve-cast-of-alloc.ll => scalable-cast-of-alloc.ll} | 2 +- .../{AArch64/sve-const-fp-splat.ll => scalable-const-fp-splat.ll} | 2 +- .../Transforms/InstCombine/{AArch64/sve-trunc.ll => scalable-trunc.ll} | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) rename llvm/test/Transforms/InstCombine/{AArch64/sve-bitcast-inseltpoison.ll => scalable-bitcast-inseltpoison.ll} (85%) rename llvm/test/Transforms/InstCombine/{AArch64/sve-bitcast.ll => scalable-bitcast.ll} (85%) rename llvm/test/Transforms/InstCombine/{AArch64/sve-cast-of-alloc.ll => scalable-cast-of-alloc.ll} (98%) rename llvm/test/Transforms/InstCombine/{AArch64/sve-const-fp-splat.ll => scalable-const-fp-splat.ll} (91%) rename llvm/test/Transforms/InstCombine/{AArch64/sve-trunc.ll => scalable-trunc.ll} (94%) diff --git a/llvm/test/Transforms/InstCombine/AArch64/sve-bitcast-inseltpoison.ll b/llvm/test/Transforms/InstCombine/scalable-bitcast-inseltpoison.ll similarity index 85% rename from llvm/test/Transforms/InstCombine/AArch64/sve-bitcast-inseltpoison.ll rename to llvm/test/Transforms/InstCombine/scalable-bitcast-inseltpoison.ll index d0cc892..6c6f770 100644 --- a/llvm/test/Transforms/InstCombine/AArch64/sve-bitcast-inseltpoison.ll +++ b/llvm/test/Transforms/InstCombine/scalable-bitcast-inseltpoison.ll @@ -1,4 +1,4 @@ -; RUN: opt -instcombine -mtriple=aarch64-linux-gnu -mattr=+sve -S < %s | FileCheck %s +; RUN: opt -instcombine -S < %s | FileCheck %s ; We shouldn't fold bitcast(insert .., iX %val, i32 0) ; into bitcast(iX %val) for scalable vectors. diff --git a/llvm/test/Transforms/InstCombine/AArch64/sve-bitcast.ll b/llvm/test/Transforms/InstCombine/scalable-bitcast.ll similarity index 85% rename from llvm/test/Transforms/InstCombine/AArch64/sve-bitcast.ll rename to llvm/test/Transforms/InstCombine/scalable-bitcast.ll index 8049cad..d6980b9 100644 --- a/llvm/test/Transforms/InstCombine/AArch64/sve-bitcast.ll +++ b/llvm/test/Transforms/InstCombine/scalable-bitcast.ll @@ -1,4 +1,4 @@ -; RUN: opt -instcombine -mtriple=aarch64-linux-gnu -mattr=+sve -S < %s | FileCheck %s +; RUN: opt -instcombine -S < %s | FileCheck %s ; We shouldn't fold bitcast(insert .., iX %val, i32 0) ; into bitcast(iX %val) for scalable vectors. diff --git a/llvm/test/Transforms/InstCombine/AArch64/sve-cast-of-alloc.ll b/llvm/test/Transforms/InstCombine/scalable-cast-of-alloc.ll similarity index 98% rename from llvm/test/Transforms/InstCombine/AArch64/sve-cast-of-alloc.ll rename to llvm/test/Transforms/InstCombine/scalable-cast-of-alloc.ll index b593770..e264b69 100644 --- a/llvm/test/Transforms/InstCombine/AArch64/sve-cast-of-alloc.ll +++ b/llvm/test/Transforms/InstCombine/scalable-cast-of-alloc.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -instcombine -mtriple aarch64-linux-gnu -mattr=+sve -S < %s 2>%t | FileCheck %s +; RUN: opt -instcombine -S < %s 2>%t | FileCheck %s ; RUN: FileCheck --check-prefix=WARN --allow-empty %s <%t ; If this check fails please read test/CodeGen/AArch64/README for instructions on how to resolve it. diff --git a/llvm/test/Transforms/InstCombine/AArch64/sve-const-fp-splat.ll b/llvm/test/Transforms/InstCombine/scalable-const-fp-splat.ll similarity index 91% rename from llvm/test/Transforms/InstCombine/AArch64/sve-const-fp-splat.ll rename to llvm/test/Transforms/InstCombine/scalable-const-fp-splat.ll index a944be4..09156d61 100644 --- a/llvm/test/Transforms/InstCombine/AArch64/sve-const-fp-splat.ll +++ b/llvm/test/Transforms/InstCombine/scalable-const-fp-splat.ll @@ -1,4 +1,4 @@ -; RUN: opt -instcombine -mtriple aarch64-linux-gnu -mattr=+sve -S -o - < %s 2>%t | FileCheck %s +; RUN: opt -instcombine -S -o - < %s 2>%t | FileCheck %s ; RUN: FileCheck --check-prefix=WARN --allow-empty %s <%t ; If this check fails please read test/CodeGen/AArch64/README for instructions on how to resolve it. diff --git a/llvm/test/Transforms/InstCombine/AArch64/sve-trunc.ll b/llvm/test/Transforms/InstCombine/scalable-trunc.ll similarity index 94% rename from llvm/test/Transforms/InstCombine/AArch64/sve-trunc.ll rename to llvm/test/Transforms/InstCombine/scalable-trunc.ll index d18beb5..c64b299 100644 --- a/llvm/test/Transforms/InstCombine/AArch64/sve-trunc.ll +++ b/llvm/test/Transforms/InstCombine/scalable-trunc.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -mtriple aarch64-linux-gnu -mattr=+sve -instcombine -S < %s 2>%t | FileCheck %s +; RUN: opt -instcombine -S < %s 2>%t | FileCheck %s ; RUN: FileCheck --check-prefix=WARN --allow-empty %s <%t ; If this check fails please read test/CodeGen/AArch64/README for instructions on how to resolve it. -- 2.7.4