Skip to content

Commit 133352f

Browse files
committed
[test] Remove redundant -march= when target triple is specified in IR
1 parent 6e8718c commit 133352f

26 files changed

+42
-42
lines changed

llvm/test/CodeGen/AArch64/stack-tagging-ex-2.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; clang -target aarch64-eabi -O2 -march=armv8.5-a+memtag -fsanitize=memtag -S -emit-llvm test.cc
1+
; clang -target aarch64-eabi -O2 -fsanitize=memtag -S -emit-llvm test.cc
22
; void bar() {
33
; throw 42;
44
; }

llvm/test/CodeGen/Hexagon/autohvx/float-cost.ll

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

44
; Check that the cost model makes vectorization non-profitable.

llvm/test/CodeGen/Hexagon/autohvx/interleave.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt -march=hexagon -hexagon-autohvx -passes=loop-vectorize -S < %s | FileCheck %s
1+
; RUN: opt -hexagon-autohvx -passes=loop-vectorize -S < %s | FileCheck %s
22
; Check that the loop has been interleaved.
33
; CHECK: store <64 x i32> %interleaved.vec
44

llvm/test/CodeGen/Hexagon/autohvx/maximize-bandwidth.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt -march=hexagon -hexagon-autohvx -passes=loop-vectorize -S < %s | FileCheck %s
1+
; RUN: opt -hexagon-autohvx -passes=loop-vectorize -S < %s | FileCheck %s
22
; Check that the loop is vectorized with VF=32.
33
; CHECK: wide.load{{.*}} = load <32 x i32>
44
; CHECK: wide.load{{.*}} = load <32 x i16>

llvm/test/CodeGen/Hexagon/bug15515-shuffle.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt -march=hexagon -O2 -S < %s
1+
; RUN: opt -O2 -S < %s
22
; REQUIRES: asserts
33
;
44
; -fvectorize-loops infinite compile/memory

llvm/test/CodeGen/Hexagon/const-pool-tf.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt -relocation-model pic -mtriple=hexagon -mcpu=hexagonv60 -O2 -S < %s | llc -march=hexagon -mcpu=hexagonv60 -relocation-model pic
1+
; RUN: opt -relocation-model pic -mtriple=hexagon -mcpu=hexagonv60 -O2 -S < %s | llc -mcpu=hexagonv60 -relocation-model pic
22

33
; CHECK: jumpr
44

llvm/test/CodeGen/Hexagon/glob-align-volatile.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt -Os -march=hexagon -S < %s | FileCheck %s
1+
; RUN: opt -Os -S < %s | FileCheck %s
22
; Don't reset the alignment on the struct to 1.
33
; CHECK: align 4
44

llvm/test/CodeGen/Hexagon/loop-idiom/pmpy-infinite-loop.ll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
; RUN: opt -march=hexagon -hexagon-loop-idiom -S < %s | FileCheck %s
2-
; RUN: opt -march=hexagon -p hexagon-loop-idiom -S < %s | FileCheck %s
1+
; RUN: opt -hexagon-loop-idiom -S < %s | FileCheck %s
2+
; RUN: opt -p hexagon-loop-idiom -S < %s | FileCheck %s
33
; CHECK-LABEL: define void @fred
44

55
; Check that this test does not crash.

llvm/test/CodeGen/Hexagon/loop-idiom/pmpy-long-loop.ll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
; RUN: opt -march=hexagon -hexagon-loop-idiom -S < %s | FileCheck %s
2-
; RUN: opt -march=hexagon -p hexagon-loop-idiom -S < %s | FileCheck %s
1+
; RUN: opt -hexagon-loop-idiom -S < %s | FileCheck %s
2+
; RUN: opt -p hexagon-loop-idiom -S < %s | FileCheck %s
33
;
44
; The number of nested selects caused the simplification loop to take
55
; more than the maximum number of iterations. This caused the compiler

llvm/test/CodeGen/Hexagon/loop-idiom/pmpy-mod.ll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
; the Hexagon loop idiom recognition runs. This is to check that we still
33
; get this opportunity regardless of what happens before.
44

5-
; RUN: opt -O2 -march=hexagon -S < %s | FileCheck %s
6-
; RUN: opt -passes='default<O2>' -march=hexagon -S < %s | FileCheck %s
5+
; RUN: opt -O2 -S < %s | FileCheck %s
6+
; RUN: opt -passes='default<O2>' -S < %s | FileCheck %s
77

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

llvm/test/CodeGen/Hexagon/loop-idiom/pmpy-shiftconv-fail.ll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
; RUN: opt -march=hexagon -hexagon-loop-idiom -S < %s | FileCheck %s
2-
; RUN: opt -march=hexagon -p hexagon-loop-idiom -S < %s | FileCheck %s
1+
; RUN: opt -hexagon-loop-idiom -S < %s | FileCheck %s
2+
; RUN: opt -p hexagon-loop-idiom -S < %s | FileCheck %s
33
; REQUIRES: asserts
44
;
55
; Check for sane output, this used to crash.

