LemonBoy
7107ec05de
Narrowing casts are applied after every op if needed ( #8918 )
...
This way we make sure not to end up with weird values every now and
then.
Fixes #7300
Fixes #8909
2018-09-08 19:41:07 +02:00
LemonBoy
2c8361bd39
Constant folding for integer casts ( #8095 )
2018-08-31 13:45:42 +02:00
andri lim
4d5cce9882
fixes #6255 , add system.ashr arithmetic right shift ( #8547 )
2018-08-07 18:41:30 +02:00
LemonBoy
fb62dd1fae
Fix constant folding for shl/not
...
Since the source and destination types are the same the result should be
trimmed to fit.
2018-06-19 22:32:15 +02:00
Andreas Rumpf
50ae228e25
closes #5854
2017-09-15 10:30:58 +02:00
Fredrik Høisæther Rasch
bbeadf184e
Removed platform-specific arithm test cases ( #6189 )
2017-08-06 00:15:41 +02:00
Parashurama
f603e1b268
fix logical right shift in VM. ( #5916 )
2017-06-05 17:25:04 +02:00
Parashurama
da52ade86e
fix right shift c codegen bug. ( #5919 )
...
* 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.
2017-05-31 21:05:14 +02:00
Araq
68617adb91
fixes #5216
2017-01-27 09:49:45 +01:00