llvm-project/llvm/test/FileCheck
Thomas Preud'homme 23ac16cf9b FileCheck [10/12]: Add support for signed numeric values
Summary:
This patch is part of a patch series to add support for FileCheck
numeric expressions. This specific patch adds support signed numeric
values, thus allowing negative numeric values.

As such, the patch adds a new class to represent a signed or unsigned
value and add the logic for type promotion and type conversion in
numeric expression mixing signed and unsigned values. It also adds
the %d format specifier to represent signed value.

Finally, it also adds underflow and overflow detection when performing a
binary operation.

Copyright:
    - Linaro (changes up to diff 183612 of revision D55940)
    - GraphCore (changes in later versions of revision D55940 and
                 in new revision created off D55940)

Reviewers: jhenderson, chandlerc, jdenny, probinson, grimar, arichardson

Reviewed By: jhenderson, arichardson

Subscribers: MaskRay, hiraditya, llvm-commits, probinson, dblaikie, grimar, arichardson, kristina, hfinkel, rogfer01, JonChesterfield

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D60390
2020-05-28 10:44:21 +01:00
..
comment [FileCheck] Support comment directives 2020-05-13 11:29:48 -04:00
bad-char.txt [FileCheck] Fix isalpha/isalnum calls 2020-05-14 20:24:09 -04:00
check-a-b-has-b.txt
check-b-a-has-b.txt
check-count.txt [FileCheck] Make FILECHECK_OPTS useful for its test suite 2019-11-21 18:01:12 -05:00
check-dag-multi-prefix-2.txt
check-dag-multi-prefix.txt
check-dag-not-dag.txt
check-dag-overlap-torture.txt
check-dag-overlap.txt
check-dag-substring-prefix.txt
check-dag-xfails.txt
check-dag.txt
check-empty-tag.txt [FileCheck] Make FILECHECK_OPTS useful for its test suite 2019-11-21 18:01:12 -05:00
check-empty.txt Improve error message of FileCheck when stdin is empty 2020-02-04 11:14:55 +00:00
check-empty2.txt
check-ignore-case.txt [FileCheck] Make FILECHECK_OPTS useful for its test suite 2019-11-21 18:01:12 -05:00
check-label-dag-capture.txt
check-label-dag.txt [FileCheck] Make FILECHECK_OPTS useful for its test suite 2019-11-21 18:01:12 -05:00
check-label.txt [FileCheck] Make FILECHECK_OPTS useful for its test suite 2019-11-21 18:01:12 -05:00
check-multi-prefix-label.txt
check-multiple-prefixes-mixed.txt
check-multiple-prefixes-nomatch-2.txt [FileCheck] Make FILECHECK_OPTS useful for its test suite 2019-11-21 18:01:12 -05:00
check-multiple-prefixes-nomatch.txt [FileCheck] Make FILECHECK_OPTS useful for its test suite 2019-11-21 18:01:12 -05:00
check-multiple-prefixes-substr.txt
check-not-diaginfo.txt [FileCheck] Make FILECHECK_OPTS useful for its test suite 2019-11-21 18:01:12 -05:00
check-prefixes.txt [FileCheck] Make FILECHECK_OPTS useful for its test suite 2019-11-21 18:01:12 -05:00
check-substring-multi-prefix-2.txt
check-substring-multi-prefix.txt
dos-style-eol.txt
dump-input-annotations.txt Revert "[llvm][test] Add COM: directives before colon-less non-CHECKs in comments. NFC" 2020-05-22 05:36:15 -06:00
dump-input-enable.txt [FileCheck] Given multiple -dump-input, prefer most verbose 2019-12-03 14:21:13 -05:00
empty-regex-match-at-start.txt
envvar-opts.txt [FileCheck] Make FILECHECK_OPTS useful for its test suite 2019-11-21 18:01:12 -05:00
first-character-match.txt [FileCheck] Support comment directives 2020-05-13 11:29:48 -04:00
implicit-check-not.txt [FileCheck] - Fix the false positive when -implicit-check-not is used with an unknown -check-prefix. 2020-04-16 15:00:50 +03:00
line-count-2.txt
line-count.txt FileCheck [9/12]: Add support for matching formats 2020-01-24 14:15:28 +00:00
lit.local.cfg [FileCheck] Make FILECHECK_OPTS useful for its test suite 2019-11-21 18:01:12 -05:00
match-full-lines.txt [FileCheck] Make FILECHECK_OPTS useful for its test suite 2019-11-21 18:01:12 -05:00
multiple-missing-prefixes.txt [FileCheck] Make FILECHECK_OPTS useful for its test suite 2019-11-21 18:01:12 -05:00
next-no-match.txt
no-check-file.txt [FileCheck] Make FILECHECK_OPTS useful for its test suite 2019-11-21 18:01:12 -05:00
no-multi-suffixes.txt [FileCheck] Make FILECHECK_OPTS useful for its test suite 2019-11-21 18:01:12 -05:00
numeric-defines-diagnostics.txt [FileCheck] Add missing %ProtectFileCheckOutput to FileCheck tests 2020-03-31 17:29:11 -04:00
numeric-defines.txt FileCheck [9/12]: Add support for matching formats 2020-01-24 14:15:28 +00:00
numeric-expression.txt FileCheck [10/12]: Add support for signed numeric values 2020-05-28 10:44:21 +01:00
opt-color.txt [FileCheck] Make FILECHECK_OPTS useful for its test suite 2019-11-21 18:01:12 -05:00
regex-brackets.txt
regex-no-match.txt
same.txt
separate-multi-prefix.txt
simple-var-capture.txt
string-defines-diagnostics.txt FileCheck [9/12]: Add support for matching formats 2020-01-24 14:15:28 +00:00
string-defines.txt [FileCheck] Make FILECHECK_OPTS useful for its test suite 2019-11-21 18:01:12 -05:00
two-checks-for-same-match.txt
validate-check-prefix.txt [FileCheck] Support comment directives 2020-05-13 11:29:48 -04:00
var-ref-same-line.txt
var-scope.txt Revert "[llvm][test] Add COM: directives before colon-less non-CHECKs in comments. NFC" 2020-05-22 05:36:15 -06:00
verbose.txt [FileCheck] Make FILECHECK_OPTS useful for its test suite 2019-11-21 18:01:12 -05:00