Skip to content

Commit

Permalink
[llvm] Convert tests to check 'target=...'
Browse files Browse the repository at this point in the history
Part of the project to eliminate special handling for triples in lit
expressions.
  • Loading branch information
pogo59 committed Dec 15, 2022
1 parent ee0c631 commit a1b4e13
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion llvm/test/ExecutionEngine/MCJIT/2005-12-02-TailCallBug.ll
@@ -1,7 +1,7 @@
; PR672
; RUN: %lli -jit-kind=mcjit %s
; RUN: %lli %s
; XFAIL: i686 && windows
; XFAIL: target={{i686.*windows.*}}

define i32 @main() {
%res = tail call fastcc i32 @check_tail( i32 10, ptr @check_tail, i32 10 ) ; <i32> [#uses=1]
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Feature/load_extension.ll
Expand Up @@ -5,7 +5,7 @@
; RUN: llvm-lto2 run %t.o %loadbye %loadnewpmbye -wave-goodbye -o %t -r %t.o,somefunk,plx -r %t.o,junk,plx 2>&1 | FileCheck %s
; RUN: llvm-lto2 run %t.o %loadbye %loadnewpmbye -opt-pipeline="goodbye" -wave-goodbye -o %t -r %t.o,somefunk,plx -r %t.o,junk,plx 2>&1 | FileCheck %s
; REQUIRES: plugins, examples
; UNSUPPORTED: windows
; UNSUPPORTED: target={{.*windows.*}}
; CHECK: Bye
;
; Specifying a new PM pass plugin with the old PM is an error.
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/MC/AsmParser/debug-empty-source.s
@@ -1,5 +1,5 @@
// XFAIL: target={{.*}}-aix{{.*}}
// UNSUPPORTED: -zos
// UNSUPPORTED: target={{.*}}-zos{{.*}}
// REQUIRES: object-emission
// RUN: llvm-mc %s -o -| FileCheck %s

Expand Down
2 changes: 1 addition & 1 deletion llvm/test/MC/AsmParser/include.ll
@@ -1,5 +1,5 @@
; RUN: llc -I %p/Inputs -filetype asm -o - %s | FileCheck %s
; UNSUPPORTED: -zos,target=nvptx{{.*}}
; UNSUPPORTED: target={{.*}}-zos{{.*}},target=nvptx{{.*}}
; REQUIRES: default_triple

module asm ".include \22module.x\22"
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/MC/AsmParser/macro-same-context.ll
@@ -1,6 +1,6 @@
;; Test that macros in inline assembly blocks share the same context,
;; thus a definition is available to the whole file. PR36110
; UNSUPPORTED: -zos,target=nvptx{{.*}}
; UNSUPPORTED: target={{.*}}-zos{{.*}},target=nvptx{{.*}}
; RUN: not llc < %s 2>&1 | FileCheck %s
; REQUIRES: default_triple

Expand Down
2 changes: 1 addition & 1 deletion llvm/test/MC/ELF/dwarf-file0.s
@@ -1,5 +1,5 @@
# XFAIL: target={{.*}}-aix{{.*}}
# UNSUPPORTED: -zos
# UNSUPPORTED: target={{.*}}-zos{{.*}}
# REQUIRES: object-emission
# RUN: llvm-mc -dwarf-version 4 %s -filetype=obj -o - | llvm-dwarfdump -debug-line - | FileCheck %s
# RUN: llvm-mc -dwarf-version 4 %s --fatal-warnings -o - | FileCheck %s --check-prefix=ASM
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/MC/ELF/dwarf-loc0.s
@@ -1,5 +1,5 @@
# XFAIL: target={{.*}}-aix{{.*}}
# UNSUPPORTED: -zos
# UNSUPPORTED: target={{.*}}-zos{{.*}}
# REQUIRES: object-emission
# RUN: llvm-mc -dwarf-version 5 --defsym FILE0=1 %s -filetype=obj -o - | llvm-dwarfdump -debug-line - | FileCheck %s
# RUN: not llvm-mc -dwarf-version 4 %s -filetype=asm -o - 2>&1 | FileCheck %s -check-prefix=ERR
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/tools/llvm-objcopy/ELF/update-section.test
@@ -1,4 +1,4 @@
# XFAIL: target-arm && linux-gnu
# XFAIL: target={{arm.*linux-gnu}}
# REQUIRES: x86-registered-target

# RUN: yaml2obj %s -o %t
Expand Down

4 comments on commit a1b4e13

@DavidSpickett
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The XFAIL for llvm/test/tools/llvm-objcopy/ELF/update-section.test appears to not work anymore. I'll figure out what is wrong.

@DavidSpickett
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 7e61c68.

@pogo59
Copy link
Collaborator Author

@pogo59 pogo59 commented on a1b4e13 Dec 16, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry about that! brain fart on my part.

@DavidSpickett
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No problem.

It's a good example of why the new style is better in fact, I wasn't sure what "linux-gnu" was doing until I actually tested it myself. The regex is much clearer.

Please sign in to comment.