[LLVMbugs] [Bug 4742] [inline asm] `%a' template does not work

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Wed Aug 19 10:58:09 PDT 2009


http://llvm.org/bugs/show_bug.cgi?id=4742


Dale Johannesen <dalej at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dalej at apple.com
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID




--- Comment #1 from Dale Johannesen <dalej at apple.com>  2009-08-19 12:58:08 ---
The .c and .bc files don't match (most obviously, main vs foo) and I can't see
how you could get that asm IR out of that source line.  Translating "r,r" to
"ir" is wrong, and I'm 99% sure llvm-gcc doesn't do that.  Anyway, you should
probably look at your front end.  Darwin produces this, for example:
%asmtmp = call i32 asm sideeffect "mov $1, $0\0A",
"=r,r,~{dirflag},~{fpsr},~{flags}"(i32 %1) nounwind


-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list