[LLVMbugs] [Bug 11810] New: Inline asm: "undef" rejected for 'i' constraint
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri Jan 20 04:10:17 PST 2012
http://llvm.org/bugs/show_bug.cgi?id=11810
Bug #: 11810
Summary: Inline asm: "undef" rejected for 'i' constraint
Product: new-bugs
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: baldrick at free.fr
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
On the following testcase llc outputs:
error: invalid operand for inline asm constraint 'i'
It accepts the asm if "undef" is replaced by "0". I think undef should be
accepted.
target datalayout =
"e-p:64:64:64-S128-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f16:16:16-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-f128:128:128-n8:16:32:64"
target triple = "x86_64--linux-gnu"
define void @foo() {
entry:
call void asm "# bar on $0", "i,~{fpsr},~{flags}"(i32 undef) nounwind
ret void
}
--
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