Skip to content

Commit f6ef409

Browse files
author
Jinsong Ji
committed
[DebugInfo][test][MIPS] Use mtriple in tests
Mips tests are using -march in RUN lines, this will fail on AIX OS , when we get the mips-ibm-aix triple. This is caused/exposed recently due to https://reviews.llvm.org/D101194 changed the default getMultiarchTriple in toolchain. Update the tests to use -mtriple instead to avoid unintended failures. Reviewed By: atanasyan Differential Revision: https://reviews.llvm.org/D101863
1 parent 6a12875 commit f6ef409

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

llvm/test/DebugInfo/Mips/dsr-fixed-objects.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: llc -march=mips -mcpu=mips32r2 -O1 -filetype=obj -relocation-model=pic <%s | \
1+
; RUN: llc -mtriple=mips -mcpu=mips32r2 -O1 -filetype=obj -relocation-model=pic <%s | \
22
; RUN: llvm-dwarfdump -v -all - | FileCheck %s
33

44
; void foo(int *);

llvm/test/DebugInfo/Mips/dsr-non-fixed-objects.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: llc -march=mips -mcpu=mips32r2 -O0 -filetype=obj -fast-isel=0 <%s | \
1+
; RUN: llc -mtriple=mips -mcpu=mips32r2 -O0 -filetype=obj -fast-isel=0 <%s | \
22
; RUN: llvm-dwarfdump -v -all - | FileCheck %s
33

44
declare void @llvm.dbg.declare(metadata, metadata, metadata)

llvm/test/DebugInfo/Mips/dwarfdump-tls.ll

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
; RUN: llc -O0 -march=mips -mcpu=mips32r2 -filetype=obj \
1+
; RUN: llc -O0 -mtriple=mips -mcpu=mips32r2 -filetype=obj \
22
; RUN: -split-dwarf-file=foo.dwo -o=%t-32.o < %s
33
; RUN: llvm-dwarfdump %t-32.o 2>&1 | FileCheck %s
4-
; RUN: llc -O0 -march=mips64 -mcpu=mips64r2 -filetype=obj \
4+
; RUN: llc -O0 -mtriple=mips64 -mcpu=mips64r2 -filetype=obj \
55
; RUN: -split-dwarf-file=foo.dwo -o=%t-64.o < %s
66
; RUN: llvm-dwarfdump %t-64.o 2>&1 | FileCheck %s
77

8-
; RUN: llc -O0 -march=mips -mcpu=mips32r2 -filetype=asm \
8+
; RUN: llc -O0 -mtriple=mips -mcpu=mips32r2 -filetype=asm \
99
; RUN: -split-dwarf-file=foo.dwo < %s | FileCheck -check-prefix=ASM32 %s
10-
; RUN: llc -O0 -march=mips64 -mcpu=mips64r2 -filetype=asm \
10+
; RUN: llc -O0 -mtriple=mips64 -mcpu=mips64r2 -filetype=asm \
1111
; RUN: -split-dwarf-file=foo.dwo < %s | FileCheck -check-prefix=ASM64 %s
1212

1313
@x = thread_local global i32 5, align 4, !dbg !0

0 commit comments

Comments
 (0)