Skip to content

Commit

Permalink
Use non-checking TLS relocation in aarch64 asm! sym test.
Browse files Browse the repository at this point in the history
The checking variant ensures that the offset required is not larger than
12 bits - hence we wouldn't ever need the upper 12 bits.
  • Loading branch information
adamgemmell committed Oct 14, 2021
1 parent 7807a69 commit af5b146
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test/ui/asm/aarch64/sym.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
);
Expand Down

0 comments on commit af5b146

Please sign in to comment.