artiq/artiq/test/lit
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
..
codegen compiler: reject reachable implicit return if not returning TNone. 2017-04-21 18:11:14 +00:00
constant_hoisting compiler: hoist loads of kernel invariants to function entry block. 2018-05-25 02:18:13 +00:00
devirtualization fold comm device into core device 2017-05-22 15:45:45 +08:00
embedding compiler: Quote tuples as TTuple values 2019-03-31 23:40:21 +08:00
escape compiler: Fix crash in escape analysis for assigning string literals 2019-03-31 17:10:27 +01:00
exceptions transforms.artiq_ir_generator: split out finally→reraise control flow. 2016-06-22 00:57:32 +00:00
inferencer compiler: Implement abs() for scalars 2019-04-13 13:39:16 +08:00
integration test/lit: Make abs() integration test slightly more interesting 2019-04-14 04:12:40 +01:00
interleaving Rename 'with parallel' to 'with interleave' (#265). 2016-02-22 13:24:43 +00:00
iodelay compiler: print the builtin type int(width=...) as np.int... 2016-07-06 04:22:51 +00:00
local_access Rename 'with parallel' to 'with interleave' (#265). 2016-02-22 13:24:43 +00:00
local_demotion compiler: implement local variable demotion. 2018-05-19 17:05:34 +00:00
monomorphism Add missing test from d6eb2b02. 2019-02-10 07:25:53 +00:00
regression fold comm device into core device 2017-05-22 15:45:45 +08:00
time Move mu_to_seconds, seconds_to_mu to Core. 2016-11-21 05:37:30 +00:00
lit.cfg typo 2019-03-31 22:27:07 +08:00
not.py fix lit tests 2017-05-18 23:41:01 +08:00