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
This commit is contained in:
Chris Lattner 2009-07-08 20:50:34 +00:00
parent 648f9970ae
commit 096e7280c2
9 changed files with 47 additions and 45 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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