[llvm] r335635 - Move `REQUIRES:` line to the top

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 26 10:44:23 PDT 2018


Author: maskray
Date: Tue Jun 26 10:44:23 2018
New Revision: 335635

URL: http://llvm.org/viewvc/llvm-project?rev=335635&view=rev
Log:
Move `REQUIRES:` line to the top

Modified:
    llvm/trunk/test/Assembler/return-column.s
    llvm/trunk/test/MC/AsmParser/debug-empty-source.s
    llvm/trunk/test/MC/AsmParser/debug-no-source.s
    llvm/trunk/test/MC/AsmParser/macro-duplicate-params-names-err.s
    llvm/trunk/test/MC/ELF/cfi-large-model.s
    llvm/trunk/test/MC/ELF/compression.s
    llvm/trunk/test/MC/ELF/dwarf-file0.s
    llvm/trunk/test/MC/ELF/dwarf-loc0.s
    llvm/trunk/test/MC/ELF/nocompression.s
    llvm/trunk/test/MC/X86/x86_64-asm-match.s
    llvm/trunk/test/tools/lto/no-bitcode.s

Modified: llvm/trunk/test/Assembler/return-column.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Assembler/return-column.s?rev=335635&r1=335634&r2=335635&view=diff
==============================================================================
--- llvm/trunk/test/Assembler/return-column.s (original)
+++ llvm/trunk/test/Assembler/return-column.s Tue Jun 26 10:44:23 2018
@@ -1,6 +1,6 @@
+// REQUIRES: x86-registered-target
 // RUN: llvm-mc -triple i686-unknown-linux-gnu -filetype asm -o - %s | FileCheck %s -check-prefix CHECK-ASM-ROUNDTRIP
 // RUN: llvm-mc -triple i686-unknown-linux-gnu -filetype obj -o - %s | llvm-objdump -dwarf=frames - | FileCheck %s -check-prefix CHECK-EH_FRAME
-// REQUIRES: x86-registered-target
 
 	.text
 

Modified: llvm/trunk/test/MC/AsmParser/debug-empty-source.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/AsmParser/debug-empty-source.s?rev=335635&r1=335634&r2=335635&view=diff
==============================================================================
--- llvm/trunk/test/MC/AsmParser/debug-empty-source.s (original)
+++ llvm/trunk/test/MC/AsmParser/debug-empty-source.s Tue Jun 26 10:44:23 2018
@@ -1,5 +1,5 @@
-// RUN: llvm-mc %s -o -| FileCheck %s
 // REQUIRES: default_triple
+// RUN: llvm-mc %s -o -| FileCheck %s
 
 .file 1 "dir1" "foo" source ""
 

Modified: llvm/trunk/test/MC/AsmParser/debug-no-source.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/AsmParser/debug-no-source.s?rev=335635&r1=335634&r2=335635&view=diff
==============================================================================
--- llvm/trunk/test/MC/AsmParser/debug-no-source.s (original)
+++ llvm/trunk/test/MC/AsmParser/debug-no-source.s Tue Jun 26 10:44:23 2018
@@ -1,5 +1,5 @@
-// RUN: llvm-mc %s | FileCheck %s
 // REQUIRES: default_triple
+// RUN: llvm-mc %s | FileCheck %s
 
 .file 1 "dir1/foo"
 

Modified: llvm/trunk/test/MC/AsmParser/macro-duplicate-params-names-err.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/AsmParser/macro-duplicate-params-names-err.s?rev=335635&r1=335634&r2=335635&view=diff
==============================================================================
--- llvm/trunk/test/MC/AsmParser/macro-duplicate-params-names-err.s (original)
+++ llvm/trunk/test/MC/AsmParser/macro-duplicate-params-names-err.s Tue Jun 26 10:44:23 2018
@@ -1,6 +1,6 @@
+// REQUIRES: default_triple
 // RUN: not llvm-mc %s 2> %t
 // RUN: FileCheck < %t %s
-// REQUIRES: default_triple
 
 .macro M a a
 .endm

Modified: llvm/trunk/test/MC/ELF/cfi-large-model.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/ELF/cfi-large-model.s?rev=335635&r1=335634&r2=335635&view=diff
==============================================================================
--- llvm/trunk/test/MC/ELF/cfi-large-model.s (original)
+++ llvm/trunk/test/MC/ELF/cfi-large-model.s Tue Jun 26 10:44:23 2018
@@ -1,10 +1,10 @@
+// REQUIRES: powerpc-registered-target
+// REQUIRES: x86-registered-target
 // RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu -large-code-model %s \
 // RUN:   -o - | llvm-readobj -s -sd | FileCheck --check-prefix=CHECK-X86 %s
 // RUN: llvm-mc -filetype=obj -triple powerpc64le-linux-gnu -large-code-model %s \
 // RUN:   -o - | llvm-readobj -s -sd | FileCheck --check-prefix=CHECK-PPC %s
 
-// REQUIRES: x86-registered-target
-// REQUIRES: powerpc-registered-target
 
 // CHECK-X86:      Section {
 // CHECK-X86:        Index:

Modified: llvm/trunk/test/MC/ELF/compression.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/ELF/compression.s?rev=335635&r1=335634&r2=335635&view=diff
==============================================================================
--- llvm/trunk/test/MC/ELF/compression.s (original)
+++ llvm/trunk/test/MC/ELF/compression.s Tue Jun 26 10:44:23 2018
@@ -1,3 +1,4 @@
+// REQUIRES: zlib
 // Check zlib-gnu style
 // RUN: llvm-mc -filetype=obj -compress-debug-sections=zlib-gnu -triple x86_64-pc-linux-gnu < %s -o %t
 // RUN: llvm-objdump -s %t | FileCheck --check-prefix=CHECK-GNU-STYLE %s
