summary refs log tree commit diff stats
path: root/tests/arithm
Commit message (Collapse)AuthorAgeFilesLines
* fix operators containing percent for VM usage (#13536)Arne Döring2020-03-111-0/+18
| | | | * fixes #13513 * merge tarithmetics in tarithm
* ungeneric unsigned ops (#12230)Jasper Jenkins2019-10-111-0/+22
| | | | | | | | | | * ungenericise unsigned ops, remove nimNewShiftOps * fix/remove tests * update t6448 * fix line info * disable on 32bit * fix different line info * add changelog entry
* Merge branch 'devel' into uint-range-checksAraq2019-09-021-1/+1
|\
| * Fix int literals and range interaction (#11197)Oscar Nihlgård2019-08-311-1/+1
| | | | | | | | | | | | | | | | * Fix int literals and range interaction * Fix test * remove float range fix; update changelog
* | squashed and merged with develArne Döring2019-08-211-0/+1
|/
* int128 on firstOrd, lastOrd and lengthOrd (#11701)Arne Döring2019-08-071-33/+6
| | | | * fixes #11847
* right shift is now by default sign preserving (#11322)Arne Döring2019-05-291-4/+4
| | | | | | | | | | | * right shift is now by default sign preserving * fix hashString and semfold * enable arithmetic shift right globally for CI * fix typo * remove xxx * use oldShiftRight as flag * apply feedback * add changelog entry
* Merge tests into a larger file (part 1 of ∞) (#9318)Miran2018-10-127-240/+173
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * merge actiontable tests * merge arithm tests * merge array tests * merge assign tests * merge bind tests * merge casestmt tests * merge closure tests * merge cnt seq tests * merge collections tests * merge concept issues tests * merge concept tests * fix failing tests * smaller outputs Use `doAssert` where possible. * fix wrong output * split `tcomputedgoto` * revert merging concepts * fix failing test
* Narrowing casts are applied after every op if needed (#8918)LemonBoy2018-09-081-4/+39
| | | | | | | This way we make sure not to end up with weird values every now and then. Fixes #7300 Fixes #8909
* Constant folding for integer casts (#8095)LemonBoy2018-08-311-0/+60
|
* fixes #6255, add `system.ashr` arithmetic right shift (#8547)andri lim2018-08-071-0/+46
|
* Fix constant folding for shl/notLemonBoy2018-06-192-0/+92
| | | | | Since the source and destination types are the same the result should be trimmed to fit.
* closes #5854Andreas Rumpf2017-09-151-0/+13
|
* Removed platform-specific arithm test cases (#6189)Fredrik Høisæther Rasch2017-08-061-11/+11
|
* fix logical right shift in VM. (#5916)Parashurama2017-06-051-0/+2
|
* fix right shift c codegen bug. (#5919)Parashurama2017-05-311-0/+18
| | | | | | * fix right shift c codegen bug. signed int must first be cast as unsigned before converting to larger integer. The C compiler will auto convert operands to the largest type.
* fixes #5216Araq2017-01-271-0/+20