diff options
Diffstat (limited to 'tools/testing/selftests/arm64/mte/mte_helper.S')
-rw-r--r-- | tools/testing/selftests/arm64/mte/mte_helper.S | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tools/testing/selftests/arm64/mte/mte_helper.S b/tools/testing/selftests/arm64/mte/mte_helper.S index 48e049fbad9a..a02c04cd0aac 100644 --- a/tools/testing/selftests/arm64/mte/mte_helper.S +++ b/tools/testing/selftests/arm64/mte/mte_helper.S @@ -27,6 +27,20 @@ ENTRY(mte_insert_random_tag) ENDPROC(mte_insert_random_tag) /* + * mte_insert_new_tag: Insert new tag and different from the source tag if + * source pointer has it. + * Input: + * x0 - source pointer with a tag/no-tag + * Return: + * x0 - pointer with random tag + */ +ENTRY(mte_insert_new_tag) + gmi x1, x0, xzr + irg x0, x0, x1 + ret +ENDPROC(mte_insert_new_tag) + +/* * mte_get_tag_address: Get the tag from given address. * Input: * x0 - source pointer |