llvm.org GIT mirror llvm / 5fcba11
Rewrite test/Integer tests to use FileCheck instead of grep git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179047 91177308-0d34-0410-b5e6-96231b3b80d8 Eli Bendersky 6 years ago
3 changed file(s) with 7 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
0 ; RUN: llvm-as %s -o - | llvm-dis > %t1.ll
11 ; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
22 ; RUN: diff %t1.ll %t2.ll
3 ; RUN: llvm-as < %s | lli --force-interpreter=true | grep -- -255
3 ; RUN: llvm-as < %s | lli --force-interpreter=true | FileCheck %s
4 ; CHECK: -255
45
56 @ARRAY = global [ 20 x i17 ] zeroinitializer
67 @FORMAT = constant [ 4 x i8 ] c"%d\0A\00"
None ; RUN: llvm-as < %s | llvm-dis | not grep bitcast
0 ; RUN: llvm-as < %s | llvm-dis | FileCheck %s
1 ; CHECK-NOT: bitcast
12
23 define i60 @test1() {
34 ret i60 fptoui(float 0x400D9999A0000000 to i60)
0 ; RUN: llvm-as < %s | llvm-dis > %t1.ll
11 ; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
22 ; RUN: diff %t1.ll %t2.ll
3 ; RUN: not grep cast %t2.ll
4 ; RUN: grep "}>" %t2.ll
5 ; END.
3 ; RUN: FileCheck %s --input-file=%t2.ll
4 ; CHECK-NOT: cast
5 ; CHECK: }>
66
77 %struct.anon = type <{ i8, i35, i35, i35 }>
88 @foos = external global %struct.anon