sim: tests: get common tests working again
authorMike Frysinger <vapier@gentoo.org>
Sat, 9 Jan 2021 22:57:48 +0000 (17:57 -0500)
committerMike Frysinger <vapier@gentoo.org>
Mon, 11 Jan 2021 23:30:06 +0000 (18:30 -0500)
commit254c3783fee9d1b245d1b4b10b72e0c9314f3ff6
tree9fc99a67370a0c9df56eacbdb63c0bfab04c1ebe
parentc6185dce03deb07b4c824d04969ab88abaf63460
sim: tests: get common tests working again

These were written with 32-bit host assumptions baked into it.
Simplify the printf formats to use ll length modifier as it's
in C11 rather than trying to manually break it up into two,
and cleanup some of the casts to stop assuming sizeof(long) is
the same as sizeof(int).

We also have to add a few more includes for the various funcs
used in here.

The tests aren't compiled automatically still.  We can figure
that out later with more work.
sim/testsuite/ChangeLog
sim/testsuite/common/alu-tst.c
sim/testsuite/common/bits-gen.c
sim/testsuite/common/bits-tst.c