[PATCH v2 1/1] aarch64: Add FEAT_LSC64B assembly support

Muhammad Kamran muhammad.kamran@arm.com
Tue Nov 10 13:36:58 GMT 2026


Add the +lsc64b architecture extension and the LSC64B instructions:

	- LDA64B
	- STL64B
	- STL64BV
	- STL64BV0

FEAT_LSC64B implies FEAT_LSCP, while the LSC64B instructions also
require FEAT_LS64.  Model this by making +lsc64b depend on +lscp and
requiring both LSC64B and LS64 in the opcode feature set.

Reuse the existing LS64 Rt operand as FEAT_LSC64B shares the same operand
constraints as FEAT_LS64.

Add assembler and disassembler tests for the new instructions, the Rt
register restriction, the LS64 dependency, and the LSCP implication.

Document lsc64b, and also fix the ls64 description.
---
 gas/config/tc-aarch64.c                    |  1 +
 gas/doc/c-aarch64.texi                     |  4 +-
 gas/testsuite/gas/aarch64/lsc64b-invalid.d |  3 +
 gas/testsuite/gas/aarch64/lsc64b-invalid.l | 33 ++++++++++
 gas/testsuite/gas/aarch64/lsc64b-invalid.s | 48 +++++++++++++++
 gas/testsuite/gas/aarch64/lsc64b.d         | 35 +++++++++++
 gas/testsuite/gas/aarch64/lsc64b.s         | 40 ++++++++++++
 include/opcode/aarch64.h                   |  4 +-
 opcodes/aarch64-dis-2.c                    | 72 +++++++++++++++++-----
 opcodes/aarch64-tbl-2.h                    |  4 ++
 opcodes/aarch64-tbl.h                      | 10 +++
 11 files changed, 236 insertions(+), 18 deletions(-)
 create mode 100644 gas/testsuite/gas/aarch64/lsc64b-invalid.d
 create mode 100644 gas/testsuite/gas/aarch64/lsc64b-invalid.l
 create mode 100644 gas/testsuite/gas/aarch64/lsc64b-invalid.s
 create mode 100644 gas/testsuite/gas/aarch64/lsc64b.d
 create mode 100644 gas/testsuite/gas/aarch64/lsc64b.s

