diff options
author | Chris Lattner <sabre@nondot.org> | 2009-07-08 20:50:34 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-07-08 20:50:34 +0000 |
commit | 096e7280c2abceb4dcc119677c31a2055bc8ccde (patch) | |
tree | db412973e0b3a18c94b6340b1ef0d461e64f2b6f | |
parent | 648f9970aeab8ba8ec2e149a4ed67145a80785ac (diff) |
Switch all the MC tests to use FileCheck.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75039 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/MC/AsmParser/assignment.s | 6 | ||||
-rw-r--r-- | test/MC/AsmParser/directive_align.s | 14 | ||||
-rw-r--r-- | test/MC/AsmParser/directive_comm.s | 8 | ||||
-rw-r--r-- | test/MC/AsmParser/directive_fill.s | 11 | ||||
-rw-r--r-- | test/MC/AsmParser/directive_org.s | 10 | ||||
-rw-r--r-- | test/MC/AsmParser/directive_set.s | 6 | ||||
-rw-r--r-- | test/MC/AsmParser/directive_space.s | 11 | ||||
-rw-r--r-- | test/MC/AsmParser/directive_symbol_attrs.s | 8 | ||||
-rw-r--r-- | test/MC/AsmParser/directive_values.s | 18 |
9 files changed, 47 insertions, 45 deletions
diff --git a/test/MC/AsmParser/assignment.s b/test/MC/AsmParser/assignment.s index 8e6ff34fe4..4e6916ad25 100644 --- a/test/MC/AsmParser/assignment.s +++ b/test/MC/AsmParser/assignment.s @@ -1,7 +1,7 @@ -# RUN: llvm-mc %s > %t +# RUN: llvm-mc %s | FileCheck %s -# RUN: grep -A 2 TEST0 %t > %t2 -# RUN: grep "a = 0" %t2 +# CHECK: TEST0: +# CHECK: a = 0 TEST0: a = 0
\ No newline at end of file diff --git a/test/MC/AsmParser/directive_align.s b/test/MC/AsmParser/directive_align.s index 5715cb3fc0..2a1723c070 100644 --- a/test/MC/AsmParser/directive_align.s +++ b/test/MC/AsmParser/directive_align.s @@ -1,16 +1,16 @@ -# RUN: llvm-mc %s > %t +# RUN: llvm-mc %s | FileCheck %s -# RUN: grep -A 2 TEST0 %t > %t2 -# RUN: grep ".p2align 1, 0" %t2 | count 1 +# CHECK: TEST0: +# CHECK: .p2align 1, 0 TEST0: .align 1 -# RUN: grep -A 2 TEST1 %t > %t2 -# RUN: grep ".p2alignl 3, 0, 2" %t2 | count 1 +# CHECK: TEST1: +# CHECK: .p2alignl 3, 0, 2 TEST1: .align32 3,,2 -# RUN: grep -A 2 TEST2 %t > %t2 -# RUN: grep ".balign 3, 10" %t2 | count 1 +# CHECK: TEST2: +# CHECK: .balign 3, 10 TEST2: .balign 3,10 diff --git a/test/MC/AsmParser/directive_comm.s b/test/MC/AsmParser/directive_comm.s index ed49374618..b074df83be 100644 --- a/test/MC/AsmParser/directive_comm.s +++ b/test/MC/AsmParser/directive_comm.s @@ -1,8 +1,8 @@ -# RUN: llvm-mc %s > %t +# RUN: llvm-mc %s | FileCheck %s -# RUN: grep -A 3 TEST0 %t > %t2 -# RUN: grep ".comm a,6,2" %t2 | count 1 -# RUN: grep ".comm b,8" %t2 | count 1 +# CHECK: TEST0: +# CHECK: .comm a,6,2 +# CHECK: .comm b,8 TEST0: .comm a, 4+2, 2 .comm b,8 diff --git a/test/MC/AsmParser/directive_fill.s b/test/MC/AsmParser/directive_fill.s index ec8bdf27c7..1a43dbc8f4 100644 --- a/test/MC/AsmParser/directive_fill.s +++ b/test/MC/AsmParser/directive_fill.s @@ -1,11 +1,12 @@ -# RUN: llvm-mc %s > %t +# RUN: llvm-mc %s | FileCheck %s -# RUN: grep -A 2 TEST0 %t > %t2 -# RUN: grep ".byte 10" %t2 | count 1 +# CHECK: TEST0: +# CHECK: .byte 10 TEST0: .fill 1, 1, 10 -# RUN: grep -A 3 TEST1 %t > %t2 -# RUN: grep ".short 3" %t2 | count 2 +# CHECK: TEST1: +# CHECK: .short 3 +# CHECK: .short 3 TEST1: .fill 2, 2, 3 diff --git a/test/MC/AsmParser/directive_org.s b/test/MC/AsmParser/directive_org.s index ac50f635e6..4de82d5ad2 100644 --- a/test/MC/AsmParser/directive_org.s +++ b/test/MC/AsmParser/directive_org.s @@ -1,11 +1,11 @@ -# RUN: llvm-mc %s > %t +# RUN: llvm-mc %s | FileCheck %s -# RUN: grep -A 2 TEST0 %t > %t2 -# RUN: grep ".org 1, 0" %t2 | count 1 +# CHECK: TEST0: +# CHECK: .org 1, 0 TEST0: .org 1 -# RUN: grep -A 2 TEST1 %t > %t2 -# RUN: grep ".org 1, 3" %t2 | count 1 +# CHECK: TEST1: +# CHECK: .org 1, 3 TEST1: .org 1, 3 diff --git a/test/MC/AsmParser/directive_set.s b/test/MC/AsmParser/directive_set.s index 51119a661c..ce2649d53b 100644 --- a/test/MC/AsmParser/directive_set.s +++ b/test/MC/AsmParser/directive_set.s @@ -1,7 +1,7 @@ -# RUN: llvm-mc %s > %t +# RUN: llvm-mc %s | FileCheck %s -# RUN: grep -A 2 TEST0 %t > %t2 -# RUN: grep ".set a, 0" %t2 +# CHECK: TEST0: +# CHECK: .set a, 0 TEST0: .set a, 0
\ No newline at end of file diff --git a/test/MC/AsmParser/directive_space.s b/test/MC/AsmParser/directive_space.s index 6159775de4..52cf7b2683 100644 --- a/test/MC/AsmParser/directive_space.s +++ b/test/MC/AsmParser/directive_space.s @@ -1,11 +1,12 @@ -# RUN: llvm-mc %s > %t +# RUN: llvm-mc %s | FileCheck %s -# RUN: grep -A 2 TEST0 %t > %t2 -# RUN: grep ".byte 0" %t2 | count 1 +# CHECK: TEST0: +# CHECK: .byte 0 TEST0: .space 1 -# RUN: grep -A 3 TEST1 %t > %t2 -# RUN: grep ".byte 3" %t2 | count 2 +# CHECK: TEST1: +# CHECK: .byte 3 +# CHECK: .byte 3 TEST1: .space 2, 3 diff --git a/test/MC/AsmParser/directive_symbol_attrs.s b/test/MC/AsmParser/directive_symbol_attrs.s index 186e967395..41d22f8fcd 100644 --- a/test/MC/AsmParser/directive_symbol_attrs.s +++ b/test/MC/AsmParser/directive_symbol_attrs.s @@ -1,7 +1,7 @@ -# RUN: llvm-mc %s > %t +# RUN: llvm-mc %s | FileCheck %s -# RUN: grep -A 3 TEST0 %t > %t2 -# RUN: grep ".globl a" %t2 | count 1 -# RUN: grep ".globl b" %t2 | count 1 +# CHECK: TEST0: +# CHECK: .globl a +# CHECK: .globl b TEST0: .globl a, b diff --git a/test/MC/AsmParser/directive_values.s b/test/MC/AsmParser/directive_values.s index 39ba068923..337bc6839d 100644 --- a/test/MC/AsmParser/directive_values.s +++ b/test/MC/AsmParser/directive_values.s @@ -1,21 +1,21 @@ -# RUN: llvm-mc %s > %t +# RUN: llvm-mc %s | FileCheck %s -# RUN: grep -A 2 TEST0 %t > %t2 -# RUN: grep ".byte 0" %t2 | count 1 +# CHECK: TEST0: +# CHECK: .byte 0 TEST0: .byte 0 -# RUN: grep -A 2 TEST1 %t > %t2 -# RUN: grep ".short 3" %t2 | count 1 +# CHECK: TEST1: +# CHECK: .short 3 TEST1: .short 3 -# RUN: grep -A 2 TEST2 %t > %t2 -# RUN: grep ".long 8" %t2 | count 1 +# CHECK: TEST2: +# CHECK: .long 8 TEST2: .long 8 -# RUN: grep -A 2 TEST3 %t > %t2 -# RUN: grep ".quad 9" %t2 | count 1 +# CHECK: TEST3: +# CHECK: .quad 9 TEST3: .quad 9 |