aboutsummaryrefslogtreecommitdiff
path: root/tccasm.c
diff options
context:
space:
mode:
authorMichael Matz <matz@suse.de>2016-06-27 20:21:57 +0200
committerMichael Matz <matz@suse.de>2016-12-15 17:47:06 +0100
commitd5d881d9e946351f00cbc851b965f62553f6e830 (patch)
tree023b5e7e7b7471b11a17d1dae727793307991c4e /tccasm.c
parent8531de319a6e3ee6a8a5424657af853767426364 (diff)
downloadtinycc-d5d881d9e946351f00cbc851b965f62553f6e830.tar.gz
tinycc-d5d881d9e946351f00cbc851b965f62553f6e830.tar.bz2
x86-asm: Accept 'q' modifier
In inline extended asm '%q1' refers to the 64bit register of operand 1.
Diffstat (limited to 'tccasm.c')
-rw-r--r--tccasm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tccasm.c b/tccasm.c
index e8bc357..50fb794 100644
--- a/tccasm.c
+++ b/tccasm.c
@@ -946,7 +946,7 @@ static void subst_asm_operands(ASMOperand *operands, int nb_operands,
modifier = 0;
if (*str == 'c' || *str == 'n' ||
*str == 'b' || *str == 'w' ||
- *str == 'h' || *str == 'k')
+ *str == 'h' || *str == 'k' || *str == 'q')
modifier = *str++;
index = find_constraint(operands, nb_operands, str, &str);
if (index < 0)