From af5b146324e2a20a432649723cf8d22487b1e499 Mon Sep 17 00:00:00 2001 From: Adam Gemmell Date: Wed, 13 Oct 2021 10:44:02 +0100 Subject: [PATCH] Use non-checking TLS relocation in aarch64 asm! sym test. The checking variant ensures that the offset required is not larger than 12 bits - hence we wouldn't ever need the upper 12 bits. --- src/test/ui/asm/aarch64/sym.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/ui/asm/aarch64/sym.rs b/src/test/ui/asm/aarch64/sym.rs index db732e96b80b6..6fd1192eec6e0 100644 --- a/src/test/ui/asm/aarch64/sym.rs +++ b/src/test/ui/asm/aarch64/sym.rs @@ -55,7 +55,7 @@ macro_rules! static_tls_addr { // Add the top 12 bits of the symbol's offset "add {out}, {out}, :tprel_hi12:{sym}", // And the bottom 12 bits - "add {out}, {out}, :tprel_lo12:{sym}", + "add {out}, {out}, :tprel_lo12_nc:{sym}", out = out(reg) result, sym = sym $s );