[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 13:11:38 PDT 2009
http://llvm.org/bugs/show_bug.cgi?id=4742
Dmitry Gorbachev <d.g.gorbachev at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|INVALID |
--- Comment #2 from Dmitry Gorbachev <d.g.gorbachev at gmail.com> 2009-08-19 15:11:38 ---
Hi,
The .c and .bc files do match, there's no any foo.
Please try to compile it here: http://llvm.org/demo/index.cgi
; ModuleID = '/tmp/webcompile/_23568_0.bc'
target datalayout =
"e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:32:32"
target triple = "i386-pc-linux-gnu"
define i32 @main() nounwind {
entry:
%asmtmp.i = tail call i16 asm "movw\09%gs:${1:a}, ${0:w}",
"=r,ir,~{dirflag},~{fpsr},~{flags}"(i32 6) nounwind ; <i16> [#uses=1]
%0 = zext i16 %asmtmp.i to i32 ; <i32> [#uses=1]
ret i32 %0
}
Both llvm-gcc and clang give analogous results.
--
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