llvm.org GIT mirror llvm / 20ef343
Fix test cases that were previously using grep to use FileCheck git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132237 91177308-0d34-0410-b5e6-96231b3b80d8 Chad Rosier 9 years ago
12 changed file(s) with 56 addition(s) and 37 deletion(s). Raw diff Collapse all Expand all
0 ; This test ensures that we get a bitcast constant expression in and out,
11 ; not a sitofp constant expression.
2 ; RUN: llvm-as < %s | llvm-dis | \
3 ; RUN: grep {bitcast (}
2 ; RUN: llvm-as < %s | llvm-dis | FileCheck %s
3 ; CHECK: bitcast (
44
55 @G = external global i32
66
0 ; This isn't really an assembly file. It just runs test on bitcode to ensure
11 ; it is auto-upgraded.
2 ; RUN: llvm-dis < %s.bc | not grep {i32 @\\.llvm\\.eh}
2 ; RUN: llvm-dis < %s.bc | FileCheck %s
3 ; CHECK-NOT: {i32 @\\.llvm\\.eh}
0 ; This isn't really an assembly file. It just runs test on bitcode to ensure
11 ; it is auto-upgraded.
2 ; RUN: llvm-dis < %s.bc | not grep {i32 @llvm\\.ct}
3 ; RUN: llvm-dis < %s.bc | \
4 ; RUN: not grep {llvm\\.part\\.set\\.i\[0-9\]*\\.i\[0-9\]*\\.i\[0-9\]*}
5 ; RUN: llvm-dis < %s.bc | \
6 ; RUN: not grep {llvm\\.part\\.select\\.i\[0-9\]*\\.i\[0-9\]*}
7 ; RUN: llvm-dis < %s.bc | \
8 ; RUN: not grep {llvm\\.bswap\\.i\[0-9\]*\\.i\[0-9\]*}
2 ; RUN: llvm-dis < %s.bc | FileCheck %s
3 ; CHECK-NOT: {i32 @llvm\\.ct}
4 ; CHECK-NOT: {llvm\\.part\\.set\\.i\[0-9\]*\\.i\[0-9\]*\\.i\[0-9\]*}
5 ; CHECK-NOT: {llvm\\.part\\.select\\.i\[0-9\]*\\.i\[0-9\]*}
6 ; CHECK-NOT: {llvm\\.bswap\\.i\[0-9\]*\\.i\[0-9\]*}
97
None ; RUN: llvm-dis < %s.bc | not grep {i32 @llvm\\.loadl.pd}
1 ; RUN: llvm-dis < %s.bc | grep shufflevector
0 ; RUN: llvm-dis < %s.bc | FileCheck %s
1 ; CHECK-NOT: {i32 @llvm\\.loadl.pd}
2 ; CHECK: shufflevector
None ; RUN: llvm-dis < %s.bc | not grep {i32 @llvm\\.movl.dq}
1 ; RUN: llvm-dis < %s.bc | grep shufflevector
0 ; RUN: llvm-dis < %s.bc | FileCheck %s
1 ; CHECK-NOT: {i32 @llvm\\.movl.dq}
2 ; CHECK: shufflevector
None ; RUN: llvm-dis < %s.bc | not grep {i32 @llvm\\.movs.d}
1 ; RUN: llvm-dis < %s.bc | grep shufflevector
0 ; RUN: llvm-dis < %s.bc | FileCheck %s
1 ; CHECK-NOT: {i32 @llvm\\.movs.d}
2 ; CHECK: shufflevector
None ; RUN: llvm-dis < %s.bc | not grep {i32 @llvm\\.punpckh.qdq}
1 ; RUN: llvm-dis < %s.bc | not grep {i32 @llvm\\.punpckl.qdq}
2 ; RUN: llvm-dis < %s.bc | grep shufflevector
0 ; RUN: llvm-dis < %s.bc | FileCheck %s
1 ; CHECK-NOT: {i32 @llvm\\.punpckh.qdq}
2 ; CHECK-NOT: {i32 @llvm\\.punpckl.qdq}
3 ; CHECK: shufflevector
None ; RUN: llvm-dis < %s.bc | not grep {i32 @llvm\\.shuf.pd}
1 ; RUN: llvm-dis < %s.bc | grep shufflevector
0 ; RUN: llvm-dis < %s.bc | FileCheck %s
1 ; CHECK-NOT: {i32 @llvm\\.shuf.pd}
2 ; CHECK: shufflevector
None ; RUN: llvm-dis < %s.bc | not grep {i32 @llvm\\.unpckh.pd}
1 ; RUN: llvm-dis < %s.bc | not grep {i32 @llvm\\.unpckl.pd}
2 ; RUN: llvm-dis < %s.bc | grep shufflevector
0 ; RUN: llvm-dis < %s.bc | FileCheck %s
1 ; CHECK-NOT: {i32 @llvm\\.unpckh.pd}
2 ; CHECK-NOT: {i32 @llvm\\.unpckl.pd}
3 ; CHECK: shufflevector
None ; RUN: llvm-dis < %s.bc | not grep {i32 @llvm\\.pmulld}
1 ; RUN: llvm-dis < %s.bc | grep mul
0 ; RUN: llvm-dis < %s.bc | FileCheck %s
1 ; CHECK-NOT: {i32 @llvm\\.pmulld}
2 ; CHECK: mul
22 ;
33 ; Rdar: 9472944
44 ;
5 ; RUN: llvm-dis < %s.bc | not grep {i32 @llvm.x86.sse42.crc32.8(}
6 ; RUN: llvm-dis < %s.bc | grep {i32 @llvm.x86.sse42.crc32.32.8(}
7 ; RUN: llvm-dis < %s.bc | not grep {i32 @llvm.x86.sse42.crc32.16(}
8 ; RUN: llvm-dis < %s.bc | grep {i32 @llvm.x86.sse42.crc32.32.16(}
9 ; RUN: llvm-dis < %s.bc | not grep {i32 @llvm.x86.sse42.crc32.32(}
10 ; RUN: llvm-dis < %s.bc | grep {i32 @llvm.x86.sse42.crc32.32.32(}
11 ; RUN: llvm-dis < %s.bc | not grep {i64 @llvm.x86.sse42.crc64.8(}
12 ; RUN: llvm-dis < %s.bc | grep {i64 @llvm.x86.sse42.crc32.64.8(}
13 ; RUN: llvm-dis < %s.bc | not grep {i64 @llvm.x86.sse42.crc64.64(}
14 ; RUN: llvm-dis < %s.bc | grep {i64 @llvm.x86.sse42.crc32.64.64(}
5 ; RUN: llvm-dis < %s.bc | FileCheck %s
156
7 ; crc32.8 should upgrade to crc32.32.8
8 ; CHECK: i32 @llvm.x86.sse42.crc32.32.8(
9 ; CHECK-NOT: i32 @llvm.x86.sse42.crc32.8(
10
11 ; crc32.16 should upgrade to crc32.32.16
12 ; CHECK: i32 @llvm.x86.sse42.crc32.32.16(
13 ; CHECK-NOT: i32 @llvm.x86.sse42.crc32.16(
14
15 ; crc32.32 should upgrade to crc32.32.32
16 ; CHECK: i32 @llvm.x86.sse42.crc32.32.32(
17 ; CHECK-NOT: i32 @llvm.x86.sse42.crc32.32(
18
19 ; crc64.8 should upgrade to crc32.64.8
20 ; CHECK: i64 @llvm.x86.sse42.crc32.64.8(
21 ; CHECK-NOT: i64 @llvm.x86.sse42.crc64.8(
22
23 ; crc64.64 should upgrade to crc32.64.64
24 ; CHECK: i64 @llvm.x86.sse42.crc32.64.64(
25 ; CHECK-NOT: i64 @llvm.x86.sse42.crc64.64(
26
27
None ; RUN: llvm-dis < %s.bc | not grep {@llvm\\.palign}
0 ; RUN: llvm-dis < %s.bc | FileCheck %s
1 ; CHECK-NOT: {@llvm\\.palign}