@@ -13,8 +14,6 @@
 // RUN:     | llvm-readobj -symbols - | FileCheck --check-prefix=386-SYMBOLS-ZLIB %s
 // RUN: llvm-readobj -sections %t | FileCheck --check-prefix=ZLIB-STYLE-FLAGS %s
 
-// REQUIRES: zlib
-
 // Don't compress small sections, such as this simple debug_abbrev example
 // CHECK-GNU-STYLE: Contents of section .debug_abbrev:
 // CHECK-GNU-STYLE-NOT: ZLIB

Modified: llvm/trunk/test/MC/ELF/dwarf-file0.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/ELF/dwarf-file0.s?rev=335635&r1=335634&r2=335635&view=diff
==============================================================================
--- llvm/trunk/test/MC/ELF/dwarf-file0.s (original)
+++ llvm/trunk/test/MC/ELF/dwarf-file0.s Tue Jun 26 10:44:23 2018
@@ -1,9 +1,9 @@
+# REQUIRES: default_triple
 # RUN: llvm-mc -dwarf-version 4 %s -filetype=obj -o - | llvm-dwarfdump -debug-line - | FileCheck %s --check-prefixes=CHECK,CHECK-4
 # RUN: llvm-mc -dwarf-version 4 %s -filetype=asm -o - | FileCheck %s --check-prefixes=ASM,ASM-4
 # RUN: llvm-mc -dwarf-version 4 %s -filetype=asm -o - 2>&1 | FileCheck %s --check-prefix=WARN
 # RUN: llvm-mc -dwarf-version 5 %s -filetype=obj -o - | llvm-dwarfdump -debug-line - | FileCheck %s --check-prefixes=CHECK,CHECK-5
 # RUN: llvm-mc -dwarf-version 5 %s -filetype=asm -o - | FileCheck %s --check-prefixes=ASM,ASM-5
-# REQUIRES: default_triple
 # Darwin is stuck on DWARF v2.
 # XFAIL: darwin
         .file 0 "/test" "root.cpp"

Modified: llvm/trunk/test/MC/ELF/dwarf-loc0.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/ELF/dwarf-loc0.s?rev=335635&r1=335634&r2=335635&view=diff
==============================================================================
--- llvm/trunk/test/MC/ELF/dwarf-loc0.s (original)
+++ llvm/trunk/test/MC/ELF/dwarf-loc0.s Tue Jun 26 10:44:23 2018
@@ -1,6 +1,6 @@
+# REQUIRES: default_triple
 # RUN: llvm-mc -dwarf-version 5 %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
-# REQUIRES: default_triple
 # Darwin line table is stuck on DWARF v2.
 # XFAIL: darwin
 # Show that ".loc 0" works in DWARF v5, gets an error for earlier versions.

Modified: llvm/trunk/test/MC/ELF/nocompression.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/ELF/nocompression.s?rev=335635&r1=335634&r2=335635&view=diff
==============================================================================
--- llvm/trunk/test/MC/ELF/nocompression.s (original)
+++ llvm/trunk/test/MC/ELF/nocompression.s Tue Jun 26 10:44:23 2018
@@ -1,6 +1,5 @@
+// REQUIRES: nozlib
 // RUN: not llvm-mc -filetype=obj -compress-debug-sections=zlib -triple x86_64-pc-linux-gnu %s -o - 2>&1 | FileCheck %s
 // RUN: not llvm-mc -filetype=obj -compress-debug-sections=zlib-gnu -triple x86_64-pc-linux-gnu %s -o - 2>&1 | FileCheck %s
 
-// REQUIRES: nozlib
-
 // CHECK: llvm-mc{{[^:]*}}: error: build tools with zlib to enable -compress-debug-sections

Modified: llvm/trunk/test/MC/X86/x86_64-asm-match.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/X86/x86_64-asm-match.s?rev=335635&r1=335634&r2=335635&view=diff
==============================================================================
--- llvm/trunk/test/MC/X86/x86_64-asm-match.s (original)
+++ llvm/trunk/test/MC/X86/x86_64-asm-match.s Tue Jun 26 10:44:23 2018
@@ -1,5 +1,5 @@
-// RUN: llvm-mc -triple x86_64-unknown-unknown  -debug-only=asm-matcher  %s 2>&1 | FileCheck %s
 // REQUIRES: asserts
+// RUN: llvm-mc -triple x86_64-unknown-unknown  -debug-only=asm-matcher  %s 2>&1 | FileCheck %s
 
 // CHECK: AsmMatcher: found 4 encodings with mnemonic 'pshufb'
 // CHECK: Trying to match opcode MMX_PSHUFBrr

Modified: llvm/trunk/test/tools/lto/no-bitcode.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/lto/no-bitcode.s?rev=335635&r1=335634&r2=335635&view=diff
==============================================================================
--- llvm/trunk/test/tools/lto/no-bitcode.s (original)
+++ llvm/trunk/test/tools/lto/no-bitcode.s Tue Jun 26 10:44:23 2018
@@ -1,5 +1,5 @@
-; libLTO.dylib shouldn't assert on invalid inputs.
 ; REQUIRES: arm-registered-target
+; libLTO.dylib shouldn't assert on invalid inputs.
 ; RUN: llvm-mc -triple=arm64-apple-ios7.0.0 -filetype=obj -o %t.o
 ; RUN: llvm-ar r %t.a %t.o
 ; RUN: %ld64 -lto_library %llvmshlibdir/libLTO.dylib -arch x86_64 -dylib -mllvm -O0 -o %t.dylib %t.a




More information about the llvm-commits mailing list