[llvm] b723aa2 - [InstCombine]Generalise regression tests for sve

Nashe Mncube via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 26 05:04:59 PDT 2021


Author: Nashe Mncube
Date: 2021-03-26T12:04:50Z
New Revision: b723aa2a5ab26a58344ce4a9207cb54830151bcd

URL: https://github.com/llvm/llvm-project/commit/b723aa2a5ab26a58344ce4a9207cb54830151bcd
DIFF: https://github.com/llvm/llvm-project/commit/b723aa2a5ab26a58344ce4a9207cb54830151bcd.diff

LOG: [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

Added: 
    llvm/test/Transforms/InstCombine/scalable-bitcast-inseltpoison.ll
    llvm/test/Transforms/InstCombine/scalable-bitcast.ll
    llvm/test/Transforms/InstCombine/scalable-cast-of-alloc.ll
    llvm/test/Transforms/InstCombine/scalable-const-fp-splat.ll
    llvm/test/Transforms/InstCombine/scalable-trunc.ll

Modified: 
    

Removed: 
    llvm/test/Transforms/InstCombine/AArch64/sve-bitcast-inseltpoison.ll
    llvm/test/Transforms/InstCombine/AArch64/sve-bitcast.ll
    llvm/test/Transforms/InstCombine/AArch64/sve-cast-of-alloc.ll
    llvm/test/Transforms/InstCombine/AArch64/sve-const-fp-splat.ll
    llvm/test/Transforms/InstCombine/AArch64/sve-trunc.ll


################################################################################
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 d0cc892b0e69..6c6f770add1d 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 <vscale x 1 x iX> .., 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 8049cad596b5..d6980b9d7406 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 <vscale x 1 x iX> .., 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 b593770c1ccb..e264b69698fd 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 a944be4ee70f..09156d614bb2 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 d18beb5dbdf4..c64b2997d273 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.


        


More information about the llvm-commits mailing list