Sachin.Punyani at microchip.com
2009-Jan-12 03:23 UTC
[LLVMdev] Doubt over lib call generation
Hi, The lib call (generated through LLVM framework) for 64 bit operation returns 64 bit value. But only the lower 32 bits are consumed. Even the users of higher part are consuming the lower 32 bit value only. Consider the case in Sparc or ARM long long lla, llb; int ia; void fun() { lla = llb << ia; } For such targets in the DAG after LegalizeTypes the higher 32 bits are ignored. Why are these higher 32 bits ignored? This is happening for all the lib calls returning integer value of non legal type. Regards Sachin -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090111/b3b69285/attachment.html>
Hi,> Consider the case in Sparc or ARMcan you please provide a testcase in bitcode (or LLVM assembler) form. Thanks, Duncan.
Sachin.Punyani at microchip.com
2009-Jan-12 09:25 UTC
[LLVMdev] Doubt over lib call generation
> > Hi, > > > Consider the case in Sparc or ARM > > can you please provide a testcase in bitcode (or > LLVM assembler) form. >Please find the bitcode file and C file attached with. Regards Sachin> Thanks, > > Duncan.-------------- next part -------------- A non-text attachment was scrubbed... Name: trysparc.bc Type: application/octet-stream Size: 476 bytes Desc: trysparc.bc URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090112/9d3244f6/attachment.obj> -------------- next part -------------- A non-text attachment was scrubbed... Name: trysparc.c Type: application/octet-stream Size: 67 bytes Desc: trysparc.c URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090112/9d3244f6/attachment-0001.obj>