diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-11-01 16:26:52 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-11-01 16:26:52 -0700 |
commit | 2faaa225c97252baadeb4c8750d8decd2fd04e57 (patch) | |
tree | 058166ec86883499080f119cc9dde2bfe58db58c /src/parseTools.js | |
parent | 90dcac551fee69cf284ae4431db949bc69796a1c (diff) |
add vector support for and, or and xor
Diffstat (limited to 'src/parseTools.js')
-rw-r--r-- | src/parseTools.js | 3 |
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); } } |