[ARM] Fix some non-portable shell syntax in r233301's tests
authorJustin Bogner <mail@justinbogner.com>
Thu, 26 Mar 2015 19:24:13 +0000 (19:24 +0000)
committerJustin Bogner <mail@justinbogner.com>
Thu, 26 Mar 2015 19:24:13 +0000 (19:24 +0000)
The "|&" operator isn't POSIX, so it can fail depending on the host's
default shell. Avoid it.

There were also a couple of places that did "2>1", but this creates a
file called "1". They clearly meant "2>&1".

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@233309 91177308-0d34-0410-b5e6-96231b3b80d8

test/MC/ARM/basic-arm-instructions-v8.1a.s
test/MC/Disassembler/ARM/thumb-v8.1a.txt

index 261e628f2bad4f665cf8e440e7cc5f3d3f6143cd..f46057b62d1803601e4e89c6b177dcdc52a88901 100644 (file)
@@ -3,8 +3,8 @@
 //RUN: not llvm-mc -triple arm-none-linux-gnu -mattr=+v8.1a -mattr=neon -show-encoding < %s 2>%t | FileCheck %s --check-prefix=CHECK-V81aARM
 //RUN: FileCheck --check-prefix=CHECK-ERROR <%t %s
 
-//RUN: not llvm-mc -triple thumb-none-linux-gnu -mattr=+v8 -mattr=neon -show-encoding < %s 2>1 |& FileCheck %s --check-prefix=CHECK-V8
-//RUN: not llvm-mc -triple arm-none-linux-gnu -mattr=+v8 -mattr=neon -show-encoding < %s 2>1 |& FileCheck %s --check-prefix=CHECK-V8
+//RUN: not llvm-mc -triple thumb-none-linux-gnu -mattr=+v8 -mattr=neon -show-encoding < %s 2>&1 | FileCheck %s --check-prefix=CHECK-V8
+//RUN: not llvm-mc -triple arm-none-linux-gnu -mattr=+v8 -mattr=neon -show-encoding < %s 2>&1 | FileCheck %s --check-prefix=CHECK-V8
 
 
   .text
index bb0f1dca1a1ad3c4d8516b2d690ab86c90e9f6ac..10fea46694eb7f112d9c2e66ce8bdb44e9e7f4ee 100644 (file)
@@ -1,5 +1,5 @@
-# RUN: llvm-mc -triple thumbv8 -mattr=+v8.1a  --disassemble < %s |& FileCheck %s --check-prefix=CHECK-V81a
-# RUN: not llvm-mc -triple thumbv8 -mattr=+v8 --disassemble < %s |& FileCheck %s --check-prefix=CHECK-V8
+# RUN: llvm-mc -triple thumbv8 -mattr=+v8.1a  --disassemble < %s 2>&1 | FileCheck %s --check-prefix=CHECK-V81a
+# RUN: not llvm-mc -triple thumbv8 -mattr=+v8 --disassemble < %s 2>&1 | FileCheck %s --check-prefix=CHECK-V8
 
 [0x11,0xff,0x12,0x0b]
 # CHECK-V81a: vqrdmlah.s16  d0, d1, d2