diff --git a/gas/config/tc-aarch64.c b/gas/config/tc-aarch64.c
index acd36d26f6b..0d382cc566e 100644
--- a/gas/config/tc-aarch64.c
+++ b/gas/config/tc-aarch64.c
@@ -11114,6 +11114,7 @@ static const struct aarch64_option_cpu_value_table aarch64_features[] = {
   {"f32mm",		AARCH64_FEATURE (F32MM), AARCH64_FEATURE (SVE)},
   {"f64mm",		AARCH64_FEATURE (F64MM), AARCH64_FEATURE (SVE)},
   {"ls64",		AARCH64_FEATURE (LS64), AARCH64_NO_FEATURES},
+  {"lsc64b",		AARCH64_FEATURE (LSC64B), AARCH64_FEATURE (LSCP)},
   {"flagm",		AARCH64_FEATURE (FLAGM), AARCH64_NO_FEATURES},
   {"flagm2",		AARCH64_FEATURE (FLAGMANIP), AARCH64_FEATURE (FLAGM)},
   {"pauth",		AARCH64_FEATURE (PAUTH), AARCH64_NO_FEATURES},
diff --git a/gas/doc/c-aarch64.texi b/gas/doc/c-aarch64.texi
index 6a9fa2f98f3..9247c6992c6 100644
--- a/gas/doc/c-aarch64.texi
+++ b/gas/doc/c-aarch64.texi
@@ -249,9 +249,11 @@ automatically cause those extensions to be disabled.
 @item @code{lor} @tab
  @tab Enable Limited Ordering Regions extensions.
 @item @code{ls64} @tab
- @tab Enable the 64 Byte Loads/Stores extensions.
+ @tab Enable the 64 Byte Loads/Stores instructions.
 @item @code{lscp} @tab
  @tab Enable the load acquire and store release pair extension.
+@item @code{lsc64b} @tab @code{lscp}
+ @tab Enable the 64 Byte Loads/Stores Consistency instructions.
 @item @code{lse} @tab
  @tab Enable Large System extensions.
 @item @code{lse128} @tab @code{lse}
diff --git a/gas/testsuite/gas/aarch64/lsc64b-invalid.d b/gas/testsuite/gas/aarch64/lsc64b-invalid.d
new file mode 100644
index 00000000000..7c4ff50cfdc
--- /dev/null
+++ b/gas/testsuite/gas/aarch64/lsc64b-invalid.d
@@ -0,0 +1,3 @@
+#name: Atomic 64-byte load/store consistency instructions
+#source: lsc64b-invalid.s
+#error_output: lsc64b-invalid.l
diff --git a/gas/testsuite/gas/aarch64/lsc64b-invalid.l b/gas/testsuite/gas/aarch64/lsc64b-invalid.l
new file mode 100644
index 00000000000..d91d14911b2
--- /dev/null
+++ b/gas/testsuite/gas/aarch64/lsc64b-invalid.l
@@ -0,0 +1,33 @@
+.*: Assembler messages:
+.*: Error: invalid Rt register number in 64-byte load/store at operand 1 -- `lda64b x1,\[x1\]'
+.*: Error: invalid Rt register number in 64-byte load/store at operand 1 -- `lda64b x13,\[x1\]'
+.*: Error: invalid Rt register number in 64-byte load/store at operand 1 -- `lda64b x21,\[x1\]'
+.*: Error: invalid Rt register number in 64-byte load/store at operand 1 -- `lda64b x23,\[x1\]'
+.*: Error: invalid Rt register number in 64-byte load/store at operand 1 -- `lda64b x24,\[x1\]'
+.*: Error: invalid Rt register number in 64-byte load/store at operand 1 -- `lda64b x30,\[x1\]'
+.*: Error: invalid Rt register number in 64-byte load/store at operand 1 -- `lda64b xzr,\[x1\]'
+.*: Error: invalid Rt register number in 64-byte load/store at operand 1 -- `stl64b x1,\[x1\]'
+.*: Error: invalid Rt register number in 64-byte load/store at operand 1 -- `stl64b x13,\[x1\]'
+.*: Error: invalid Rt register number in 64-byte load/store at operand 1 -- `stl64b x21,\[x1\]'
+.*: Error: invalid Rt register number in 64-byte load/store at operand 1 -- `stl64b x23,\[x1\]'
+.*: Error: invalid Rt register number in 64-byte load/store at operand 1 -- `stl64b x24,\[x1\]'
+.*: Error: invalid Rt register number in 64-byte load/store at operand 1 -- `stl64b x30,\[x1\]'
+.*: Error: invalid Rt register number in 64-byte load/store at operand 1 -- `stl64b xzr,\[x1\]'
+.*: Error: invalid Rt register number in 64-byte load/store at operand 2 -- `stl64bv x0,x1,\[x2\]'
+.*: Error: invalid Rt register number in 64-byte load/store at operand 2 -- `stl64bv x0,x13,\[x1\]'
+.*: Error: invalid Rt register number in 64-byte load/store at operand 2 -- `stl64bv x0,x21,\[x1\]'
+.*: Error: invalid Rt register number in 64-byte load/store at operand 2 -- `stl64bv x0,x23,\[x1\]'
+.*: Error: invalid Rt register number in 64-byte load/store at operand 2 -- `stl64bv x0,x24,\[x1\]'
+.*: Error: invalid Rt register number in 64-byte load/store at operand 2 -- `stl64bv x0,x30,\[x1\]'
+.*: Error: invalid Rt register number in 64-byte load/store at operand 2 -- `stl64bv x0,xzr,\[x1\]'
+.*: Error: invalid Rt register number in 64-byte load/store at operand 2 -- `stl64bv0 x0,x1,\[x2\]'
+.*: Error: invalid Rt register number in 64-byte load/store at operand 2 -- `stl64bv0 x0,x13,\[x1\]'
+.*: Error: invalid Rt register number in 64-byte load/store at operand 2 -- `stl64bv0 x0,x21,\[x1\]'
+.*: Error: invalid Rt register number in 64-byte load/store at operand 2 -- `stl64bv0 x0,x23,\[x1\]'
+.*: Error: invalid Rt register number in 64-byte load/store at operand 2 -- `stl64bv0 x0,x24,\[x1\]'
+.*: Error: invalid Rt register number in 64-byte load/store at operand 2 -- `stl64bv0 x0,x30,\[x1\]'
+.*: Error: invalid Rt register number in 64-byte load/store at operand 2 -- `stl64bv0 x0,xzr,\[x1\]'
+.*: Error: selected processor does not support `lda64b x0,\[x1\]'
+.*: Error: selected processor does not support `stl64b x0,\[x1\]'
+.*: Error: selected processor does not support `stl64bv x1,x0,\[x2\]'
+.*: Error: selected processor does not support `stl64bv0 x1,x0,\[x2\]'
diff --git a/gas/testsuite/gas/aarch64/lsc64b-invalid.s b/gas/testsuite/gas/aarch64/lsc64b-invalid.s
new file mode 100644
index 00000000000..bfe8bbeeaea
--- /dev/null
+++ b/gas/testsuite/gas/aarch64/lsc64b-invalid.s
@@ -0,0 +1,48 @@
+/* Atomic 64-byte load/store consistency instructions require Rt to be even
+   and <= 22.  */
+.arch armv9-a+ls64+lsc64b
+
+/* Single-copy Atomic 64-byte Load-acquire.  */
+	lda64b x1, [x1]
+	lda64b x13, [x1]
+	lda64b x21, [x1]
+	lda64b x23, [x1]
+	lda64b x24, [x1]
+	lda64b x30, [x1]
+	lda64b xzr, [x1]
+
+/* Single-copy Atomic 64-byte Store-release without Status Result.  */
+	stl64b x1, [x1]
+	stl64b x13, [x1]
+	stl64b x21, [x1]
+	stl64b x23, [x1]
+	stl64b x24, [x1]
+	stl64b x30, [x1]
+	stl64b xzr, [x1]
+
+
+/* Single-copy Atomic 64-byte Store-release with Status Result.  */
+	stl64bv x0, x1,  [x2]
+	stl64bv x0, x13, [x1]
+	stl64bv x0, x21, [x1]
+	stl64bv x0, x23, [x1]
+	stl64bv x0, x24, [x1]
+	stl64bv x0, x30, [x1]
+	stl64bv x0, xzr, [x1]
+
+
+/* Single-copy Atomic 64-byte EL0 Store-release with Status Result.  */
+	stl64bv0 x0, x1,  [x2]
+	stl64bv0 x0, x13, [x1]
+	stl64bv0 x0, x21, [x1]
+	stl64bv0 x0, x23, [x1]
+	stl64bv0 x0, x24, [x1]
+	stl64bv0 x0, x30, [x1]
+	stl64bv0 x0, xzr, [x1]
+
+/* Omit +ls64 in .arch.  */
+.arch armv9-a+lsc64b
+	lda64b x0, [x1]
+	stl64b x0, [x1]
+	stl64bv x1, x0, [x2]
+	stl64bv0 x1, x0, [x2]
diff --git a/gas/testsuite/gas/aarch64/lsc64b.d b/gas/testsuite/gas/aarch64/lsc64b.d
new file mode 100644
index 00000000000..0ec8c4ddcdf
--- /dev/null
+++ b/gas/testsuite/gas/aarch64/lsc64b.d
@@ -0,0 +1,35 @@
+#name: LSC64B instructions
+#objdump: -dr
+
+.*:     file format .*
+
+Disassembly of section \.text:
+
+0+ <.*>:
+.*:	f8bfd000 	lda64b	x0, \[x0\]
+.*:	f8bfd3e0 	lda64b	x0, \[sp\]
+.*:	f8bfd020 	lda64b	x0, \[x1\]
+.*:	f8bfd020 	lda64b	x0, \[x1\]
+.*:	f8bfd02e 	lda64b	x14, \[x1\]
+.*:	f8bfd036 	lda64b	x22, \[x1\]
+.*:	f87f9000 	stl64b	x0, \[x0\]
+.*:	f87f93e0 	stl64b	x0, \[sp\]
+.*:	f87f9020 	stl64b	x0, \[x1\]
+.*:	f87f9020 	stl64b	x0, \[x1\]
+.*:	f87f902e 	stl64b	x14, \[x1\]
+.*:	f87f9036 	stl64b	x22, \[x1\]
+.*:	f860b000 	stl64bv	x0, x0, \[x0\]
+.*:	f87fb000 	stl64bv	xzr, x0, \[x0\]
+.*:	f860b3e0 	stl64bv	x0, x0, \[sp\]
+.*:	f861b040 	stl64bv	x1, x0, \[x2\]
+.*:	f860b04e 	stl64bv	x0, x14, \[x2\]
+.*:	f860b056 	stl64bv	x0, x22, \[x2\]
+.*:	f860a000 	stl64bv0	x0, x0, \[x0\]
+.*:	f87fa000 	stl64bv0	xzr, x0, \[x0\]
+.*:	f860a3e0 	stl64bv0	x0, x0, \[sp\]
+.*:	f861a040 	stl64bv0	x1, x0, \[x2\]
+.*:	f860a04e 	stl64bv0	x0, x14, \[x2\]
+.*:	f860a056 	stl64bv0	x0, x22, \[x2\]
+.*:	d940581f 	ldap	xzr, x0, \[x0\]
+.*:	d940781f 	ldapp	xzr, x0, \[x0\]
+.*:	d9005800 	stlp	x0, x0, \[x0\]
diff --git a/gas/testsuite/gas/aarch64/lsc64b.s b/gas/testsuite/gas/aarch64/lsc64b.s
new file mode 100644
index 00000000000..7eb51ca71f4
--- /dev/null
+++ b/gas/testsuite/gas/aarch64/lsc64b.s
@@ -0,0 +1,40 @@
+/* Atomic 64-byte load/store consistency instructions.  */
+.arch armv9-a+ls64+lsc64b
+
+/* Single-copy Atomic 64-byte Load-acquire.  */
+	lda64b x0, [x0]
+	lda64b x0, [sp]
+	lda64b x0, [x1, #0]
+	lda64b x0, [x1]
+	lda64b x14, [x1]
+	lda64b x22, [x1]
+
+/* Single-copy Atomic 64-byte Store-release without Status Result.  */
+	stl64b x0, [x0]
+	stl64b x0, [sp]
+	stl64b x0, [x1, 0]
+	stl64b x0, [x1]
+	stl64b x14, [x1]
+	stl64b x22, [x1]
+
+/* Single-copy Atomic 64-byte Store-release with Status Result.  */
+	stl64bv x0, x0, [x0]
+	stl64bv xzr, x0, [x0]
+	stl64bv x0, x0, [sp]
+	stl64bv x1, x0, [x2]
+	stl64bv x0, x14, [x2]
+	stl64bv x0, x22, [x2]
+
+/* Single-copy Atomic 64-byte EL0 Store-release with Status Result.  */
+	stl64bv0 x0, x0, [x0]
+	stl64bv0 xzr, x0, [x0]
+	stl64bv0 x0, x0, [sp]
+	stl64bv0 x1, x0, [x2]
+	stl64bv0 x0, x14, [x2]
+	stl64bv0 x0, x22, [x2]
+
+/* Check that +lsc64b enables FEAT_LSCP without an explicit +lscp.  */
+.arch armv9-a+lsc64b
+	ldap xzr, x0, [x0]
+	ldapp xzr, x0, [x0]
+	stlp x0, x0, [x0]
diff --git a/include/opcode/aarch64.h b/include/opcode/aarch64.h
index bfe7489e813..48ed4eeb1fe 100644
--- a/include/opcode/aarch64.h
+++ b/include/opcode/aarch64.h
@@ -79,6 +79,8 @@ enum aarch64_feature_bit {
   AARCH64_FEATURE_SME,
   /* Atomic 64-byte load/store.  */
   AARCH64_FEATURE_LS64,
+  /* Atomic 64-byte load/store consistency.  */
+  AARCH64_FEATURE_LSC64B,
   /* v8.3 Pointer Authentication.  */
   AARCH64_FEATURE_PAUTH,
   /* Pointer Authentication LR signing extension.  */
@@ -631,7 +633,7 @@ enum aarch64_opnd
   AARCH64_OPND_Rt,	/* Integer register used in ld/st instructions.  */
   AARCH64_OPND_Rt2,	/* Integer register used in ld/st pair instructions.  */
   AARCH64_OPND_X16,	/* Integer register x16 in chkfeat instruction.  */
-  AARCH64_OPND_Rt_LS64,	/* Integer register used in LS64 instructions.  */
+  AARCH64_OPND_Rt_LS64,	/* Integer register used in LS64/LSC64B instructions.  */
   AARCH64_OPND_Rt_SP,	/* Integer Rt or SP used in STG instructions.  */
   AARCH64_OPND_Rs,	/* Integer register used in ld/st exclusive.  */
   AARCH64_OPND_Ra,	/* Integer register used in ddp_3src instructions.  */
diff --git a/opcodes/aarch64-dis-2.c b/opcodes/aarch64-dis-2.c
index 776c4ac2656..3e9ae926920 100644
--- a/opcodes/aarch64-dis-2.c
+++ b/opcodes/aarch64-dis-2.c
@@ -9415,10 +9415,20 @@ aarch64_opcode_lookup_1 (uint32_t word)
                                                                 }
                                                               else
                                                                 {
-                                                                  /* 33222222222211111111110000000000
-                                                                     10987654321098765432109876543210
-                                                                     x1111000011xxxxx101000xxxxxxxxxx.  */
-                                                                  return A64_OPID_7860a000_rcwsswpl_Rs_Rt_ADDR_SIMPLE;
+                                                                  if (((word >> 31) & 0x1) == 0)
+                                                                    {
+                                                                      /* 33222222222211111111110000000000
+                                                                         10987654321098765432109876543210
+                                                                         01111000011xxxxx101000xxxxxxxxxx.  */
+                                                                      return A64_OPID_7860a000_rcwsswpl_Rs_Rt_ADDR_SIMPLE;
+                                                                    }
+                                                                  else
+                                                                    {
+                                                                      /* 33222222222211111111110000000000
+                                                                         10987654321098765432109876543210
+                                                                         11111000011xxxxx101000xxxxxxxxxx.  */
+                                                                      return A64_OPID_f860a000_stl64bv0_Rs_Rt_LS64_ADDR_SIMPLE;
+                                                                    }
                                                                 }
                                                             }
                                                           else
@@ -9745,10 +9755,20 @@ aarch64_opcode_lookup_1 (uint32_t word)
                                                                 }
                                                               else
                                                                 {
-                                                                  /* 33222222222211111111110000000000
-                                                                     10987654321098765432109876543210
-                                                                     x1111000011xxxxx100100xxxxxxxxxx.  */
-                                                                  return A64_OPID_78609000_rcwsclrl_Rs_Rt_ADDR_SIMPLE;
+                                                                  if (((word >> 31) & 0x1) == 0)
+                                                                    {
+                                                                      /* 33222222222211111111110000000000
+                                                                         10987654321098765432109876543210
+                                                                         01111000011xxxxx100100xxxxxxxxxx.  */
+                                                                      return A64_OPID_78609000_rcwsclrl_Rs_Rt_ADDR_SIMPLE;
+                                                                    }
+                                                                  else
+                                                                    {
+                                                                      /* 33222222222211111111110000000000
+                                                                         10987654321098765432109876543210
+                                                                         11111000011xxxxx100100xxxxxxxxxx.  */
+                                                                      return A64_OPID_f87f9000_stl64b_Rt_LS64_ADDR_SIMPLE;
+                                                                    }
                                                                 }
                                                             }
                                                           else
