[LLVMbugs] [Bug 23591] New: [AArch64] llc crashes with assertion "Illegal shifted immedate value!" on AArch64.
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed May 20 02:20:03 PDT 2015
https://llvm.org/bugs/show_bug.cgi?id=23591
Bug ID: 23591
Summary: [AArch64] llc crashes with assertion "Illegal shifted
immedate value!" on AArch64.
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
$cat test.ll
define i64 @test(i64 %h, i64 %l, i64 %d) {
entry:
%h.addr = alloca i64, align 8
%l.addr = alloca i64, align 8
%d.addr = alloca i64, align 8
store i64 %h, i64* %h.addr, align 8
store i64 %l, i64* %l.addr, align 8
store i64 %d, i64* %d.addr, align 8
%0 = load i64, i64* %h.addr, align 8
%shl = shl i64 %0, 64
%1 = load i64, i64* %l.addr, align 8
%or = or i64 %shl, %1
%2 = load i64, i64* %d.addr, align 8
%div = udiv i64 %or, %2
ret i64 %div
}
$llc small.ll -O0 -o small.o -mtriple aarch64
llc:
/home/kevin/llvm_trunk/llvm/lib/Target/AArch64/MCTargetDesc/AArch64AddressingModes.h:100:
unsigned int llvm::AArch64_AM::getShifterImm(AArch64_AM::ShiftExtendType,
unsigned int): Assertion `(Imm & 0x3f) == Imm && "Illegal shifted immedate
value!"' failed.
The equivalent C is,
$cat test.c
unsigned long test(unsigned long h, unsigned long l, unsigned long d)
{
return((unsigned long)(((((unsigned long long)h)<<64)|l)/(unsigned long
long)d));
}
$clang -target aarch64-linux-gnu -O0 small.c -S
clang-3.7:
/home/kevin/llvm_trunk/llvm/lib/Target/AArch64/MCTargetDesc/AArch64AddressingModes.h:100:
unsigned int llvm::AArch64_AM::getShifterImm(AArch64_AM::ShiftExtendType,
unsigned int): Assertion `(Imm & 0x3f) == Imm && "Illegal shifted immedate
value!"' failed.
--
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/20150520/e8755806/attachment.html>
More information about the llvm-bugs
mailing list