artiq/artiq/test/lit/integration
David Nadlinger dc7a642b26 test/lit: Make abs() integration test slightly more interesting
I had accidentally not included this local diff in the PR that was
merged as commit cdaf554736.

Doesn't include tests for any of the interesting edge cases yet
(nans, infinities, signed zero, int.min), some of which might be
handled differently than by the host Python. In particular, the
select condition should logically use copysign(arg, 1) for the
comparison (i.e., always clear the sign bit), but currently the
chance of anyone running FP-heavy algorithms where this would
matter on the core device is close to zero [1].

[1] Sign of your choice.
2019-04-14 04:12:40 +01:00
..
abs.py test/lit: Make abs() integration test slightly more interesting 2019-04-14 04:12:40 +01:00
arithmetics.py compiler: implement ~ operator (fix #836). 2017-10-01 19:33:18 +00:00
array.py compiler: correct semantics of integer % operator (#830). 2017-10-01 18:32:57 +00:00
attribute.py lit-test: move to artiq/test 2016-01-18 15:28:24 -07:00
bool.py lit-test: move to artiq/test 2016-01-18 15:28:24 -07:00
builtin.py compiler: unbreak casts to int32/int64. 2016-11-21 14:20:28 +00:00
bytes.py compiler: add support for concatenating bytes values (#714). 2017-06-09 07:10:48 +00:00
class.py lit-test: move to artiq/test 2016-01-18 15:28:24 -07:00
compare.py lit-test: move to artiq/test 2016-01-18 15:28:24 -07:00
finally.py lit-test: move to artiq/test 2016-01-18 15:28:24 -07:00
for.py compiler: Fix break/continue targets in loop else blocks 2016-11-05 02:35:01 +00:00
function.py lit-test: move to artiq/test 2016-01-18 15:28:24 -07:00
if.py compiler: coerce `while` condition to bool. 2017-07-01 18:59:07 +00:00
instance.py lit-test: move to artiq/test 2016-01-18 15:28:24 -07:00
lambda.py lit-test: move to artiq/test 2016-01-18 15:28:24 -07:00
list.py compiler: Fix comparison of nested lists 2019-03-31 17:10:27 +01:00
locals.py lit-test: move to artiq/test 2016-01-18 15:28:24 -07:00
minmax.py compiler: implement min()/max() as builtins. 2016-06-22 01:09:41 +00:00
print.py compiler: add support for printing of bytearray values (#714). 2017-06-09 07:15:25 +00:00
raise.py compiler: support short form of raise. 2016-05-10 01:41:40 +00:00
str.py Commit missing part of b4e3c30d. 2018-04-20 15:27:27 +00:00
subscript.py compiler: add support for bytearray type (#714). 2017-06-09 07:15:24 +00:00
tuple.py compiler: Fix comparison of tuples of lists 2019-03-31 17:10:27 +01:00
while.py compiler: coerce `while` condition to bool. 2017-07-01 18:59:07 +00:00
with.py lit-test: move to artiq/test 2016-01-18 15:28:24 -07:00