Skip to content

Commit

Permalink
[test] Change llc -march= to -mtriple= & llvm-mc -arch= to -triple=
Browse files Browse the repository at this point in the history
Similar to 806761a
  • Loading branch information
MaskRay committed Sep 11, 2023
1 parent 252c423 commit cfc1a87
Show file tree
Hide file tree
Showing 20 changed files with 36 additions and 36 deletions.
2 changes: 1 addition & 1 deletion llvm/test/CodeGen/Hexagon/convert-to-dot-old.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: llc -march=hexagon -mcpu=hexagonv55 -filetype=obj -o /dev/null
; RUN: llc -mtriple=hexagon -mcpu=hexagonv55 -filetype=obj -o /dev/null
; REQUIRES: asserts
; There should be no output (nothing on stderr).

Expand Down
8 changes: 4 additions & 4 deletions llvm/test/CodeGen/Lanai/codemodel.ll
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
; RUN: llc -march=lanai < %s | FileCheck %s
; RUN: llc -march=lanai < %s -code-model=small | FileCheck -check-prefix CHECK-SMALL %s
; RUN: not llc -march=lanai < %s -code-model=tiny 2>&1 | FileCheck -check-prefix CHECK-TINY %s
; RUN: not llc -march=lanai < %s -code-model=kernel 2>&1 | FileCheck -check-prefix CHECK-KERNEL %s
; RUN: llc -mtriple=lanai < %s | FileCheck %s
; RUN: llc -mtriple=lanai < %s -code-model=small | FileCheck -check-prefix CHECK-SMALL %s
; RUN: not llc -mtriple=lanai < %s -code-model=tiny 2>&1 | FileCheck -check-prefix CHECK-TINY %s
; RUN: not llc -mtriple=lanai < %s -code-model=kernel 2>&1 | FileCheck -check-prefix CHECK-KERNEL %s

; CHECK-TINY: Target does not support the tiny CodeModel
; CHECK-KERNEL: Target does not support the kernel CodeModel
Expand Down
4 changes: 2 additions & 2 deletions llvm/test/CodeGen/Lanai/mem_alu_combiner.ll
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
; RUN: llc < %s -march=lanai | FileCheck %s
; RUN: llc < %s -march=lanai -disable-lanai-mem-alu-combiner | \
; RUN: llc < %s -mtriple=lanai | FileCheck %s
; RUN: llc < %s -mtriple=lanai -disable-lanai-mem-alu-combiner | \
; RUN: FileCheck %s -check-prefix=CHECK-DIS

; CHECK-LABEL: sum,
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/CodeGen/Lanai/multiply.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: llc -march=lanai < %s | FileCheck %s
; RUN: llc -mtriple=lanai < %s | FileCheck %s

; Test the in place lowering of mul i32.

Expand Down
2 changes: 1 addition & 1 deletion llvm/test/CodeGen/Lanai/shift.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: llc < %s -march=lanai | FileCheck %s
; RUN: llc < %s -mtriple=lanai | FileCheck %s

; Test lowering of shifts.

Expand Down
4 changes: 2 additions & 2 deletions llvm/test/CodeGen/Mips/eh.ll
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
; RUN: llc < %s -march=mipsel | FileCheck %s -check-prefix=CHECK-EL
; RUN: llc < %s -march=mips | FileCheck %s -check-prefix=CHECK-EB
; RUN: llc < %s -mtriple=mipsel | FileCheck %s -check-prefix=CHECK-EL
; RUN: llc < %s -mtriple=mips | FileCheck %s -check-prefix=CHECK-EB

@g1 = global double 0.000000e+00, align 8
@_ZTId = external constant ptr
Expand Down
6 changes: 3 additions & 3 deletions llvm/test/CodeGen/Mips/insn-zero-size-bb.ll
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
; RUN: llc < %s -march=mips -mcpu=mips32 | FileCheck %s
; RUN: llc < %s -march=mips -mcpu=mips32r3 -mattr=+micromips | FileCheck %s
; RUN: llc < %s -march=mips -mattr=mips16 | FileCheck %s
; RUN: llc < %s -mtriple=mips -mcpu=mips32 | FileCheck %s
; RUN: llc < %s -mtriple=mips -mcpu=mips32r3 -mattr=+micromips | FileCheck %s
; RUN: llc < %s -mtriple=mips -mattr=mips16 | FileCheck %s

; Verify that we emit the .insn directive for zero-sized (empty) basic blocks.
; This only really matters for microMIPS and MIPS16.
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/CodeGen/Mips/lw16-base-reg.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: llc %s -march=mips -mcpu=mips32r3 -mattr=micromips -filetype=asm \
; RUN: llc %s -mtriple=mips -mcpu=mips32r3 -mattr=micromips -filetype=asm \
; RUN: -relocation-model=pic -O3 -o - | FileCheck %s

; The purpose of this test is to check whether the CodeGen selects
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/CodeGen/Mips/mips16ex.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: llc -march=mipsel -mattr=mips16 -relocation-model=pic -O3 < %s | FileCheck %s -check-prefix=16
; RUN: llc -mtriple=mipsel -mattr=mips16 -relocation-model=pic -O3 < %s | FileCheck %s -check-prefix=16

