2 * Memory tagging, basic pass cases.
4 * Copyright (c) 2021 Linaro Ltd
5 * SPDX-License-Identifier: GPL-2.0-or-later
10 int main(int ac
, char **av
)
15 enable_mte(PR_MTE_TCF_NONE
);
16 p0
= alloc_mte_mem(sizeof(*p0
));
18 asm("irg %0,%1,%2" : "=r"(p1
) : "r"(p0
), "r"(1));
20 asm("subp %0,%1,%2" : "=r"(c
) : "r"(p0
), "r"(p1
));
23 asm("stg %0, [%0]" : : "r"(p1
));
24 asm("ldg %0, [%1]" : "=r"(p2
) : "r"(p0
), "0"(p0
));