search for: idxsafe

Displaying 7 results from an estimated 7 matches for "idxsafe".

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 instructi...
2015 Jun 26
2
[LLVMdev] extractelement causes memory access violation - what to do?
...26/2015 08:42 AM, David Majnemer wrote: > > > On Fri, Jun 26, 2015 at 7:00 AM, Paweł Bylica <chfast at gmail.com > <mailto:chfast at gmail.com>> wrote: > > 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), %...
2015 Jun 30
2
[LLVMdev] extractelement causes memory access violation - what to do?
...ri, Jun 26, 2015 at 5:42 PM David Majnemer <david.majnemer at gmail.com> wrote: > On Fri, Jun 26, 2015 at 7:00 AM, Paweł Bylica <chfast at gmail.com> wrote: > >> 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), %ea...
2015 Jun 30
2
[LLVMdev] extractelement causes memory access violation - what to do?
...; > > > > > > On Fri, Jun 26, 2015 at 7:00 AM, Paweł Bylica < chfast at gmail.com > > > wrote: > > > > > > > > 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) &g...
2015 Jul 01
2
[LLVMdev] extractelement causes memory access violation - what to do?
...gt; > > > > On Fri, Jun 26, 2015 at 7:00 AM, Paweł Bylica < chfast at gmail.com > > > wrote: > > > > > > > > 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)...
2015 Jul 01
3
[LLVMdev] extractelement causes memory access violation - what to do?
...>> > > >>> wrote: > >>> > >>> > >>> > >>> 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: &...
2015 Jul 02
2
[LLVMdev] extractelement causes memory access violation - what to do?
...gt;>> > > >>> > > >>> > > >>> 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 > > >>> } > > >>> > > >>> > > >&...