mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
Fix: appeased x.py test tidy --bless
This commit is contained in:
parent
eeb0b52bf8
commit
0c9e23c7ce
@ -257,7 +257,7 @@ impl InlineAsmReg {
|
||||
Self::PowerPC(r) => r.name(),
|
||||
Self::Hexagon(r) => r.name(),
|
||||
Self::Mips(r) => r.name(),
|
||||
Self::S390x(r) => r.name(),
|
||||
Self::S390x(r) => r.name(),
|
||||
Self::Bpf(r) => r.name(),
|
||||
Self::Err => "<reg>",
|
||||
}
|
||||
@ -312,7 +312,7 @@ impl InlineAsmReg {
|
||||
InlineAsmArch::Mips | InlineAsmArch::Mips64 => {
|
||||
Self::Mips(MipsInlineAsmReg::parse(arch, has_feature, target, &name)?)
|
||||
}
|
||||
InlineAsmArch::S390x => {
|
||||
InlineAsmArch::S390x => {
|
||||
Self::S390x(S390xInlineAsmReg::parse(arch, has_feature, target, &name)?)
|
||||
}
|
||||
InlineAsmArch::SpirV => {
|
||||
@ -715,11 +715,11 @@ pub fn allocatable_registers(
|
||||
mips::fill_reg_map(arch, has_feature, target, &mut map);
|
||||
map
|
||||
}
|
||||
InlineAsmArch::S390x => {
|
||||
let mut map = s390x::regclass_map();
|
||||
InlineAsmArch::S390x => {
|
||||
let mut map = s390x::regclass_map();
|
||||
s390x::fill_reg_map(arch, has_feature, target, &mut map);
|
||||
map
|
||||
}
|
||||
}
|
||||
InlineAsmArch::SpirV => {
|
||||
let mut map = spirv::regclass_map();
|
||||
spirv::fill_reg_map(arch, has_feature, target, &mut map);
|
||||
|
@ -113,7 +113,7 @@ def_regs! {
|
||||
"c14 is reserved by the kernel and cannot be used as an operand for inline asm",
|
||||
#error = ["c15"] =>
|
||||
"c15 is reserved by the kernel and cannot be used as an operand for inline asm",
|
||||
#error = ["a2"] =>
|
||||
#error = ["a2"] =>
|
||||
"a2 is not supported by LLVM and cannot be used as an operand for inline asm",
|
||||
#error = ["a3"] =>
|
||||
"a3 is not supported by LLVM and cannot be used as an operand for inline asm",
|
||||
|
@ -49,7 +49,7 @@ extern "Rust" {
|
||||
}
|
||||
|
||||
macro_rules! check { ($func:ident, $ty:ty, $class:ident, $mov:literal) => {
|
||||
#[no_mangle]
|
||||
#[no_mangle]
|
||||
pub unsafe fn $func(x: $ty) -> $ty {
|
||||
dont_merge(stringify!(func));
|
||||
|
||||
@ -60,7 +60,7 @@ macro_rules! check { ($func:ident, $ty:ty, $class:ident, $mov:literal) => {
|
||||
};}
|
||||
|
||||
macro_rules! check_reg { ($func:ident, $ty:ty, $reg:tt, $mov:literal) => {
|
||||
#[no_mangle]
|
||||
#[no_mangle]
|
||||
pub unsafe fn $func(x: $ty) -> $ty {
|
||||
dont_merge(stringify!(func));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user