@@ -9892,10 +9912,20 @@ aarch64_opcode_lookup_1 (uint32_t word)
                                                     }
                                                   else
                                                     {
-                                                      /* 33222222222211111111110000000000
-                                                         10987654321098765432109876543210
-                                                         xx111000xx1xxxxx110100xxxxxxxxxx.  */
-                                                      return A64_OPID_f83fd000_ld64b_Rt_LS64_ADDR_SIMPLE;
+                                                      if (((word >> 23) & 0x1) == 0)
+                                                        {
+                                                          /* 33222222222211111111110000000000
+                                                             10987654321098765432109876543210
+                                                             xx1110000x1xxxxx110100xxxxxxxxxx.  */
+                                                          return A64_OPID_f83fd000_ld64b_Rt_LS64_ADDR_SIMPLE;
+                                                        }
+                                                      else
+                                                        {
+                                                          /* 33222222222211111111110000000000
+                                                             10987654321098765432109876543210
+                                                             xx1110001x1xxxxx110100xxxxxxxxxx.  */
+                                                          return A64_OPID_f8bfd000_lda64b_Rt_LS64_ADDR_SIMPLE;
+                                                        }
                                                     }
                                                 }
                                             }
@@ -10082,10 +10112,20 @@ aarch64_opcode_lookup_1 (uint32_t word)
                                                                 }
                                                               else
                                                                 {
-                                                                  /* 33222222222211111111110000000000
-                                                                     10987654321098765432109876543210
-                                                                     x1111000011xxxxx101100xxxxxxxxxx.  */
-                                                                  return A64_OPID_7860b000_rcwssetl_Rs_Rt_ADDR_SIMPLE;
+                                                                  if (((word >> 31) & 0x1) == 0)
+                                                                    {
+                                                                      /* 33222222222211111111110000000000
+                                                                         10987654321098765432109876543210
+                                                                         01111000011xxxxx101100xxxxxxxxxx.  */
+                                                                      return A64_OPID_7860b000_rcwssetl_Rs_Rt_ADDR_SIMPLE;
+                                                                    }
+                                                                  else
+                                                                    {
+                                                                      /* 33222222222211111111110000000000
+                                                                         10987654321098765432109876543210
+                                                                         11111000011xxxxx101100xxxxxxxxxx.  */
+                                                                      return A64_OPID_f860b000_stl64bv_Rs_Rt_LS64_ADDR_SIMPLE;
+                                                                    }
                                                                 }
                                                             }
                                                           else
