[LLVMbugs] [Bug 19094] New: ACLE intrinics get compile error after r203229 commit

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Mar 10 01:02:55 PDT 2014


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

            Bug ID: 19094
           Summary: ACLE intrinics get compile error after r203229 commit
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: kevinqindev at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

For below C code,
#include <arm_neon.h>

uint16x8_t test1(uint16x8_t a, uint16x8_t b, uint32_t c) {
  return vmlaq_n_u16(a, b, vqrshrns_n_u32(c, 11));
}

Clang generates below error message:
LLVM ERROR: Cannot select: 0x33deb60: v8i16 = AArch64ISD::NEON_VDUP 0x33dd840
[ORD=4] [ID=7]
  0x33dd840: i64 = TargetConstant<127> [ID=3]
In function: test1

For another case below,
#include <arm_neon.h>

uint16x8_t test2(uint16x8_t a, uint16x8_t b, uint32_t c) {
  return vsubl_high_u16(a, vmlaq_n_u16(a, b, vqrshrns_n_u32(c, 11)));
}

Clang would hit an assert:
/include/llvm/CodeGen/SelectionDAGNodes.h:559: const llvm::SDValue&
llvm::SDNode::getOperand(unsigned int) const: Assertion `Num < NumOperands &&
"Invalid child # of SDNode!"' failed.

If r203229 is reverted, all of them can pass.

-- 
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/20140310/4967b44d/attachment.html>


More information about the llvm-bugs mailing list