[LLVMbugs] [Bug 7232] New: clang emits invalid IR on isunordered call with vector operands

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue May 25 14:26:32 PDT 2010


http://llvm.org/bugs/show_bug.cgi?id=7232

           Summary: clang emits invalid IR on isunordered call with vector
                    operands
           Product: clang
           Version: trunk
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: gohman at apple.com
                CC: llvmbugs at cs.uiuc.edu


On this C input:


#include <math.h>
typedef float float4 __attribute__((vector_size(16)));

void bar(float4 x, float4 y) {
  isunordered(x, y);
}


clang produces LLVM IR which triggers a Verifier abort, with the following
message:

zext source and destination must both be a vector or neither
  %tmp3 = zext <4 x i1> %cmp to i32               ; <i32> [#uses=0]
Broken module found, compilation aborted!

-- 
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