diff --git a/opcodes/aarch64-tbl-2.h b/opcodes/aarch64-tbl-2.h
index cff4ad80f90..ce900bfd772 100644
--- a/opcodes/aarch64-tbl-2.h
+++ b/opcodes/aarch64-tbl-2.h
@@ -1100,6 +1100,10 @@ enum aarch64_opcode_idx
   A64_OPID_f83f9000_st64b_Rt_LS64_ADDR_SIMPLE,
   A64_OPID_f820b000_st64bv_Rs_Rt_LS64_ADDR_SIMPLE,
   A64_OPID_f820a000_st64bv0_Rs_Rt_LS64_ADDR_SIMPLE,
+  A64_OPID_f8bfd000_lda64b_Rt_LS64_ADDR_SIMPLE,
+  A64_OPID_f87f9000_stl64b_Rt_LS64_ADDR_SIMPLE,
+  A64_OPID_f860b000_stl64bv_Rs_Rt_LS64_ADDR_SIMPLE,
+  A64_OPID_f860a000_stl64bv0_Rs_Rt_LS64_ADDR_SIMPLE,
   A64_OPID_12000000_and_Rd_SP_Rn_LIMM,
   A64_OPID_12000000_bic_Rd_SP_Rn_LIMM,
   A64_OPID_32000000_orr_Rd_SP_Rn_LIMM,
