DescriptionSubzero: Add fabs intrinsic support.
The intrinsic is lowered using the standard technique of masking off the FP sign bit, which is the high-order bit.
To construct this mask, we use the existing trick of loading a vector register with all "1" bits, then logical-shift-right by one bit.
In the future, we should add 128-bit vector values to the constant pool and force them to memory, and this could be used for the other routines that synthesize a vector constant.
BUG= https://code.google.com/p/nativeclient/issues/detail?id=4097
R=jvoung@chromium.org
Committed: https://gerrit.chromium.org/gerrit/gitweb?p=native_client/pnacl-subzero.git;a=commit;h=8c980d0de6592be36fae4ec8ae603dde7212c46c
Patch Set 1 #
Total comments: 7
Patch Set 2 : Code review changes #
Messages
Total messages: 6 (1 generated)
|