[InstCombine] Signed saturation patterns
[llvm-core.git] / test / FileCheck / string-defines.txt
bloba8514741ddd8a82f5bcae85b577e88c40f50722c
1 ; Test functionality of -D option: string variables are defined to the right
2 ; value and CHECK directives using them match as expected given the value set.
4 ; String variable correctly defined to a non-empty string.
5 RUN: FileCheck -DVALUE=10 --input-file %s %s
6 RUN: not FileCheck -DVALUE=20 --input-file %s %s 2>&1 \
7 RUN:   | FileCheck %s --check-prefix ERRMSG
8 RUN: not FileCheck -DVALUE=10 --check-prefix NOT --input-file %s %s 2>&1 \
9 RUN:   | FileCheck %s --check-prefix NOT-ERRMSG
10 RUN: FileCheck -DVALUE=20 --check-prefix NOT --input-file %s %s
12 Value = 10
13 CHECK: Value = [[VALUE]]
14 NOT-NOT: Value = [[VALUE]]
16 ERRMSG: defines.txt:[[@LINE-3]]:8: error: CHECK: expected string not found in input
17 ERRMSG: defines.txt:1:1: note: scanning from here
18 ERRMSG: defines.txt:1:1: note: with "VALUE" equal to "20"
19 ERRMSG: defines.txt:[[@LINE-7]]:1: note: possible intended match here
21 NOT-ERRMSG: defines.txt:[[@LINE-7]]:10: error: {{NOT}}-NOT: excluded string found in input
22 NOT-ERRMSG: defines.txt:[[@LINE-10]]:1: note: found here
23 NOT-ERRMSG: defines.txt:[[@LINE-11]]:1: note: with "VALUE" equal to "10"
25 ; Definition of string variable to an empty string.
26 RUN: FileCheck -DVALUE= --check-prefix EMPTY --input-file %s %s 2>&1
28 Empty value = @@
29 EMPTY: Empty value = @[[VALUE]]@