Syntax for asm goto:
Syntax:
  asm [volatile] goto ( AssemblerTemplate
                      :
                      : InputOperands
                      : Clobbers
                      : GotoLabels)

Only input is allowed.  Output is not allowed
Thanks.
Jennifer

-----Original Message-----
From: Eli Friedman via Phabricator [mailto:[email protected]] 
Sent: Thursday, January 10, 2019 5:58 PM
To: [email protected]; Keane, Erich <[email protected]>; 
[email protected]; [email protected]; Yu, Jennifer 
<[email protected]>; [email protected]
Cc: [email protected]; [email protected]; [email protected]; 
[email protected]
Subject: [PATCH] D56571: [RFC prototype] Implementation of asm-goto support in 
LLVM

efriedma added a comment.

Missing changes to lib/Analysis/CFG.cpp.



================
Comment at: lib/Sema/SemaStmtAsm.cpp:470
+    if (NS->isGCCAsmGoto() &&
+        Exprs[ConstraintIdx]->getStmtClass() == Stmt::AddrLabelExprClass)
+      break;
----------------
This looks suspicious; an AddrLabelExpr could be an input or output, e.g. 
`"r"(&&foo)`.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D56571/new/

https://reviews.llvm.org/D56571



_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to