Ashish Saxena
2015-Mar-25 20:47 UTC
[LLVMdev] LLVM fails for inline asm with Link Time Optimization
Hi , I am trying to enable link time optimization for my projects. Few of them has inline assembly which works perfectly with clang/llvm but on enabling LTO I get following error LLVM ERROR: Error parsing inline asm <inline asm>:103:2 : error 0: unknown use of instruction mnemonic without a size suffix <inline asm>:104:16 : error 0: invalid operand for instruction <inline asm>:106:17 : error 0: unexpected token in argument list & so on Is this a known issue ? Any workaround for this ? Thanks Ashish -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150326/cca2b4e7/attachment.html>
Francois Pichet
2015-Mar-26 17:22 UTC
[LLVMdev] LLVM fails for inline asm with Link Time Optimization
On Wed, Mar 25, 2015 at 4:47 PM, Ashish Saxena <ashishcseitbhu at gmail.com> wrote:> Hi , > I am trying to enable link time optimization for my projects. Few of > them has inline assembly which works perfectly with clang/llvm but on > enabling LTO I get following error > > LLVM ERROR: Error parsing inline asm > > <inline asm>:103:2 : error 0: unknown use of instruction mnemonic without > a size suffix > <inline asm>:104:16 : error 0: invalid operand for instruction > <inline asm>:106:17 : error 0: unexpected token in argument list > > & so on > > Is this a known issue ? Any workaround for this ? >My experience is that LTO doesn't break inline assembly. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150326/394652f1/attachment.html>
Ashish Saxena
2015-Mar-26 17:30 UTC
[LLVMdev] LLVM fails for inline asm with Link Time Optimization
Thanks for response Francois . Do you have any pointers on what can be the issue here or something I can try out. I saw similar active bug in llvm database https://llvm.org/bugs/show_bug.cgi?id=5623 Thanks Ashish On Thu, Mar 26, 2015 at 10:52 PM, Francois Pichet <pichet2000 at gmail.com> wrote:> > > On Wed, Mar 25, 2015 at 4:47 PM, Ashish Saxena <ashishcseitbhu at gmail.com> > wrote: > >> Hi , >> I am trying to enable link time optimization for my projects. Few of >> them has inline assembly which works perfectly with clang/llvm but on >> enabling LTO I get following error >> >> LLVM ERROR: Error parsing inline asm >> >> <inline asm>:103:2 : error 0: unknown use of instruction mnemonic without >> a size suffix >> <inline asm>:104:16 : error 0: invalid operand for instruction >> <inline asm>:106:17 : error 0: unexpected token in argument list >> >> & so on >> >> Is this a known issue ? Any workaround for this ? >> > > > My experience is that LTO doesn't break inline assembly. >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150326/19c09295/attachment.html>
Maybe Matching Threads
- [LLVMdev] LLVM fails for inline asm with Link Time Optimization
- [LLVMdev] LLVM fails for inline asm with Link Time Optimization
- [LLVMdev] Improving the quality of debug locations / DbgValueHistoryCalculator
- [LLVMdev] Improving the quality of debug locations / DbgValueHistoryCalculator
- [LLVMdev] Unaligned load/store for callee-saved 128-bit registers