the inline assember is the same the llvm codegen backend, the rust frontend just treat the assembly code as black box. there's no reason the assember cannot recognize the special register name.
without more details the most likely reason I would guess is you probably passed the wrong --target triplet to cargo or rustc.
that's just an empty section (i.e. "table" in TOML terms) where target specific configurations should go under. the equivalent to the --target TRIPLE command line option is:
# .cargo/config.toml
[build]
target = "TRIPLE"
# can also be an array
target = [ "TRIPLE1", "TRIPLE2" ]