Skip to content

Commit 92d8946

Browse files
author
Victor Do Nascimento
committed
aarch64: Create QL_SRC_X2 and QL_DEST_X2 qualifier macros
Some 128-bit system operations (mrrs, msrr, tlbip, and sysp) take two qualified operands and one of unqualified type (e.g. system register name, tlbip operation). This creates the need for adequate qualifiers to handle this. This patch therefore introduces the `QL_SRC_X2' and `QL_DST_X2' qualifier specifiers, which expand to `QLF3(NIL,X,X)' and `QLF3(X,X,NIL)', respectively.
1 parent 5517af8 commit 92d8946

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

opcodes/aarch64-tbl.h

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,24 @@
5252
QLF2(NIL,X), \
5353
}
5454

55+
/* e.g. MSRR <systemreg>, <Xt>, <Xt2>. */
56+
#define QL_SRC_X2 \
57+
{ \
58+
QLF3(NIL,X,X), \
59+
}
60+
5561
/* e.g. MRS <Xt>, <systemreg>. */
5662
#define QL_DST_X \
5763
{ \
5864
QLF2(X,NIL), \
5965
}
6066

67+
/* e.g. MRRS <Xt>, <Xt2>, <systemreg>. */
68+
#define QL_DST_X2 \
69+
{ \
70+
QLF3(X,X,NIL), \
71+
}
72+
6173
/* e.g. SYS #<op1>, <Cn>, <Cm>, #<op2>{, <Xt>}. */
6274
#define QL_SYS \
6375
{ \

0 commit comments

Comments
 (0)