Prefix failing commands with not to make clear they are expected to fail.
authorRafael Espindola <rafael.espindola@gmail.com>
Wed, 3 Jul 2013 16:41:29 +0000 (16:41 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Wed, 3 Jul 2013 16:41:29 +0000 (16:41 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185554 91177308-0d34-0410-b5e6-96231b3b80d8

26 files changed:
test/CodeGen/ARM/2012-09-25-InlineAsmScalarToVectorConv.ll
test/CodeGen/ARM/2012-09-25-InlineAsmScalarToVectorConv2.ll
test/CodeGen/ARM/indirect-reg-input.ll
test/CodeGen/R600/vertex-fetch-encoding.ll
test/CodeGen/X86/nosse-error1.ll
test/CodeGen/X86/nosse-error2.ll
test/FileCheck/check-not-diaginfo.txt
test/MC/AArch64/elf-objdump.s
test/MC/AArch64/gicv3-regs-diagnostics.s
test/MC/AArch64/trace-regs-diagnostics.s
test/MC/ARM/arm-thumb-cpus.s
test/MC/ARM/arm-thumb-trustzone.s
test/MC/ARM/arm-trustzone.s
test/MC/ARM/eh-directive-fnend-diagnostics.s
test/MC/ARM/eh-directive-fnstart-diagnostics.s
test/MC/ARM/invalid-hint-arm.s
test/MC/ARM/invalid-hint-thumb.s
test/MC/AsmParser/align_invalid.s
test/MC/AsmParser/directive_align.s
test/MC/AsmParser/macros-darwin.s
test/MC/X86/AlignedBundling/align-mode-argument-error.s
test/MC/X86/AlignedBundling/bundle-group-too-large-error.s
test/MC/X86/AlignedBundling/bundle-lock-option-error.s
test/MC/X86/AlignedBundling/lock-without-bundle-mode-error.s
test/MC/X86/AlignedBundling/switch-section-locked-error.s
test/MC/X86/AlignedBundling/unlock-without-lock-error.s

index 75766099a2200bf65ba3b6fc776337207621bd34..38624e0641f283e1c8f1b5bf66375160c2a5d99e 100644 (file)
@@ -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
index 6fa1391474bb8ff46f48dba4ddb5c8dc86ffb1a9..7ba693d6df4a7a3446ce4f58877a03f4332a2143 100644 (file)
@@ -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
index 86728fa6193414d39c9c60e4cb3520a4cc1e13df..b936455975c6a61e5e24e2e987db74c3eff9e71d 100644 (file)
@@ -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
index 7ea7a5c079cf2ae97d88d3489b4b509b42b30c4e..d892229f49d7e3ce04a68a4defbd6012e76e1775 100644 (file)
@@ -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
index cddff3f2753b9936eff58fec7bfbf52bb707e397..291379eeaec96dc54144678126d4edd04b98f2ac 100644 (file)
@@ -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}}
index fc9ba010e19dfa056b28fcc97a8dd5702456450c..a7cee2dd8211b03d71985e28c550fae2ac06740c 100644 (file)
@@ -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}}
index a4c3ca884010d6cc93462905aff45237800f5b71..44a46a3d25ddedc85f49aa1923cc8e99d3d2d64b 100644 (file)
@@ -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
 
index 51d444a36def144bc9b9f3f974e614b307a3f4dc..3b3aa65819d87597163208cf6cb5927ce79732c9 100644 (file)
@@ -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
index e891adbbb375704415c41a514366359cd449f458..bc005b1d530475b4d58ac6e83e304d005266f698 100644 (file)
@@ -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
index 82ec7c0c745d377e4815620c5e26c74494c765fd..41331e7703c8a0b8be0ef482810177a9486aef42 100644 (file)
@@ -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
index c15e807818647acda8d305e375a48599851af0f9..24be989db330fb7126d1f1ff019f6380467947d6 100644 (file)
@@ -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.
index a080b3efac88ffab521a78ca01d04a47f909eeeb..7755a3c8e69b185c3ee67e4cc18933f18de1d451 100644 (file)
@@ -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
index 69157f60dc0a79cba009d434a7c9a6a6c8192127..72bac48e84e422d56131d9e7308f43be37f2a9df 100644 (file)
@@ -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
index a5e4d3bf5b2ced1bfe09afe5cb75625c6c025bb7..99161eec41e6dae8c47ca61322f21bce6cbbfbf1 100644 (file)
@@ -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
index 29bcb0dd9c02d1e495976f2a4f5717ecadc832d5..75ddd9faebc10f16e4fe52038c03343c7ca770c2 100644 (file)
@@ -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.
index e0cd97a19028ef40507c8d326c998df16a6e688a..3608e95131d345201b7a73d33c68db04d837dd0f 100644 (file)
@@ -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
index fd0a761da27b7ab48809d4f71490b5ca1edb01e9..bde987c2e0191cd25b250c128e4ca1c975450506 100644 (file)
@@ -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
index 0d06d9423cedbb1a3f14c9023f0ad960a8326881..7ffbed42635aa61450d6f93325a7ce9fe2dd7fbf 100644 (file)
@@ -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
index 15eb430bdaf31f634cea1ada54b0eb3ff1809543..7ce28559d95178ab420ac6efce487aec2b4f8623 100644 (file)
@@ -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
index 31b9edb37818006efaa6f9d20fe45ec401af9f7e..95965d3fe1cb097fb7b6b34e54c633636131e4eb 100644 (file)
@@ -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"
index b4ce0a9d103abc5d0e6e6b79e158d9bdb4ef9aca..37c74c86f754e2015c4b04a9d2f0cbf91ca57f00 100644 (file)
@@ -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
index 722bf7b9227f58bec0fa4d8c6a620306d3139f91..a9a78a79569f5c7e070bfee33260fe5aff47d4f1 100644 (file)
@@ -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
 
index 82c5d7cf0e7b08a15a1031d476206bd642b40fa6..b0b595f4812f6693feb520295b44eefaedf91ce8 100644 (file)
@@ -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
index d45a9b4a5dfb0287dcb588f29455fe5f0c9263cb..2f716544b15421b71d19db5b894fb835b3d5b9a8 100644 (file)
@@ -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
 
index af41e19212527abae9702f8ce4b061fe1fb7bd90..a5812fd28ab123da9176cf0d59662890c0ab9933 100644 (file)
@@ -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.
index 699511d4e6b68151918b5c7e20f0f91d8967db18..a73f19ea48367ff6b04ae82e646645547d5d565e 100644 (file)
@@ -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