Dale Weiler
|
6fee3ec363
|
More comments
|
2015-01-06 20:39:20 -05:00 |
|
Dale Weiler
|
2b10d588e4
|
grammar
|
2015-01-06 20:33:31 -05:00 |
|
Dale Weiler
|
e3577912c8
|
Fix the soft float implementation. Comment it as well.
|
2015-01-06 20:30:17 -05:00 |
|
Dale Weiler
|
ab841b94f7
|
Allow negation to propagate inexactness in constant folder by using neg(x) = x*-1
|
2014-11-04 14:32:56 -05:00 |
|
Dale Weiler
|
b08195e2da
|
Implemented length operator. This closes #130
|
2014-09-27 04:15:32 -04:00 |
|
Dale Weiler
|
e7d81937ae
|
Make it compile as C++ code.
|
2014-05-26 21:36:13 -04:00 |
|
Dale Weiler
|
655c2482c9
|
Fix vec3_cross. Added optimization to Makefile since we've been compiling gmqcc without it since forever.
|
2014-05-25 02:04:10 -04:00 |
|
Dale Weiler
|
0c85bac71b
|
More work on vector arithmetic exceptions.
|
2014-05-25 02:00:41 -04:00 |
|
Dale Weiler
|
aed893b6b8
|
More work for arithmetic exception on vectors.
|
2014-05-24 23:21:20 -04:00 |
|
Dale Weiler
|
337d7ddbf4
|
soft float state defaults.
|
2014-05-24 22:40:14 -04:00 |
|
Dale Weiler
|
ff80bf1aa2
|
Only when arithmetic exceptions are enabled.
|
2014-05-24 22:13:47 -04:00 |
|
Dale Weiler
|
1497191e3c
|
Perliminary work in arithmetic exception handling for vector operations in constant evaluator / folder.
|
2014-05-24 22:12:05 -04:00 |
|
Dale Weiler
|
4fa694fe82
|
Some CLZ for other toolchains.
|
2014-05-24 20:33:57 -04:00 |
|
Dale Weiler
|
68c2baa7c1
|
Mage inexact travel across constants.
|
2014-05-24 11:50:16 -04:00 |
|
Dale Weiler
|
05e20bcdda
|
Some things. Fix testsuite as well. One test will fail (inexact).
|
2014-05-24 11:42:10 -04:00 |
|
Dale Weiler
|
bbeb2517c0
|
Arithmetic exception flag and a plethora of tests.
|
2014-05-24 10:38:02 -04:00 |
|
Dale Weiler
|
5dc7e62b19
|
Use flags instead.
|
2014-05-24 09:59:43 -04:00 |
|
Dale Weiler
|
6424ebaf98
|
Perliminary work on arithmetic exception handling in the constant evaluator. We can safely check for arithmetic underflow, overflow, divison by zero and inexactness now. Inexactness of expressions are propagated through the AST such that using an inexact value in a comparison will trigger a warning with -Winexact-compares.
|
2014-05-24 09:53:38 -04:00 |
|
Dale Weiler
|
9e5d02dab0
|
Less parens
|
2014-03-17 10:24:48 -04:00 |
|
Dale Weiler
|
827826b9f9
|
Remove the qcint cast.
|
2014-03-17 10:23:13 -04:00 |
|
Dale Weiler
|
b21e967581
|
Fix left/right shift constant fold.
|
2014-03-17 09:41:53 -04:00 |
|
Dale Weiler
|
7ffda37513
|
s/atanhf/atanh/
|
2014-02-08 02:50:06 -05:00 |
|
Dale Weiler
|
24f9313952
|
Screw clang
|
2014-01-07 13:13:25 -05:00 |
|
Dale Weiler
|
a140b749ff
|
Fix lshift/rshift for runtime and const-fold consistency.
|
2014-01-07 12:58:53 -05:00 |
|
Dale Weiler
|
a934e0fe4b
|
Happy new year!
|
2014-01-01 06:24:16 -05:00 |
|
Dale Weiler
|
9b92cb0897
|
Simplify
|
2013-11-29 13:50:06 -05:00 |
|
Dale Weiler
|
43e9885a08
|
Fix fold_op_cmp
|
2013-11-29 13:48:03 -05:00 |
|
Dale Weiler
|
ac7e1a557d
|
Fixes
|
2013-11-29 13:36:35 -05:00 |
|
Dale Weiler
|
dc48af195d
|
Pregenerate 2.0 for const folder since it's used often
|
2013-11-25 13:25:29 -05:00 |
|
Dale Weiler
|
63c0917d24
|
More compiler intrinsics for math functions
|
2013-11-23 21:14:13 -05:00 |
|
Dale Weiler
|
e2bfaf8109
|
Implemented exp2 intrinsic
|
2013-11-23 07:37:26 -05:00 |
|
Wolfgang Bumiller
|
49bb172a09
|
folder: change ~ for floats too
|
2013-11-14 11:41:11 +01:00 |
|
Wolfgang Bumiller
|
f43106017f
|
bit more concise
|
2013-11-12 16:28:11 +01:00 |
|
Wolfgang Bumiller
|
eb4486a7ac
|
working fold_op_cmp implementation
|
2013-11-12 16:15:02 +01:00 |
|
Wolfgang Bumiller
|
1d5229ee8c
|
vec3_not: be consistent with compile-time behavior here
|
2013-11-12 16:05:54 +01:00 |
|
Wolfgang Bumiller
|
eee7d0aac1
|
vec3_pbool: or, not and
|
2013-11-12 15:56:04 +01:00 |
|
Wolfgang Bumiller
|
de12a24bc9
|
folder: fix -fperl-logic
|
2013-11-12 14:39:25 +01:00 |
|
Wolfgang Bumiller
|
6ea88c9a3f
|
subtracting != adding
|
2013-11-12 14:31:11 +01:00 |
|
Wolfgang Bumiller
|
de14d514f3
|
fix 0-x being turned into x
|
2013-11-06 16:57:04 +01:00 |
|
Wolfgang Bumiller
|
b1016c7f48
|
fold_binary now used instead of ast_binary_new, which calls fold_superfluous
|
2013-10-25 13:40:31 +02:00 |
|
Dale Weiler
|
8699053887
|
Fix handling on intrinsic folding, this closes #118.
|
2013-10-17 00:14:42 -04:00 |
|
Dale Weiler
|
eca82511c6
|
divVerent suggestion to use memcmp here
|
2013-10-14 22:40:36 -04:00 |
|
Dale Weiler
|
6d8d7ee923
|
Make divVerent happy about handling divison by zero/inf/nan and negitive versions. This code now assumes IEEE 754.
|
2013-10-14 22:31:37 -04:00 |
|
Dale Weiler
|
300fb9905b
|
Fix fold_superfluous
|
2013-10-04 07:10:58 -04:00 |
|
Dale Weiler
|
cc69370575
|
Another peephole optimization which removes superfluous expressions such as (A + 0), (A - 0), (A * 1) and (A / 1).
|
2013-10-04 06:46:54 -04:00 |
|
Dale Weiler
|
15b0555546
|
Implement constant folding on ternary operations via fold_cond.
|
2013-09-26 06:51:49 -04:00 |
|
Dale Weiler
|
f25fff1e3d
|
Remove debug printfs
|
2013-09-18 19:18:10 -04:00 |
|
Dale Weiler
|
e18849fa42
|
Generate (non_const_float * (1.0 / constant_float)) for (non_const_float / constant_float) expressions.
|
2013-09-18 19:15:24 -04:00 |
|
Dale Weiler
|
64661f54ea
|
Implemented >< (vector cross product operator). Currently support for constants only.
|
2013-08-31 13:41:25 -04:00 |
|
Dale Weiler
|
69252071ba
|
Prevent divide by zero for / and % operations in constant folding (previously caused compiler SIGFPE), instead "inf" is generated for both cases. This closes #124
|
2013-08-31 12:57:24 -04:00 |
|