diff options
author | Ramkumar Ramachandra <r@artagnon.com> | 2023-12-08 09:56:55 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-08 09:56:55 +0000 |
commit | b0f560b8ea5782eff83b7646f713405eaafd9c73 (patch) | |
tree | 6c11811fcd11f835b7f081535fe44f9597d84f31 | |
parent | dabf8490a9ad0b8bcfd21f74b1f76ba5cdb493c9 (diff) | |
download | llvm-b0f560b8ea5782eff83b7646f713405eaafd9c73.zip llvm-b0f560b8ea5782eff83b7646f713405eaafd9c73.tar.gz llvm-b0f560b8ea5782eff83b7646f713405eaafd9c73.tar.bz2 |
LoopVectorize/test: fix opt invocations with -march (NFC) (#74462)
opt accepts the -march command-line argument, but this argument only
makes sense in conjunction with -mtriple. Fix a couple of tests under
LoopVectorize that invoke opt with -march but without -mtriple, to avoid
confusing users.
-rw-r--r-- | llvm/test/Transforms/LoopVectorize/Hexagon/maximum-vf-crash.ll | 3 | ||||
-rw-r--r-- | llvm/test/Transforms/LoopVectorize/Hexagon/minimum-vf.ll | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/llvm/test/Transforms/LoopVectorize/Hexagon/maximum-vf-crash.ll b/llvm/test/Transforms/LoopVectorize/Hexagon/maximum-vf-crash.ll index 4c7a7d3..4966ddd 100644 --- a/llvm/test/Transforms/LoopVectorize/Hexagon/maximum-vf-crash.ll +++ b/llvm/test/Transforms/LoopVectorize/Hexagon/maximum-vf-crash.ll @@ -1,4 +1,4 @@ -; RUN: opt -march=hexagon -hexagon-autohvx -passes=loop-vectorize -S < %s 2>&1 | FileCheck %s +; RUN: opt -mtriple=hexagon -hexagon-autohvx -passes=loop-vectorize -S < %s 2>&1 | FileCheck %s ; Check that we don't crash. @@ -6,7 +6,6 @@ ; CHECK: vector.body target datalayout = "e-m:e-p:32:32:32-a:0-n16:32-i64:64:64-i32:32:32-i16:16:16-i1:8:8-f32:32:32-f64:64:64-v32:32:32-v64:64:64-v512:512:512-v1024:1024:1024-v2048:2048:2048" -target triple = "hexagon" ; Function Attrs: optsize define i32 @f() #0 { diff --git a/llvm/test/Transforms/LoopVectorize/Hexagon/minimum-vf.ll b/llvm/test/Transforms/LoopVectorize/Hexagon/minimum-vf.ll index 4ff7ad9..1ac556a 100644 --- a/llvm/test/Transforms/LoopVectorize/Hexagon/minimum-vf.ll +++ b/llvm/test/Transforms/LoopVectorize/Hexagon/minimum-vf.ll @@ -1,4 +1,4 @@ -; RUN: opt -march=hexagon -passes=loop-vectorize -hexagon-autohvx -debug-only=loop-vectorize -disable-output < %s 2>&1 | FileCheck %s +; RUN: opt -mtriple=hexagon -passes=loop-vectorize -hexagon-autohvx -debug-only=loop-vectorize -disable-output < %s 2>&1 | FileCheck %s ; REQUIRES: asserts ; Check that TTI::getMinimumVF works. The calculated MaxVF was based on the @@ -6,7 +6,6 @@ ; CHECK: LV: Overriding calculated MaxVF({{[0-9]+}}) with target's minimum: 64 target datalayout = "e-m:e-p:32:32:32-a:0-n16:32-i64:64:64-i32:32:32-i16:16:16-i1:8:8-f32:32:32-f64:64:64-v32:32:32-v64:64:64-v512:512:512-v1024:1024:1024-v2048:2048:2048" -target triple = "hexagon" %s.0 = type { ptr, i32, i32, i32, i32 } |