Skip to content

Commit b0f560b

Browse files
authored
LoopVectorize/test: fix opt invocations with -march (NFC) (llvm#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.
1 parent dabf849 commit b0f560b

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

llvm/test/Transforms/LoopVectorize/Hexagon/maximum-vf-crash.ll

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
; RUN: opt -march=hexagon -hexagon-autohvx -passes=loop-vectorize -S < %s 2>&1 | FileCheck %s
1+
; RUN: opt -mtriple=hexagon -hexagon-autohvx -passes=loop-vectorize -S < %s 2>&1 | FileCheck %s
22

33
; Check that we don't crash.
44

55
; CHECK-LABEL: @f
66
; CHECK: vector.body
77

88
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"
9-
target triple = "hexagon"
109

1110
; Function Attrs: optsize
1211
define i32 @f() #0 {

llvm/test/Transforms/LoopVectorize/Hexagon/minimum-vf.ll

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
; RUN: opt -march=hexagon -passes=loop-vectorize -hexagon-autohvx -debug-only=loop-vectorize -disable-output < %s 2>&1 | FileCheck %s
1+
; RUN: opt -mtriple=hexagon -passes=loop-vectorize -hexagon-autohvx -debug-only=loop-vectorize -disable-output < %s 2>&1 | FileCheck %s
22
; REQUIRES: asserts
33

44
; Check that TTI::getMinimumVF works. The calculated MaxVF was based on the
55
; register pressure and was less than 64.
66
; CHECK: LV: Overriding calculated MaxVF({{[0-9]+}}) with target's minimum: 64
77

88
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"
9-
target triple = "hexagon"
109

1110
%s.0 = type { ptr, i32, i32, i32, i32 }
1211

0 commit comments

Comments
 (0)