jrtc27 added a comment. This doesn’t work with dynamic linking (unless you use the recently-added STO_RISCV_VARIANT_CC) as t2 can be clobbered by the resolver. CHANGES SINCE LAST ACTION https://reviews.llvm.org/D129106/new/ https://reviews.llvm.org/D129106