diff --git a/opcodes/aarch64-tbl.h b/opcodes/aarch64-tbl.h
index b59535de451..1af23de9c81 100644
--- a/opcodes/aarch64-tbl.h
+++ b/opcodes/aarch64-tbl.h
@@ -2998,6 +2998,8 @@ static const aarch64_feature_set aarch64_feature_v8r =
   AARCH64_FEATURE (V8R);
 static const aarch64_feature_set aarch64_feature_ls64 =
   AARCH64_FEATURE (LS64);
+static const aarch64_feature_set aarch64_feature_lsc64b =
+  AARCH64_FEATURES (2, LSC64B, LS64);
 static const aarch64_feature_set aarch64_feature_lscp =
   AARCH64_FEATURE (LSCP);
 static const aarch64_feature_set aarch64_feature_flagm =
@@ -3219,6 +3221,7 @@ static const aarch64_feature_set aarch64_feature_tev =
 #define I8MM      &aarch64_feature_i8mm
 #define ARMV8R	  &aarch64_feature_v8r
 #define LS64	  &aarch64_feature_ls64
+#define LSC64B	  &aarch64_feature_lsc64b
 #define LSCP	  &aarch64_feature_lscp
 #define FLAGM	  &aarch64_feature_flagm
 #define XS	  &aarch64_feature_xs
