[LLVMbugs] [Bug 10021] New: fatal error with AVX

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu May 26 00:58:41 PDT 2011


           Summary: fatal error with AVX
           Product: new-bugs
           Version: 2.9
          Platform: PC
        OS/Version: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: yottui at yahoo.co.jp
                CC: llvmbugs at cs.uiuc.edu

I would like to use __m128 and __m256.
However, the compilation fails with -mavx.

----- begin test case -----
#include <immintrin.h>

int main(int argc, char * argv[])
    __m128 v = _mm_set_ps(1, 2, 3, 4);

    return 0;
----- end of test case -----

----- begin output -----
$ clang++ -mavx -D _mm_malloc test.cpp
fatal error: error in backend: Cannot select: 0x2e17af8: v4f32 =
X86ISD::VUNPCKLPS 0x2e179e8, 0x2e17a70 [ID=42]
  0x2e179e8: v4f32 = X86ISD::VUNPCKLPS 0x2e170e0, 0x2e14f20 [ID=40]
    0x2e170e0: v4f32 = scalar_to_vector 0x2e17850 [ID=28]
      0x2e17850: f32,ch = load 0x2e3dca4, 0x2e17300,
0x2e146a0<LD4[ConstantPool]> [ID=26]
        0x2e17300: i32 = X86ISD::Wrapper 0x2e17278 [ID=24]
          0x2e17278: i32 = TargetConstantPool<float 4.000000e+00> 0 [ID=19]
        0x2e146a0: i32 = undef [ORD=1] [ID=3]
    0x2e14f20: v4f32 = scalar_to_vector 0x2e17058 [ID=37]
      0x2e17058: f32,ch = load 0x2e14e10, 0x2e148c0, 0x2e146a0<LD4[%2]>
[ORD=12] [ID=34]
        0x2e148c0: i32 = FrameIndex<1> [ORD=5] [ID=9]
        0x2e146a0: i32 = undef [ORD=1] [ID=3]
  0x2e17a70: v4f32 = X86ISD::VUNPCKLPS 0x2e17168, 0x2e14fa8 [ID=41]
    0x2e17168: v4f32 = scalar_to_vector 0x2e14e98 [ID=36]
      0x2e14e98: f32,ch = load 0x2e14e10, 0x2e14a58, 0x2e146a0<LD4[%3]>
[ORD=10] [ID=33]
        0x2e14a58: i32 = FrameIndex<2> [ORD=6] [ID=10]
        0x2e146a0: i32 = undef [ORD=1] [ID=3]
    0x2e14fa8: v4f32 = scalar_to_vector 0x2e171f0 [ID=38]
      0x2e171f0: f32,ch = load 0x2e14e10, 0x2e140c8, 0x2e146a0<LD4[%1]>
[ORD=14] [ID=35]
        0x2e140c8: i32 = FrameIndex<0> [ORD=4] [ID=8]
        0x2e146a0: i32 = undef [ORD=1] [ID=3]
----- end of output -----

Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

More information about the llvm-bugs mailing list