asm-js / validator

A reference validator for asm.js.
Apache License 2.0
1.78k stars 148 forks source link

eliminate unary minus #30

Closed dherman closed 11 years ago

dherman commented 11 years ago

Unary minus isn't safe without coercion because it can generate -0 which isn't a valid integer. But LLVM generates 0 - x anyway, so let's just eliminate unary minus.

jruderman commented 11 years ago

Looks like the spec now has it returning intish, which makes sense.