summaryrefslogtreecommitdiffstats
path: root/llvm/test/MC/AsmParser/negativ_altmacro_expression.s
Commit message (Collapse)AuthorAgeFilesLines
* [X86] Fix incomplete handling of register-assigned variables in parsing.Nirav Dave2019-01-111-3/+3
| | | | | | | | | | | | | | Teach x86 assembly operand parsing to distinguish between assembler variable assigned to named registers and those assigned to immediate values. Reviewers: rnk, nickdesaulniers, void Subscribers: hiraditya, jyknight, llvm-commits Differential Revision: https://reviews.llvm.org/D56287 llvm-svn: 350966
* fix trivial typo in comment, NFCHiroshi Inoue2017-06-261-1/+1
| | | | llvm-svn: 306274
* Fix test for altmacroMichael Zuckerman2017-05-011-1/+1
| | | | llvm-svn: 301799
* [LLVM][inline-asm] Altmacro absolute expression '%' featureMichael Zuckerman2017-05-011-0/+34
In this patch, I introduce a new alt macro feature. This feature adds meaning for the % when using it as a prefix to the calling macro arguments. In the altmacro mode, the percent sign '%' before an absolute expression convert the expression first to a string. As described in the https://sourceware.org/binutils/docs-2.27/as/Altmacro.html "Expression results as strings You can write `%expr' to evaluate the expression expr and use the result as a string." expression assumptions: 1. '%' can only evaluate an absolute expression. 2. Altmacro '%' must be the first character of the evaluated expression. 3. If no '%' is located before the expression, a regular module operation is expected. 4. The result of Absolute Expressions can be only integer. Differential Revision: https://reviews.llvm.org/D32526 llvm-svn: 301797
OpenPOWER on IntegriCloud