Displaying 20 results from an estimated 31 matches for "uformia".
Did you mean:
forma
2013 Jul 20
0
[LLVMdev] fptoui calling a function that modifies ECX
...seemingly unrelated) issue which I'll describe in
a separate email to the dev list.
--
Peter N
On 20/07/2013 5:30 AM, Craig Topper wrote:
> Here's my attempt at a fix. Adding Jakob to make sure I did this right.
>
>
> On Fri, Jul 19, 2013 at 2:34 AM, Peter Newman <peter at uformia.com
> <mailto:peter at uformia.com>> wrote:
>
> That does appear to have worked. All my tests are passing now.
>
> I'll hand this out to our other devs & testers and make sure it's
> working for them as well (not just on my machine).
>
>...
2013 Jul 19
2
[LLVMdev] fptoui calling a function that modifies ECX
Here's my attempt at a fix. Adding Jakob to make sure I did this right.
On Fri, Jul 19, 2013 at 2:34 AM, Peter Newman <peter at uformia.com> wrote:
> That does appear to have worked. All my tests are passing now.
>
> I'll hand this out to our other devs & testers and make sure it's working
> for them as well (not just on my machine).
>
> Thank you, again.
>
> --
> Peter N
>
>
> O...
2013 Jul 19
0
[LLVMdev] fptoui calling a function that modifies ECX
...other devs & testers and make sure it's
working for them as well (not just on my machine).
Thank you, again.
--
Peter N
On 19/07/2013 5:45 PM, Craig Topper wrote:
> I don't think that's going to work.
>
>
> On Fri, Jul 19, 2013 at 12:24 AM, Peter Newman <peter at uformia.com
> <mailto:peter at uformia.com>> wrote:
>
> Thank you, I'm trying this now.
>
>
> On 19/07/2013 5:23 PM, Craig Topper wrote:
>> Try adding ECX to the Defs of this part of
>> lib/Target/X86/X86InstrCompiler.td like I've done below....
2013 Jul 19
2
[LLVMdev] fptoui calling a function that modifies ECX
I don't think that's going to work.
On Fri, Jul 19, 2013 at 12:24 AM, Peter Newman <peter at uformia.com> wrote:
> Thank you, I'm trying this now.
>
>
> On 19/07/2013 5:23 PM, Craig Topper wrote:
>
> Try adding ECX to the Defs of this part of
> lib/Target/X86/X86InstrCompiler.td like I've done below. I don't have a
> Windows machine to test myself.
>
>...
2013 Jul 19
0
[LLVMdev] fptoui calling a function that modifies ECX
...L_64 : I<0, Pseudo, (outs), (ins RFP64:$src),
> "# win32 fptoui",
> [(X86WinFTOL RFP64:$src)]>,
> Requires<[In32BitMode]>;
> }
>
>
> On Thu, Jul 18, 2013 at 11:59 PM, Peter Newman <peter at uformia.com
> <mailto:peter at uformia.com>> wrote:
>
> Oh, excellent point, I agree. My bad. Now that I'm not assuming
> those are the sqrt, I see the sqrtpd's in the output. Also there
> are three fptoui's and there are 3 call instances.
>
> (Cha...
2013 Jul 19
3
[LLVMdev] fptoui calling a function that modifies ECX
...[In32BitMode]>;
def WIN_FTOL_64 : I<0, Pseudo, (outs), (ins RFP64:$src),
"# win32 fptoui",
[(X86WinFTOL RFP64:$src)]>,
Requires<[In32BitMode]>;
}
On Thu, Jul 18, 2013 at 11:59 PM, Peter Newman <peter at uformia.com> wrote:
> Oh, excellent point, I agree. My bad. Now that I'm not assuming those
> are the sqrt, I see the sqrtpd's in the output. Also there are three
> fptoui's and there are 3 call instances.
>
> (Changing subject line again.)
>
> Now it looks like it'...
2013 Jul 19
0
[LLVMdev] fptoui calling a function that modifies ECX
...er wrote:
> I think those calls correspond to this
>
> %110 = fptoui double %109 to i32
>
> The calls are followed by an imul with 12 which matches up with what
> occurs right after the fptoui in the IR.
>
>
> On Thu, Jul 18, 2013 at 11:48 PM, Peter Newman <peter at uformia.com
> <mailto:peter at uformia.com>> wrote:
>
> Yes, that is the result of module-dump.ll
>
>
> On 19/07/2013 4:46 PM, Craig Topper wrote:
>> Does this correspond to one of the .ll files you sent earlier?
>>
>>
>> On Thu, Jul 18, 2...
2013 Jul 19
0
[LLVMdev] SIMD instructions and memory alignment on X86
...an see it getting confused about needing to do that if it
thinks SSE isn't available at all.
On 19/07/2013 3:47 PM, Craig Topper wrote:
> Hmm, maybe sse isn't being enabled so its falling back to emulating sqrt?
>
>
> On Thu, Jul 18, 2013 at 10:45 PM, Peter Newman <peter at uformia.com
> <mailto:peter at uformia.com>> wrote:
>
> In the disassembly, I'm seeing three cases of
> call 76719BA1
>
> I am assuming this is the sqrt function as this is the only
> function called in the LLVM IR.
>
> The code at 76719BA...
2013 Jul 19
2
[LLVMdev] SIMD instructions and memory alignment on X86
Hmm, maybe sse isn't being enabled so its falling back to emulating sqrt?
On Thu, Jul 18, 2013 at 10:45 PM, Peter Newman <peter at uformia.com> wrote:
> In the disassembly, I'm seeing three cases of
> call 76719BA1
>
> I am assuming this is the sqrt function as this is the only function
> called in the LLVM IR.
>
> The code at 76719BA1 is:
>
> 76719BA1 push ebp
> 76719BA2 mov...
2013 Jul 19
2
[LLVMdev] SIMD instructions and memory alignment on X86
That should map directly to sqrtpd which can't modify ecx.
On Thu, Jul 18, 2013 at 10:27 PM, Peter Newman <peter at uformia.com> wrote:
> Sorry, that should have been llvm.x86.sse2.sqrt.pd
>
>
> On 19/07/2013 3:25 PM, Craig Topper wrote:
>
> What is "frep.x86.sse2.sqrt.pd". I'm only familiar with things prefixed
> with "llvm.x86".
>
>
> On Thu, Jul 18, 2013 at 1...
2013 Jul 19
0
[LLVMdev] SIMD instructions and memory alignment on X86
...er it is, it's being called
from the IR I attached earlier, and is modifying ECX under some
circumstances.
On 19/07/2013 3:29 PM, Craig Topper wrote:
> That should map directly to sqrtpd which can't modify ecx.
>
>
> On Thu, Jul 18, 2013 at 10:27 PM, Peter Newman <peter at uformia.com
> <mailto:peter at uformia.com>> wrote:
>
> Sorry, that should have been llvm.x86.sse2.sqrt.pd
>
>
> On 19/07/2013 3:25 PM, Craig Topper wrote:
>> What is "frep.x86.sse2.sqrt.pd". I'm only familiar with things
>> prefixed wit...
2013 Jul 19
4
[LLVMdev] SIMD instructions and memory alignment on X86
Hmm, I'm not able to get those .ll files to compile if I disable SSE and I
end up with SSE instructions(including sqrtpd) if I don't disable it.
On Thu, Jul 18, 2013 at 10:53 PM, Peter Newman <peter at uformia.com> wrote:
> Is there something specifically required to enable SSE? If it's not
> detected as available (based from the target triple?) then I don't think we
> enable it specifically.
>
> Also it seems that it should handle converting to/from the vector types,
> alt...
2013 Jul 19
2
[LLVMdev] SIMD instructions and memory alignment on X86
What is "frep.x86.sse2.sqrt.pd". I'm only familiar with things prefixed
with "llvm.x86".
On Thu, Jul 18, 2013 at 10:12 PM, Peter Newman <peter at uformia.com> wrote:
> After stepping through the produced assembly, I believe I have a culprit.
>
> One of the calls to @frep.x86.sse2.sqrt.pd is modifying the value of ECX -
> while the produced code is expecting it to still contain its previous value.
>
> Peter N
>
>
> On...
2013 Jul 19
0
[LLVMdev] SIMD instructions and memory alignment on X86
Sorry, that should have been llvm.x86.sse2.sqrt.pd
On 19/07/2013 3:25 PM, Craig Topper wrote:
> What is "frep.x86.sse2.sqrt.pd". I'm only familiar with things
> prefixed with "llvm.x86".
>
>
> On Thu, Jul 18, 2013 at 10:12 PM, Peter Newman <peter at uformia.com
> <mailto:peter at uformia.com>> wrote:
>
> After stepping through the produced assembly, I believe I have a
> culprit.
>
> One of the calls to @frep.x86.sse2.sqrt.pd is modifying the value
> of ECX - while the produced code is expecting it to stil...
2013 Jul 19
0
[LLVMdev] llvm.x86.sse2.sqrt.pd not using sqrtpd, calling a function that modifies ECX
The calls represent the MSVC _ftol2 function I think.
On Thu, Jul 18, 2013 at 11:34 PM, Peter Newman <peter at uformia.com> wrote:
> (Changing subject line as diagnosis has changed)
>
> I'm attaching the compiled code that I've been getting, both with
> CodeGenOpt::Default and CodeGenOpt::None . The crash isn't occurring with
> CodeGenOpt::None, but that seems to be because ECX isn...
2013 Jul 19
0
[LLVMdev] SIMD instructions and memory alignment on X86
...double ) ).
>
> Hopefully this is reproducible for you.
>
> --
> PeterN
>
> On 18/07/2013 4:37 PM, Craig Topper wrote:
>> Are you able to send any IR for others to reproduce this issue?
>>
>>
>> On Wed, Jul 17, 2013 at 11:23 PM, Peter Newman <peter at uformia.com
>> <mailto:peter at uformia.com>> wrote:
>>
>> Unfortunately, this doesn't appear to be the bug I'm hitting. I
>> applied the fix to my source and it didn't make a difference.
>>
>> Also further testing found me getting the s...
2013 Jul 19
0
[LLVMdev] llvm.x86.sse2.sqrt.pd not using sqrtpd, calling a function that modifies ECX
...--
Peter N
On 19/07/2013 4:00 PM, Craig Topper wrote:
> Hmm, I'm not able to get those .ll files to compile if I disable SSE
> and I end up with SSE instructions(including sqrtpd) if I don't
> disable it.
>
>
> On Thu, Jul 18, 2013 at 10:53 PM, Peter Newman <peter at uformia.com
> <mailto:peter at uformia.com>> wrote:
>
> Is there something specifically required to enable SSE? If it's
> not detected as available (based from the target triple?) then I
> don't think we enable it specifically.
>
> Also it seems that i...
2013 Jul 19
2
[LLVMdev] SIMD instructions and memory alignment on X86
...g. @asin is the standard C lib double asin(
double ) ).
Hopefully this is reproducible for you.
--
PeterN
On 18/07/2013 4:37 PM, Craig Topper wrote:
> Are you able to send any IR for others to reproduce this issue?
>
>
> On Wed, Jul 17, 2013 at 11:23 PM, Peter Newman <peter at uformia.com
> <mailto:peter at uformia.com>> wrote:
>
> Unfortunately, this doesn't appear to be the bug I'm hitting. I
> applied the fix to my source and it didn't make a difference.
>
> Also further testing found me getting the same behavior with other...
2013 Jan 09
2
[LLVMdev] Using C++'11 language features in LLVM itself
On Jan 8, 2013, at 8:09 PM, Peter Newman <peter at uformia.com> wrote:
>>> One other specific problem with this is that (I'm told) MSVC 2010 doesn't support range-based for loops. I don't think it is reasonable to require windows users to be on MSVC 2012. :-(
>> I suspect you're right about that, but I'd appreciate i...
2013 Jul 18
2
[LLVMdev] SIMD instructions and memory alignment on X86
...7/2013 1:58 PM, Solomon Boulos wrote:
> As someone off list just told me, perhaps my new bug is the same issue:
>
> http://llvm.org/bugs/show_bug.cgi?id=16640
>
> Do you happen to be using FastISel?
>
> Solomon
>
> On Jul 16, 2013, at 6:39 PM, Peter Newman <peter at uformia.com> wrote:
>
>> Hello all,
>>
>> I'm currently in the process of debugging a crash occurring in our program. In LLVM 3.2 and 3.3 it appears that JIT generated code is attempting to perform access unaligned memory with a SSE2 instruction. However this only happens under...