From 73477b9f32da6488f2883f33fd17fa0de61f2bd1 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Wed, 3 Jul 2013 16:41:29 +0000 Subject: [PATCH] Prefix failing commands with not to make clear they are expected to fail. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185554 91177308-0d34-0410-b5e6-96231b3b80d8 --- .../CodeGen/ARM/2012-09-25-InlineAsmScalarToVectorConv.ll | 2 +- .../ARM/2012-09-25-InlineAsmScalarToVectorConv2.ll | 2 +- test/CodeGen/ARM/indirect-reg-input.ll | 2 +- test/CodeGen/R600/vertex-fetch-encoding.ll | 2 +- test/CodeGen/X86/nosse-error1.ll | 2 +- test/CodeGen/X86/nosse-error2.ll | 2 +- test/FileCheck/check-not-diaginfo.txt | 2 +- test/MC/AArch64/elf-objdump.s | 2 +- test/MC/AArch64/gicv3-regs-diagnostics.s | 2 +- test/MC/AArch64/trace-regs-diagnostics.s | 2 +- test/MC/ARM/arm-thumb-cpus.s | 8 ++++---- test/MC/ARM/arm-thumb-trustzone.s | 2 +- test/MC/ARM/arm-trustzone.s | 2 +- test/MC/ARM/eh-directive-fnend-diagnostics.s | 2 +- test/MC/ARM/eh-directive-fnstart-diagnostics.s | 2 +- test/MC/ARM/invalid-hint-arm.s | 2 +- test/MC/ARM/invalid-hint-thumb.s | 2 +- test/MC/AsmParser/align_invalid.s | 4 ++-- test/MC/AsmParser/directive_align.s | 2 +- test/MC/AsmParser/macros-darwin.s | 2 +- test/MC/X86/AlignedBundling/align-mode-argument-error.s | 2 +- .../MC/X86/AlignedBundling/bundle-group-too-large-error.s | 2 +- test/MC/X86/AlignedBundling/bundle-lock-option-error.s | 2 +- .../X86/AlignedBundling/lock-without-bundle-mode-error.s | 2 +- test/MC/X86/AlignedBundling/switch-section-locked-error.s | 2 +- test/MC/X86/AlignedBundling/unlock-without-lock-error.s | 2 +- 26 files changed, 30 insertions(+), 30 deletions(-) diff --git a/test/CodeGen/ARM/2012-09-25-InlineAsmScalarToVectorConv.ll b/test/CodeGen/ARM/2012-09-25-InlineAsmScalarToVectorConv.ll index 75766099a22..38624e0641f 100644 --- a/test/CodeGen/ARM/2012-09-25-InlineAsmScalarToVectorConv.ll +++ b/test/CodeGen/ARM/2012-09-25-InlineAsmScalarToVectorConv.ll @@ -1,4 +1,4 @@ -; RUN: llc < %s -march=arm -mcpu=cortex-a8 2>&1 | FileCheck %s +; RUN: not llc < %s -march=arm -mcpu=cortex-a8 2>&1 | FileCheck %s ; Check for error message: ; CHECK: non-trivial scalar-to-vector conversion, possible invalid constraint for vector type diff --git a/test/CodeGen/ARM/2012-09-25-InlineAsmScalarToVectorConv2.ll b/test/CodeGen/ARM/2012-09-25-InlineAsmScalarToVectorConv2.ll index 6fa1391474b..7ba693d6df4 100644 --- a/test/CodeGen/ARM/2012-09-25-InlineAsmScalarToVectorConv2.ll +++ b/test/CodeGen/ARM/2012-09-25-InlineAsmScalarToVectorConv2.ll @@ -1,4 +1,4 @@ -; RUN: llc < %s -march=arm -mcpu=cortex-a8 2>&1 | FileCheck %s +; RUN: not llc < %s -march=arm -mcpu=cortex-a8 2>&1 | FileCheck %s ; Check for error message: ; CHECK: scalar-to-vector conversion failed, possible invalid constraint for vector type diff --git a/test/CodeGen/ARM/indirect-reg-input.ll b/test/CodeGen/ARM/indirect-reg-input.ll index 86728fa6193..b936455975c 100644 --- a/test/CodeGen/ARM/indirect-reg-input.ll +++ b/test/CodeGen/ARM/indirect-reg-input.ll @@ -1,4 +1,4 @@ -; RUN: llc < %s -march=arm -mcpu=cortex-a8 2>&1 | FileCheck %s +; RUN: not llc < %s -march=arm -mcpu=cortex-a8 2>&1 | FileCheck %s ; Check for error message: ; CHECK: error: inline asm not supported yet: don't know how to handle tied indirect register inputs diff --git a/test/CodeGen/R600/vertex-fetch-encoding.ll b/test/CodeGen/R600/vertex-fetch-encoding.ll index 7ea7a5c079c..d892229f49d 100644 --- a/test/CodeGen/R600/vertex-fetch-encoding.ll +++ b/test/CodeGen/R600/vertex-fetch-encoding.ll @@ -1,5 +1,5 @@ ; RUN: llc < %s -march=r600 -show-mc-encoding -mcpu=barts | FileCheck --check-prefix=NI-CHECK %s -; RUN: llc < %s -march=r600 -show-mc-encoding -mcpu=cayman | FileCheck --check-prefix=CM-CHECK %s +; RUN: not llc < %s -march=r600 -show-mc-encoding -mcpu=cayman | FileCheck --check-prefix=CM-CHECK %s ; NI-CHECK: @vtx_fetch32 ; NI-CHECK: VTX_READ_32 T[[GPR:[0-9]]].X, T[[GPR]].X, 0 ; encoding: [0x40,0x01,0x0[[GPR]],0x10,0x0[[GPR]],0xf0,0x5f,0x13,0x00,0x00,0x08,0x00 diff --git a/test/CodeGen/X86/nosse-error1.ll b/test/CodeGen/X86/nosse-error1.ll index cddff3f2753..291379eeaec 100644 --- a/test/CodeGen/X86/nosse-error1.ll +++ b/test/CodeGen/X86/nosse-error1.ll @@ -1,4 +1,4 @@ -; RUN: llc < %s -march=x86-64 -mattr=-sse 2>&1 | FileCheck --check-prefix NOSSE %s +; RUN: not llc < %s -march=x86-64 -mattr=-sse 2>&1 | FileCheck --check-prefix NOSSE %s ; RUN: llc < %s -march=x86-64 | FileCheck %s ; NOSSE: {{SSE register return with SSE disabled}} diff --git a/test/CodeGen/X86/nosse-error2.ll b/test/CodeGen/X86/nosse-error2.ll index fc9ba010e19..a7cee2dd821 100644 --- a/test/CodeGen/X86/nosse-error2.ll +++ b/test/CodeGen/X86/nosse-error2.ll @@ -1,4 +1,4 @@ -; RUN: llc < %s -march=x86 -mcpu=i686 -mattr=-sse 2>&1 | FileCheck --check-prefix NOSSE %s +; RUN: not llc < %s -march=x86 -mcpu=i686 -mattr=-sse 2>&1 | FileCheck --check-prefix NOSSE %s ; RUN: llc < %s -march=x86 -mcpu=i686 -mattr=+sse | FileCheck %s ; NOSSE: {{SSE register return with SSE disabled}} diff --git a/test/FileCheck/check-not-diaginfo.txt b/test/FileCheck/check-not-diaginfo.txt index a4c3ca88401..44a46a3d25d 100644 --- a/test/FileCheck/check-not-diaginfo.txt +++ b/test/FileCheck/check-not-diaginfo.txt @@ -1,4 +1,4 @@ -; RUN: FileCheck -input-file %s %s 2>&1 | FileCheck -check-prefix DIAG %s +; RUN: not FileCheck -input-file %s %s 2>&1 | FileCheck -check-prefix DIAG %s CHECK-NOT: test diff --git a/test/MC/AArch64/elf-objdump.s b/test/MC/AArch64/elf-objdump.s index 51d444a36de..3b3aa65819d 100644 --- a/test/MC/AArch64/elf-objdump.s +++ b/test/MC/AArch64/elf-objdump.s @@ -1,5 +1,5 @@ // 64 bit little endian -// RUN: llvm-mc -filetype=obj -triple aarch64-none-linux-gnu %s -o - | llvm-objdump -d +// RUN: llvm-mc -filetype=obj -triple aarch64-none-linux-gnu %s -o - | llvm-objdump -d - // We just want to see if llvm-objdump works at all. // CHECK: .text diff --git a/test/MC/AArch64/gicv3-regs-diagnostics.s b/test/MC/AArch64/gicv3-regs-diagnostics.s index e891adbbb37..bc005b1d530 100644 --- a/test/MC/AArch64/gicv3-regs-diagnostics.s +++ b/test/MC/AArch64/gicv3-regs-diagnostics.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -triple aarch64-none-linux-gnu < %s 2>&1 | FileCheck %s +// RUN: not llvm-mc -triple aarch64-none-linux-gnu < %s 2>&1 | FileCheck %s // Write-only mrs x10, icc_eoir1_el1 diff --git a/test/MC/AArch64/trace-regs-diagnostics.s b/test/MC/AArch64/trace-regs-diagnostics.s index 82ec7c0c745..41331e7703c 100644 --- a/test/MC/AArch64/trace-regs-diagnostics.s +++ b/test/MC/AArch64/trace-regs-diagnostics.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -triple aarch64-none-linux-gnu < %s 2>&1 | FileCheck %s +// RUN: not llvm-mc -triple aarch64-none-linux-gnu < %s 2>&1 | FileCheck %s // Write-only mrs x12, trcoslar mrs x10, trclar diff --git a/test/MC/ARM/arm-thumb-cpus.s b/test/MC/ARM/arm-thumb-cpus.s index c15e8078186..24be989db33 100644 --- a/test/MC/ARM/arm-thumb-cpus.s +++ b/test/MC/ARM/arm-thumb-cpus.s @@ -1,9 +1,9 @@ -@ RUN: llvm-mc -show-encoding -arch=arm < %s 2>&1 | FileCheck %s --check-prefix=CHECK-ARM-ONLY +@ RUN: not llvm-mc -show-encoding -arch=arm < %s 2>&1 | FileCheck %s --check-prefix=CHECK-ARM-ONLY @ RUN: llvm-mc -show-encoding -triple=armv4t < %s 2>&1| FileCheck %s --check-prefix=CHECK-ARM-THUMB @ RUN: llvm-mc -show-encoding -arch=arm -mcpu=cortex-a15 < %s 2>&1| FileCheck %s --check-prefix=CHECK-ARM-THUMB -@ RUN: llvm-mc -show-encoding -arch=arm -mcpu=cortex-m3 < %s 2>&1 | FileCheck %s --check-prefix=CHECK-THUMB-ONLY -@ RUN: llvm-mc -show-encoding -triple=armv7m < %s 2>&1 | FileCheck %s --check-prefix=CHECK-THUMB-ONLY -@ RUN: llvm-mc -show-encoding -triple=armv6m < %s 2>&1 | FileCheck %s --check-prefix=CHECK-THUMB-ONLY +@ RUN: not llvm-mc -show-encoding -arch=arm -mcpu=cortex-m3 < %s 2>&1 | FileCheck %s --check-prefix=CHECK-THUMB-ONLY +@ RUN: not llvm-mc -show-encoding -triple=armv7m < %s 2>&1 | FileCheck %s --check-prefix=CHECK-THUMB-ONLY +@ RUN: not llvm-mc -show-encoding -triple=armv6m < %s 2>&1 | FileCheck %s --check-prefix=CHECK-THUMB-ONLY @ Make sure correct diagnostics are given for CPUs without support for @ one or other of the execution states. diff --git a/test/MC/ARM/arm-thumb-trustzone.s b/test/MC/ARM/arm-thumb-trustzone.s index a080b3efac8..7755a3c8e69 100644 --- a/test/MC/ARM/arm-thumb-trustzone.s +++ b/test/MC/ARM/arm-thumb-trustzone.s @@ -1,4 +1,4 @@ -@ RUN: llvm-mc -triple=thumbv7-apple-darwin -mcpu=cortex-a8 -show-encoding -mattr=-trustzone < %s | FileCheck %s -check-prefix=NOTZ +@ RUN: not llvm-mc -triple=thumbv7-apple-darwin -mcpu=cortex-a8 -show-encoding -mattr=-trustzone < %s | FileCheck %s -check-prefix=NOTZ @ RUN: llvm-mc -triple=thumbv7-apple-darwin -mcpu=cortex-a8 -show-encoding -mattr=trustzone < %s | FileCheck %s -check-prefix=TZ .syntax unified diff --git a/test/MC/ARM/arm-trustzone.s b/test/MC/ARM/arm-trustzone.s index 69157f60dc0..72bac48e84e 100644 --- a/test/MC/ARM/arm-trustzone.s +++ b/test/MC/ARM/arm-trustzone.s @@ -1,4 +1,4 @@ -@ RUN: llvm-mc -triple=armv7-apple-darwin -mcpu=cortex-a8 -show-encoding -mattr=-trustzone < %s | FileCheck %s -check-prefix=NOTZ +@ RUN: not llvm-mc -triple=armv7-apple-darwin -mcpu=cortex-a8 -show-encoding -mattr=-trustzone < %s | FileCheck %s -check-prefix=NOTZ @ RUN: llvm-mc -triple=armv7-apple-darwin -mcpu=cortex-a8 -show-encoding -mattr=trustzone < %s | FileCheck %s -check-prefix=TZ .syntax unified diff --git a/test/MC/ARM/eh-directive-fnend-diagnostics.s b/test/MC/ARM/eh-directive-fnend-diagnostics.s index a5e4d3bf5b2..99161eec41e 100644 --- a/test/MC/ARM/eh-directive-fnend-diagnostics.s +++ b/test/MC/ARM/eh-directive-fnend-diagnostics.s @@ -1,4 +1,4 @@ -@ RUN: llvm-mc %s -triple=armv7-unknown-linux-gnueabi \ +@ RUN: not llvm-mc %s -triple=armv7-unknown-linux-gnueabi \ @ RUN: -filetype=obj -o /dev/null 2>&1 | FileCheck %s @ Check the diagnostics for mismatched .fnend directive diff --git a/test/MC/ARM/eh-directive-fnstart-diagnostics.s b/test/MC/ARM/eh-directive-fnstart-diagnostics.s index 29bcb0dd9c0..75ddd9faebc 100644 --- a/test/MC/ARM/eh-directive-fnstart-diagnostics.s +++ b/test/MC/ARM/eh-directive-fnstart-diagnostics.s @@ -1,4 +1,4 @@ -@ RUN: llvm-mc %s -triple=armv7-unknown-linux-gnueabi \ +@ RUN: not llvm-mc %s -triple=armv7-unknown-linux-gnueabi \ @ RUN: -filetype=obj -o /dev/null 2>&1 | FileCheck %s @ Check the diagnostics for the mismatched .fnstart directives. diff --git a/test/MC/ARM/invalid-hint-arm.s b/test/MC/ARM/invalid-hint-arm.s index e0cd97a1902..3608e95131d 100644 --- a/test/MC/ARM/invalid-hint-arm.s +++ b/test/MC/ARM/invalid-hint-arm.s @@ -1,4 +1,4 @@ -@ RUN: llvm-mc -triple=armv7-apple-darwin -mcpu=cortex-a8 < %s 2>&1 | FileCheck %s +@ RUN: not llvm-mc -triple=armv7-apple-darwin -mcpu=cortex-a8 < %s 2>&1 | FileCheck %s hint #5 hint #100 diff --git a/test/MC/ARM/invalid-hint-thumb.s b/test/MC/ARM/invalid-hint-thumb.s index fd0a761da27..bde987c2e01 100644 --- a/test/MC/ARM/invalid-hint-thumb.s +++ b/test/MC/ARM/invalid-hint-thumb.s @@ -1,4 +1,4 @@ -@ RUN: llvm-mc -triple=thumbv7-apple-darwin -mcpu=cortex-a8 < %s 2>&1 | FileCheck %s +@ RUN: not llvm-mc -triple=thumbv7-apple-darwin -mcpu=cortex-a8 < %s 2>&1 | FileCheck %s hint #5 hint.w #5 diff --git a/test/MC/AsmParser/align_invalid.s b/test/MC/AsmParser/align_invalid.s index 0d06d9423ce..7ffbed42635 100644 --- a/test/MC/AsmParser/align_invalid.s +++ b/test/MC/AsmParser/align_invalid.s @@ -1,5 +1,5 @@ -# RUN: llvm-mc -triple i386-linux-gnu < %s 2>&1 | FileCheck %s -check-prefix=ELF -# RUN: llvm-mc -triple i386-apple-darwin < %s 2>&1 | FileCheck %s -check-prefix=DARWIN +# RUN: not llvm-mc -triple i386-linux-gnu < %s 2>&1 | FileCheck %s -check-prefix=ELF +# RUN: not llvm-mc -triple i386-apple-darwin < %s 2>&1 | FileCheck %s -check-prefix=DARWIN .align 3 # ELF: error: alignment must be a power of 2 diff --git a/test/MC/AsmParser/directive_align.s b/test/MC/AsmParser/directive_align.s index 15eb430bdaf..7ce28559d95 100644 --- a/test/MC/AsmParser/directive_align.s +++ b/test/MC/AsmParser/directive_align.s @@ -1,4 +1,4 @@ -# RUN: llvm-mc -triple i386-apple-darwin9 %s | FileCheck %s +# RUN: not llvm-mc -triple i386-apple-darwin9 %s | FileCheck %s # CHECK: TEST0: # CHECK: .align 1 diff --git a/test/MC/AsmParser/macros-darwin.s b/test/MC/AsmParser/macros-darwin.s index 31b9edb3781..95965d3fe1c 100644 --- a/test/MC/AsmParser/macros-darwin.s +++ b/test/MC/AsmParser/macros-darwin.s @@ -1,4 +1,4 @@ -// RUN: not llvm-mc -triple i386-apple-darwin10 %s 2> %t.err | FileCheck %s +// RUN: llvm-mc -triple i386-apple-darwin10 %s | FileCheck %s .macro test1 .globl "$0 $1 $2 $$3 $n" diff --git a/test/MC/X86/AlignedBundling/align-mode-argument-error.s b/test/MC/X86/AlignedBundling/align-mode-argument-error.s index b4ce0a9d103..37c74c86f75 100644 --- a/test/MC/X86/AlignedBundling/align-mode-argument-error.s +++ b/test/MC/X86/AlignedBundling/align-mode-argument-error.s @@ -1,4 +1,4 @@ -# RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - 2>&1 | FileCheck %s +# RUN: not llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - 2>&1 | FileCheck %s # Missing .bundle_align_mode argument # CHECK: error: unknown token diff --git a/test/MC/X86/AlignedBundling/bundle-group-too-large-error.s b/test/MC/X86/AlignedBundling/bundle-group-too-large-error.s index 722bf7b9227..a9a78a79569 100644 --- a/test/MC/X86/AlignedBundling/bundle-group-too-large-error.s +++ b/test/MC/X86/AlignedBundling/bundle-group-too-large-error.s @@ -1,4 +1,4 @@ -# RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - 2>&1 | FileCheck %s +# RUN: not llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - 2>&1 | FileCheck %s # CHECK: ERROR: Fragment can't be larger than a bundle size diff --git a/test/MC/X86/AlignedBundling/bundle-lock-option-error.s b/test/MC/X86/AlignedBundling/bundle-lock-option-error.s index 82c5d7cf0e7..b0b595f4812 100644 --- a/test/MC/X86/AlignedBundling/bundle-lock-option-error.s +++ b/test/MC/X86/AlignedBundling/bundle-lock-option-error.s @@ -1,4 +1,4 @@ -# RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - 2>&1 | FileCheck %s +# RUN: not llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - 2>&1 | FileCheck %s # Missing .bundle_align_mode argument # CHECK: error: invalid option diff --git a/test/MC/X86/AlignedBundling/lock-without-bundle-mode-error.s b/test/MC/X86/AlignedBundling/lock-without-bundle-mode-error.s index d45a9b4a5df..2f716544b15 100644 --- a/test/MC/X86/AlignedBundling/lock-without-bundle-mode-error.s +++ b/test/MC/X86/AlignedBundling/lock-without-bundle-mode-error.s @@ -1,4 +1,4 @@ -# RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - 2>&1 | FileCheck %s +# RUN: not llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - 2>&1 | FileCheck %s # .bundle_lock can't come without a .bundle_align_mode before it diff --git a/test/MC/X86/AlignedBundling/switch-section-locked-error.s b/test/MC/X86/AlignedBundling/switch-section-locked-error.s index af41e192125..a5812fd28ab 100644 --- a/test/MC/X86/AlignedBundling/switch-section-locked-error.s +++ b/test/MC/X86/AlignedBundling/switch-section-locked-error.s @@ -1,4 +1,4 @@ -# RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - 2>&1 | FileCheck %s +# RUN: not llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - 2>&1 | FileCheck %s # This test invokes .bundle_lock and then switches to a different section # w/o the appropriate unlock. diff --git a/test/MC/X86/AlignedBundling/unlock-without-lock-error.s b/test/MC/X86/AlignedBundling/unlock-without-lock-error.s index 699511d4e6b..a73f19ea483 100644 --- a/test/MC/X86/AlignedBundling/unlock-without-lock-error.s +++ b/test/MC/X86/AlignedBundling/unlock-without-lock-error.s @@ -1,4 +1,4 @@ -# RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - 2>&1 | FileCheck %s +# RUN: not llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - 2>&1 | FileCheck %s # .bundle_unlock can't come without a .bundle_lock before it -- 2.34.1