Refactor most of the fixed-point tests.
authorBevin Hansson <bevin.hansson@ericsson.com>
Thu, 20 Aug 2020 08:24:03 +0000 (10:24 +0200)
committerBevin Hansson <bevin.hansson@ericsson.com>
Thu, 20 Aug 2020 08:30:05 +0000 (10:30 +0200)
commit44ebc2c8ebc8cdbd4f45e50a529faf8a990732e5
tree719b67ff781e4ee01c5f9ef8ad4dfae3f104bef0
parentf03b10f57ebbd10ff37e819ecd86f9e8790be638
Refactor most of the fixed-point tests.

The tests were not written with update_cc_test_checks
in mind, which make them difficult to update. Fix this.

Also, some of the consteval tests were outright broken,
since the CHECK lines were wrong.

Other than this, the semantics of the tests are preserved.
clang/test/Frontend/fixed_point_add.c
clang/test/Frontend/fixed_point_add_const.c [new file with mode: 0644]
clang/test/Frontend/fixed_point_compound.c
clang/test/Frontend/fixed_point_div.c
clang/test/Frontend/fixed_point_div_const.c [new file with mode: 0644]
clang/test/Frontend/fixed_point_mul.c
clang/test/Frontend/fixed_point_mul_const.c [new file with mode: 0644]
clang/test/Frontend/fixed_point_sub.c
clang/test/Frontend/fixed_point_sub_const.c [new file with mode: 0644]
clang/test/Frontend/fixed_point_unary.c