From 00f5921609a5eabcac2ca1300243291fbdd7721d Mon Sep 17 00:00:00 2001 From: David Sherwood Date: Wed, 1 Jul 2020 15:20:01 +0100 Subject: [PATCH] [SVE] Add warnings checks in four more LLVM SVE tests I have added CHECK lines to the following tests: llvm/test/CodeGen/AArch64/sve-breakdown-scalable-vectortype.ll llvm/test/CodeGen/AArch64/sve-calling-convention-tuple-types.ll llvm/test/CodeGen/AArch64/sve-intrinsics-create-tuple.ll llvm/test/CodeGen/AArch64/sve-intrinsics-loads.ll since they are now free of warnings related to invalid use of EVT::getVectorNumElements() and VectorType::getNumElements(). Differential Revision: https://reviews.llvm.org/D82957 --- .../CodeGen/AArch64/sve-breakdown-scalable-vectortype.ll | 5 ++++- .../CodeGen/AArch64/sve-calling-convention-tuple-types.ll | 5 ++++- llvm/test/CodeGen/AArch64/sve-intrinsics-create-tuple.ll | 5 ++++- llvm/test/CodeGen/AArch64/sve-intrinsics-loads.ll | 5 ++++- 4 files changed, 16 insertions(+), 4 deletions(-) diff --git a/llvm/test/CodeGen/AArch64/sve-breakdown-scalable-vectortype.ll b/llvm/test/CodeGen/AArch64/sve-breakdown-scalable-vectortype.ll index 14123b476704..92395a650274 100644 --- a/llvm/test/CodeGen/AArch64/sve-breakdown-scalable-vectortype.ll +++ b/llvm/test/CodeGen/AArch64/sve-breakdown-scalable-vectortype.ll @@ -1,4 +1,7 @@ -; RUN: llc -mtriple=aarch64--linux-gnu -mattr=+sve -asm-verbose=0 < %s | FileCheck %s +; RUN: llc -mtriple=aarch64--linux-gnu -mattr=+sve -asm-verbose=0 < %s 2>%t | FileCheck %s +; RUN: FileCheck --check-prefix=WARN --allow-empty %s <%t + +; WARN-NOT: warning ; Test that scalable vectors that are a multiple of the legal vector size ; can be properly broken down into part vectors. diff --git a/llvm/test/CodeGen/AArch64/sve-calling-convention-tuple-types.ll b/llvm/test/CodeGen/AArch64/sve-calling-convention-tuple-types.ll index 6c702b64a455..6700c27eb109 100644 --- a/llvm/test/CodeGen/AArch64/sve-calling-convention-tuple-types.ll +++ b/llvm/test/CodeGen/AArch64/sve-calling-convention-tuple-types.ll @@ -1,4 +1,7 @@ -; RUN: llc -mtriple aarch64 -mattr=+sve -asm-verbose=0 < %s | FileCheck %s +; RUN: llc -mtriple aarch64 -mattr=+sve -asm-verbose=0 < %s 2>%t | FileCheck %s +; RUN: FileCheck --check-prefix=WARN --allow-empty %s <%t + +; WARN-NOT: warning ; ; svint8x2_t diff --git a/llvm/test/CodeGen/AArch64/sve-intrinsics-create-tuple.ll b/llvm/test/CodeGen/AArch64/sve-intrinsics-create-tuple.ll index 2cae21f6c449..2f2b8f5af3b1 100644 --- a/llvm/test/CodeGen/AArch64/sve-intrinsics-create-tuple.ll +++ b/llvm/test/CodeGen/AArch64/sve-intrinsics-create-tuple.ll @@ -1,4 +1,7 @@ -; RUN: llc -mtriple aarch64 -mattr=+sve -asm-verbose=1 < %s | FileCheck %s +; RUN: llc -mtriple aarch64 -mattr=+sve -asm-verbose=1 < %s 2>%t | FileCheck %s +; RUN: FileCheck --check-prefix=WARN --allow-empty %s <%t + +; WARN-NOT: warning ; ; SVCREATE2 (i8) diff --git a/llvm/test/CodeGen/AArch64/sve-intrinsics-loads.ll b/llvm/test/CodeGen/AArch64/sve-intrinsics-loads.ll index e1e90ef4c10b..5ff497c20ef5 100644 --- a/llvm/test/CodeGen/AArch64/sve-intrinsics-loads.ll +++ b/llvm/test/CodeGen/AArch64/sve-intrinsics-loads.ll @@ -1,4 +1,7 @@ -; RUN: llc -mtriple=aarch64-linux-gnu -mattr=+sve,+bf16 -asm-verbose=0 < %s | FileCheck %s +; RUN: llc -mtriple=aarch64-linux-gnu -mattr=+sve,+bf16 -asm-verbose=0 < %s 2>%t | FileCheck %s +; RUN: FileCheck --check-prefix=WARN --allow-empty %s <%t + +; WARN-NOT: warning ; ; LD1RQB