Displaying 2 results from an estimated 2 matches for "d2334fe2".
2015 Jun 26
3
[LLVMdev] extractelement causes memory access violation - what to do?
Hi,
Let's have a simple program:
define i32 @main(i32 %n, i64 %idx) {
%idxSafe = trunc i64 %idx to i5
%r = extractelement <4 x i32> <i32 -1, i32 -1, i32 -1, i32 -1>, i64 %idx
ret i32 %r
}
The assembly of that would be:
pcmpeqd %xmm0, %xmm0
movdqa %xmm0, -24(%rsp)
movl -24(%rsp,%rsi,4), %eax
retq
The language reference states that the extractelement instruction produces
2015 Jun 30
2
[LLVMdev] extractelement causes memory access violation - what to do?
...I
would assume the index of extractelement is processed as an unsigned value.
However, the DAG Builder extends the index with sext. Is it correct?
- PB
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150630/d2334fe2/attachment.html>