aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-10-17 16:33:10 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-10-18 13:00:49 -0700
commit0567f279ad1477779bc92eef5615b2e167824dcf (patch)
tree4cdbfb38d194455ea0392f202f97eea33d87271b
parent0b6d165a18823af90a65d9d24ee3006d372d7964 (diff)
setup to do vector ops in processMathop
-rw-r--r--src/parseTools.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/parseTools.js b/src/parseTools.js
index 6436e8a4..c7beac53 100644
--- a/src/parseTools.js
+++ b/src/parseTools.js
@@ -2316,6 +2316,13 @@ function processMathop(item) {
}
}
+ if (type[0] === '<' && type[type.length-1] !== '*') {
+ // vector/SIMD operation
+ switch (op) {
+ default: throw 'vector op todo: ' + dump(item);
+ }
+ }
+
switch (op) {
// basic integer ops
case 'add': return handleOverflow(getFastValue(idents[0], '+', idents[1], item.type), bits);