llvm/test/CodeGen/Hexagon/vcombine_zero_diff_ptrs.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt -march=hexagon -hexagon-vc -S < %s | FileCheck %s
1+
; RUN: opt -hexagon-vc -S < %s | FileCheck %s
22

33
; Test that the HexagonVectorCombine pass identifies instruction
44
; pairs whose difference in pointers is zero. This creates a vector

llvm/test/CodeGen/Lanai/delay_filler.ll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
; RUN: llc -march=lanai < %s | FileCheck %s
2-
; RUN: llc -march=lanai --lanai-nop-delay-filler < %s | \
1+
; RUN: llc < %s | FileCheck %s
2+
; RUN: llc --lanai-nop-delay-filler < %s | \
33
; RUN: FileCheck %s --check-prefix=NOP
44

55
; CHECK: bt f

llvm/test/CodeGen/Lanai/lowering-128.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: llc -march=lanai < %s | FileCheck %s
1+
; RUN: llc < %s | FileCheck %s
22

33
; Tests that lowering wide registers (128 bits or more) works on Lanai.
44
; The emitted assembly is not checked, we just do a smoketest.

llvm/test/CodeGen/NVPTX/surf-read.ll

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
; RUN: llc < %s -march=nvptx64 -mcpu=sm_20 -verify-machineinstrs | FileCheck %s
2-
; RUN: %if ptxas %{ llc < %s -march=nvptx64 -mcpu=sm_20 -verify-machineinstrs | %ptxas-verify %}
1+
; RUN: llc < %s -mcpu=sm_20 -verify-machineinstrs | FileCheck %s
2+
; RUN: %if ptxas %{ llc < %s -mcpu=sm_20 -verify-machineinstrs | %ptxas-verify %}
33

4-
target triple = "nvptx-unknown-nvcl"
4+
target triple = "nvptx64-unknown-nvcl"
55

66
declare i32 @llvm.nvvm.suld.1d.i32.trap(i64, i32)
77

llvm/test/CodeGen/NVPTX/surf-write.ll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
; RUN: llc < %s -march=nvptx64 -mcpu=sm_20 -verify-machineinstrs | FileCheck %s
2-
; RUN: %if ptxas %{ llc < %s -march=nvptx64 -mcpu=sm_20 -verify-machineinstrs | %ptxas-verify %}
1+
; RUN: llc < %s -mcpu=sm_20 -verify-machineinstrs | FileCheck %s
2+
; RUN: %if ptxas %{ llc < %s -mcpu=sm_20 -verify-machineinstrs | %ptxas-verify %}
33

44
target triple = "nvptx-unknown-nvcl"
55

llvm/test/CodeGen/NVPTX/tex-read.ll

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
; RUN: llc < %s -march=nvptx64 -mcpu=sm_20 -verify-machineinstrs | FileCheck %s
2-
; RUN: %if ptxas %{ llc < %s -march=nvptx64 -mcpu=sm_20 -verify-machineinstrs | %ptxas-verify %}
1+
; RUN: llc < %s -mcpu=sm_20 -verify-machineinstrs | FileCheck %s
2+
; RUN: %if ptxas %{ llc < %s -mcpu=sm_20 -verify-machineinstrs | %ptxas-verify %}
33

4-
target triple = "nvptx-unknown-nvcl"
4+
target triple = "nvptx64-unknown-nvcl"
55

66
declare { float, float, float, float } @llvm.nvvm.tex.1d.v4f32.s32(i64, i64, i32)
77

llvm/test/CodeGen/PowerPC/ppc64le-aggregates.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
; Currently VSX support is disabled for this test because we generate lxsdx
99
; instead of lfd, and stxsdx instead of stfd. That is a poor choice when we
1010
; have reg+imm addressing, and is on the list of things to be fixed.
11-
; The second run step is to ensure that -march=ppc64le is adequate to select
11+
; The second run step is to ensure that is adequate to select
1212
; the same feature set as with -mcpu=pwr8 since that is the baseline for ppc64le.
1313

1414
target datalayout = "e-m:e-i64:64-n32:64"

llvm/test/CodeGen/Thumb2/bug-subw.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
; pr23772 - [ARM] r226200 can emit illegal thumb2 instruction: "sub sp, r12, #80"
2-
; RUN: llc -march=thumb -mcpu=cortex-m3 -O3 -filetype=asm -o - %s | FileCheck %s
2+
; RUN: llc -mcpu=cortex-m3 -O3 -filetype=asm -o - %s | FileCheck %s
33
; CHECK-NOT: sub{{.*}} sp, r{{.*}}, #
44
; CHECK: .fnend
55
; TODO: Missed optimization. The three instructions generated to subtract SP can be converged to a single one

llvm/test/DebugInfo/NVPTX/debug-ptx-symbols.ll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
; RUN: llc < %s -march=nvptx64 -mcpu=sm_60 | FileCheck %s
2-
; RUN: %if ptxas %{ llc < %s -march=nvptx64 -mcpu=sm_60 | %ptxas-verify %}
1+
; RUN: llc < %s -mcpu=sm_60 | FileCheck %s
2+
; RUN: %if ptxas %{ llc < %s -mcpu=sm_60 | %ptxas-verify %}
33
target datalayout = "e-i64:64-i128:128-v16:16-v32:32-n16:32:64"
44
target triple = "nvptx64-nvidia-cuda"
55