@@ -3486,6 +3489,8 @@ static const aarch64_feature_set aarch64_feature_tev =
   { NAME, OPCODE, MASK, CLASS, 0, WFXT, OPS, QUALS, FLAGS, 0, 0, NULL }
 #define _LS64_INSN(NAME,OPCODE,MASK,CLASS,OPS,QUALS,FLAGS) \
   { NAME, OPCODE, MASK, CLASS, 0, LS64, OPS, QUALS, FLAGS, 0, 0, NULL }
+#define _LSC64B_INSN(NAME,OPCODE,MASK,CLASS,OPS,QUALS,FLAGS) \
+  { NAME, OPCODE, MASK, CLASS, 0, LSC64B, OPS, QUALS, FLAGS, 0, 0, NULL }
 #define _LSCP_INSN(NAME,OPCODE,MASK,CLASS,OPS,QUALS,FLAGS) \
   { NAME, OPCODE, MASK, CLASS, 0, LSCP, OPS, QUALS, FLAGS, 0, 0, NULL }
 #define FLAGM_INSN(NAME,OPCODE,MASK,CLASS,OPS,QUALS,FLAGS) \
@@ -4882,6 +4887,11 @@ const struct aarch64_opcode aarch64_opcode_table[] =
   _LS64_INSN ("st64b",   0xf83f9000, 0xfffffc00, lse_atomic, OP2 (Rt_LS64, ADDR_SIMPLE), QL_X1NIL, 0),
   _LS64_INSN ("st64bv",  0xf820b000, 0xffe0fc00, lse_atomic, OP3 (Rs, Rt_LS64, ADDR_SIMPLE), QL_X2NIL, 0),
   _LS64_INSN ("st64bv0", 0xf820a000, 0xffe0fc00, lse_atomic, OP3 (Rs, Rt_LS64, ADDR_SIMPLE), QL_X2NIL, 0),
