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

            Bug ID: 19420
           Summary: [ARM64] Assertion failure about 2 operand types in
                    binary constant expression should match
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

Test case test.c:
------------------------------------------------------------------------
#include "arm_neon.h"

int16x8_t dotest_constant_type() {
      int16x8_t val;
      val = vcombine_s16(vcreate_s16(UINT64_C(0xffff0000ffff0000)),
                         vcreate_s16(UINT64_C(0xffff0000ffff0000)));
      return vshlq_n_s16(vmulq_n_s16(val,
                                    vqabsh_s16(-1)),
                          5);
}
------------------------------------------------------------------------

The Error information is as following:

$clang -O3 --target=arm64-linux-gnu -c test.c
clang-3.5: llvm/llvm/lib/IR/Constants.cpp:1711: static llvm::Constant*
llvm::ConstantExpr::get(unsigned int, llvm::Constant*, llvm::Constant*,
unsigned int): Assertion `C1->getType() == C2->getType() && "Operand types in
binary constant expression should match"' failed.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to