llvm/test/DebugInfo/X86/instr-ref-flag.ll

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
; RUN: llc %s -o - -stop-before=finalize-isel -march=x86-64 \
1+
; RUN: llc %s -o - -stop-before=finalize-isel \
22
; RUN: | FileCheck %s --check-prefixes=INSTRREFON
3-
; RUN: llc %s -o - -stop-before=finalize-isel -march=x86-64 \
3+
; RUN: llc %s -o - -stop-before=finalize-isel \
44
; RUN: -experimental-debug-variable-locations=true \
55
; RUN: | FileCheck %s --check-prefixes=INSTRREFON
66

7-
; RUN: llc %s -o - -stop-before=finalize-isel -march=x86-64 \
7+
; RUN: llc %s -o - -stop-before=finalize-isel \
88
; RUN: -experimental-debug-variable-locations=false \
99
; RUN: | FileCheck %s --check-prefixes=INSTRREFOFF \
1010
; RUN: --implicit-check-not=DBG_INSTR_REF

llvm/test/DebugInfo/X86/no-entry-values-with-O0.ll

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
; RUN: llc -O0 -dwarf-version=5 -debugger-tune=lldb -march=x86-64 -filetype=obj < %s \
1+
; RUN: llc -O0 -dwarf-version=5 -debugger-tune=lldb -filetype=obj < %s \
22
; RUN: | llvm-dwarfdump - | FileCheck --implicit-check-not=DW_OP_entry_value %s
3-
; RUN: llc -O0 -dwarf-version=5 -debugger-tune=gdb -march=x86-64 -filetype=obj < %s \
3+
; RUN: llc -O0 -dwarf-version=5 -debugger-tune=gdb -filetype=obj < %s \
44
; RUN: | llvm-dwarfdump - | FileCheck --implicit-check-not=DW_OP_entry_value %s
5-
; RUN: llc -force-instr-ref-livedebugvalues=1 -O0 -dwarf-version=5 -debugger-tune=lldb -march=x86-64 -filetype=obj < %s \
5+
; RUN: llc -force-instr-ref-livedebugvalues=1 -O0 -dwarf-version=5 -debugger-tune=lldb -filetype=obj < %s \
66
; RUN: | llvm-dwarfdump - | FileCheck --implicit-check-not=DW_OP_entry_value %s
7-
; RUN: llc -force-instr-ref-livedebugvalues=1 -O0 -dwarf-version=5 -debugger-tune=gdb -march=x86-64 -filetype=obj < %s \
7+
; RUN: llc -force-instr-ref-livedebugvalues=1 -O0 -dwarf-version=5 -debugger-tune=gdb -filetype=obj < %s \
88
; RUN: | llvm-dwarfdump - | FileCheck --implicit-check-not=DW_OP_entry_value %s
99

1010
; The call-site-params are created iff corresponding DISubprogram contains

llvm/test/DebugInfo/X86/single-dbg_value.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
; RUN: llc -stop-after=livedebugvalues -o - %s \
22
; RUN: | FileCheck %s --check-prefix=SANITY
3-
; RUN: llc -march=x86-64 -o - %s -filetype=obj \
3+
; RUN: llc -o - %s -filetype=obj \
44
; RUN: | llvm-dwarfdump -v -all - | FileCheck %s
55
;
66
; CHECK: .debug_info contents:

llvm/test/Transforms/LoadStoreVectorizer/NVPTX/propagate-invariance-metadata.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
2-
; RUN: opt -passes=load-store-vectorizer -march=nvptx64 -mcpu=sm_35 -S < %s | FileCheck %s
2+
; RUN: opt -passes=load-store-vectorizer -mcpu=sm_35 -S < %s | FileCheck %s
33

44
target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v16:16:16-v32:32:32-v64:64:64-v128:128:128-n16:32:64"
55
target triple = "nvptx64-nvidia-cuda"

llvm/test/Transforms/StraightLineStrengthReduce/NVPTX/reassociate-geps-and-slsr.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 4
22
; RUN: opt < %s -passes=separate-const-offset-from-gep,slsr,gvn -S | FileCheck %s
3-
; RUN: llc < %s -march=nvptx64 -mcpu=sm_35 | FileCheck %s --check-prefix=PTX
3+
; RUN: llc < %s -mcpu=sm_35 | FileCheck %s --check-prefix=PTX
44

55
target datalayout = "e-i64:64-v16:16-v32:32-n16:32:64"
66
target triple = "nvptx64-unknown-unknown"

llvm/test/Transforms/StraightLineStrengthReduce/NVPTX/speculative-slsr.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: llc < %s -march=nvptx64 -mcpu=sm_35 | FileCheck %s
1+
; RUN: llc < %s -mcpu=sm_35 | FileCheck %s
22

33
target datalayout = "e-i64:64-v16:16-v32:32-n16:32:64"
44
target triple = "nvptx64-nvidia-cuda"

0 commit comments

Comments
 (0)