[LLVMbugs] [Bug 18532] Multiplication of a float vector by -1 should be transformed to an XOR of sign bits.

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Jan 18 08:47:22 PST 2014


Benjamin Kramer <benny.kra at gmail.com> changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
                 CC|                            |benny.kra at gmail.com
         Resolution|---                         |FIXED

--- Comment #1 from Benjamin Kramer <benny.kra at gmail.com> ---
With r199553:

$ cat mul.c
#include <immintrin.h>

__m128 foo(__m128 x) {
  return _mm_mul_ps(x, _mm_set1_ps(-1.0f));

$ clang -O -S -o - mul.c
    .long    2147483648              ## float -0.000000e+00
    .long    2147483648              ## float -0.000000e+00
    .long    2147483648              ## float -0.000000e+00
    .long    2147483648              ## float -0.000000e+00
    xorps    LCPI0_0(%rip), %xmm0

You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140118/0c48df6e/attachment.html>

More information about the llvm-bugs mailing list