;16: main:
;16-NEXT: [[TMP:.*]]:
Expand Down
16 changes: 8 additions & 8 deletions llvm/test/CodeGen/RISCV/dwarf-eh.ll
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
; RUN: llc -march=riscv32 --code-model=small < %s \
; RUN: llc -mtriple=riscv32 --code-model=small < %s \
; RUN: | FileCheck %s
; RUN: llc -march=riscv32 --code-model=medium < %s \
; RUN: llc -mtriple=riscv32 --code-model=medium < %s \
; RUN: | FileCheck %s
; RUN: llc -march=riscv32 --code-model=small -relocation-model=pic < %s \
; RUN: llc -mtriple=riscv32 --code-model=small -relocation-model=pic < %s \
; RUN: | FileCheck %s
; RUN: llc -march=riscv32 --code-model=medium -relocation-model=pic < %s \
; RUN: llc -mtriple=riscv32 --code-model=medium -relocation-model=pic < %s \
; RUN: | FileCheck %s
; RUN: llc -march=riscv64 --code-model=small < %s \
; RUN: llc -mtriple=riscv64 --code-model=small < %s \
; RUN: | FileCheck %s
; RUN: llc -march=riscv64 --code-model=medium < %s \
; RUN: llc -mtriple=riscv64 --code-model=medium < %s \
; RUN: | FileCheck %s
; RUN: llc -march=riscv64 --code-model=small -relocation-model=pic < %s \
; RUN: llc -mtriple=riscv64 --code-model=small -relocation-model=pic < %s \
; RUN: | FileCheck %s
; RUN: llc -march=riscv64 --code-model=medium -relocation-model=pic < %s \
; RUN: llc -mtriple=riscv64 --code-model=medium -relocation-model=pic < %s \
; RUN: | FileCheck %s

declare void @throw_exception()
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/MC/Hexagon/inst_add.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: llc -march=hexagon -filetype=obj %s -o - \
; RUN: llc -mtriple=hexagon -filetype=obj %s -o - \
; RUN: | llvm-objdump -d - | FileCheck %s

define i32 @foo (i32 %a, i32 %b)
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/MC/Hexagon/inst_select.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: llc -march=hexagon -filetype=obj %s -o - \
; RUN: llc -mtriple=hexagon -filetype=obj %s -o - \
; RUN: | llvm-objdump --no-print-imm-hex -d - | FileCheck %s

define i32 @foo (i1 %a, i32 %b, i32 %c)
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/MC/Hexagon/inst_sxtb.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: llc -march=hexagon -filetype=obj %s -o - \
; RUN: llc -mtriple=hexagon -filetype=obj %s -o - \
; RUN: | llvm-objdump -d - | FileCheck %s

define i32 @foo (i8 %a)
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/MC/Hexagon/inst_zxtb.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: llc -march=hexagon -filetype=obj %s -o - \
; RUN: llc -mtriple=hexagon -filetype=obj %s -o - \
; RUN: | llvm-objdump -d - | FileCheck %s

define i32 @foo (i8 %a)
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/MC/Hexagon/inst_zxth.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: llc -march=hexagon -filetype=obj %s -o - \
; RUN: llc -mtriple=hexagon -filetype=obj %s -o - \
; RUN: | llvm-objdump -d - | FileCheck %s

define i32 @foo (i16 %a)
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/MC/Hexagon/v62a.s
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# RUN: llvm-mc -arch=hexagon -mcpu=hexagonv62 -filetype=obj -o - %s | llvm-objdump --triple=hexagon --triple=hexagon --mcpu=hexagonv62 -d - | FileCheck %s
# RUN: llvm-mc -triple=hexagon -mcpu=hexagonv62 -filetype=obj -o - %s | llvm-objdump --triple=hexagon --triple=hexagon --mcpu=hexagonv62 -d - | FileCheck %s

r31:30=vabsdiffb(r29:28, r27:26)
# CHECK: e8fadc1e { r31:30 = vabsdiffb(r29:28,r27:26)
Expand Down
4 changes: 2 additions & 2 deletions llvm/test/MC/Mips/mips64shift.ll
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
; RUN: llc -march=mips64el -filetype=obj -mcpu=mips64r2 -disable-mips-delay-filler %s -o - \
; RUN: llc -mtriple=mips64el -filetype=obj -mcpu=mips64r2 -disable-mips-delay-filler %s -o - \
; RUN: | llvm-objdump --no-print-imm-hex -d - | FileCheck %s

; RUN: llc -march=mips64el -filetype=obj -mcpu=mips64r2 %s -o - \
; RUN: llc -mtriple=mips64el -filetype=obj -mcpu=mips64r2 %s -o - \
; RUN: | llvm-objdump --no-print-imm-hex -d - | FileCheck %s

define i64 @f3(i64 %a0) nounwind readnone {
Expand Down
4 changes: 2 additions & 2 deletions llvm/test/MC/Mips/multi-64bit-func.ll
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
; There is no real check here. If the test doesn't
; assert it passes.
; RUN: llc -march=mips64el -filetype=obj -mcpu=mips64r2 -disable-mips-delay-filler < %s
; RUN: llc -mtriple=mips64el -filetype=obj -mcpu=mips64r2 -disable-mips-delay-filler < %s
; Run it again without extra nop in delay slot
; RUN: llc -march=mips64el -filetype=obj -mcpu=mips64r2 < %s
; RUN: llc -mtriple=mips64el -filetype=obj -mcpu=mips64r2 < %s

define i32 @bosco1(i32 %x) nounwind readnone {
entry:
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/MC/Mips/sext_64_32.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: llc -march=mips64el -filetype=obj -mcpu=mips64r2 %s -o - | \
; RUN: llc -mtriple=mips64el -filetype=obj -mcpu=mips64r2 %s -o - | \
; RUN: llvm-objdump --no-print-imm-hex -d - | FileCheck %s

; Sign extend from 32 to 64 was creating nonsense opcodes
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/MC/Mips/sort-relocation-table.s
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# RUN: llvm-mc -filetype=obj -arch mipsel %s | llvm-readobj -r - | FileCheck %s
# RUN: llvm-mc -filetype=obj -triple=mipsel %s | llvm-readobj -r - | FileCheck %s

# Test the order of records in the relocation table.
#
Expand Down

0 comments on commit cfc1a87

Please sign in to comment.