[PATCH] D99253: [InstCombine]Generalise regression tests for sve

Nashe Mncube via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 24 04:01:28 PDT 2021


nasherm created this revision.
Herald added subscribers: kristof.beyls, tschuett.
nasherm requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D99253

Files:
  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
  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


Index: llvm/test/Transforms/InstCombine/scalable-trunc.ll
===================================================================
--- llvm/test/Transforms/InstCombine/scalable-trunc.ll
+++ 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.
Index: llvm/test/Transforms/InstCombine/scalable-const-fp-splat.ll
===================================================================
--- llvm/test/Transforms/InstCombine/scalable-const-fp-splat.ll
+++ 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.
Index: llvm/test/Transforms/InstCombine/scalable-cast-of-alloc.ll
===================================================================
--- llvm/test/Transforms/InstCombine/scalable-cast-of-alloc.ll
+++ 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.
Index: llvm/test/Transforms/InstCombine/scalable-bitcast.ll
===================================================================
--- llvm/test/Transforms/InstCombine/scalable-bitcast.ll
+++ 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.
Index: llvm/test/Transforms/InstCombine/scalable-bitcast-inseltpoison.ll
===================================================================
--- llvm/test/Transforms/InstCombine/scalable-bitcast-inseltpoison.ll
+++ 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.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D99253.332934.patch
Type: text/x-patch
Size: 2962 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210324/cf58293e/attachment.bin>


More information about the llvm-commits mailing list