OSDN Git Service

[test] Improve FileCheck's numeric-expression.txt
authorThomas Preud'homme <thomasp@graphcore.ai>
Tue, 12 May 2020 22:39:45 +0000 (23:39 +0100)
committerThomas Preud'homme <thomasp@graphcore.ai>
Fri, 15 May 2020 23:09:24 +0000 (00:09 +0100)
commit0c2c6fce07e43b90e2bc44004710e10192ab3b83
tree8108b8c91b2419c6ab46c83a95fad2e18e55135c
parentb1ae13b4e9798ecfe8803513490b9034bda2e693
[test] Improve FileCheck's numeric-expression.txt

Summary:
Various improvement for FileCheck's numeric-expression.txt test:
- remove unused values in USE DEF FMT IMPL MATCH section
- replace 14 literal for 0xe and 0xE to have example of hex literals
- rename variable to be more self-descriptive
- move CHECK as comment of the values being matched to help readability
- add conversion tests
- simplify test for use of several numeric variables by using existing
  variable
- adjust position of error message check to match the alignment of the
  error message wrt. the output matched by the previous check

Reviewed By: jhenderson, jdenny

Differential Revision: https://reviews.llvm.org/D79820
llvm/test/FileCheck/numeric-expression.txt