aboutsummaryrefslogtreecommitdiff
path: root/src/parseTools.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-11-01 16:26:52 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-11-01 16:26:52 -0700
commit2faaa225c97252baadeb4c8750d8decd2fd04e57 (patch)
tree058166ec86883499080f119cc9dde2bfe58db58c /src/parseTools.js
parent90dcac551fee69cf284ae4431db949bc69796a1c (diff)
add vector support for and, or and xor
Diffstat (limited to 'src/parseTools.js')
-rw-r--r--src/parseTools.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/parseTools.js b/src/parseTools.js
index ec907a41..db95d71f 100644
--- a/src/parseTools.js
+++ b/src/parseTools.js
@@ -2374,6 +2374,9 @@ function processMathop(item) {
return 'SIMD.uint32x4BitsToFloat32x4(' + idents[0] + ')';
}
}
+ case 'and': return 'SIMD.and(' + idents[0] + ',' + idents[1] + ')';
+ case 'or': return 'SIMD.or(' + idents[0] + ',' + idents[1] + ')';
+ case 'xor': return 'SIMD.xor(' + idents[0] + ',' + idents[1] + ')';
default: throw 'vector op todo: ' + dump(item);
}
}