+  /* Atomic 64-byte load/store consistency in Armv9a.  */
+  _LSC64B_INSN ("lda64b",   0xf8bfd000, 0xfffffc00, lse_atomic, OP2 (Rt_LS64, ADDR_SIMPLE), QL_X1NIL, 0),
+  _LSC64B_INSN ("stl64b",   0xf87f9000, 0xfffffc00, lse_atomic, OP2 (Rt_LS64, ADDR_SIMPLE), QL_X1NIL, 0),
+  _LSC64B_INSN ("stl64bv",  0xf860b000, 0xffe0fc00, lse_atomic, OP3 (Rs, Rt_LS64, ADDR_SIMPLE), QL_X2NIL, 0),
+  _LSC64B_INSN ("stl64bv0", 0xf860a000, 0xffe0fc00, lse_atomic, OP3 (Rs, Rt_LS64, ADDR_SIMPLE), QL_X2NIL, 0),
   /* Logical (immediate).  */
   CORE_INSN ("and", 0x12000000, 0x7f800000, log_imm, 0, OP3 (Rd_SP, Rn, LIMM), QL_R2NIL, F_HAS_ALIAS | F_SF),
   CORE_INSN ("bic", 0x12000000, 0x7f800000, log_imm, OP_BIC, OP3 (Rd_SP, Rn, LIMM), QL_R2NIL, F_ALIAS | F_PSEUDO | F_SF),
-- 
2.43.0



More information about the Binutils mailing list