OSDN Git Service

Subzero: Crosstest test_arith properly tests i8/i16.
authorJim Stichnoth <stichnot@chromium.org>
Tue, 31 May 2016 19:21:51 +0000 (12:21 -0700)
committerJim Stichnoth <stichnot@chromium.org>
Tue, 31 May 2016 19:21:51 +0000 (12:21 -0700)
commit7dbe802225fc1ad5fa191a20ea8b0de7c5bafef6
tree64566c18a058ebfcbcb984aa8ea9b63d8bec0093
parentd11d921ed427da82b1ea4f334d136aa10be3cbd3
Subzero: Crosstest test_arith properly tests i8/i16.

The problem is that because of C++ integral promotion rules, many of the i8 and i16 arithmetic tests were actually being performed as i32 operations.  Thus we weren't actually testing everything we meant to test.

The fix is to have a python script auto-generate the relevant tests with proper typing.

BUG= none
R=eholk@chromium.org, jpp@chromium.org, kschimpf@google.com

Review URL: https://codereview.chromium.org/2013863002 .
Makefile.standalone
crosstest/crosstest.cfg
crosstest/test_arith.cpp
crosstest/test_arith_ll.ll [new file with mode: 0644]
pydir/gen_test_arith_ll.py [new file with mode: 0644]