parent
521db88cd9
commit
60b7c2aaef
@ -479,10 +479,13 @@ fn reg_to_llvm(reg: InlineAsmRegOrRegClass, layout: Option<&TyAndLayout<'tcx>>)
|
|||||||
_ => unreachable!(),
|
_ => unreachable!(),
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// We use i32 as the type for discarded outputs
|
// We use i64x2 as the type for discarded outputs
|
||||||
's'
|
'q'
|
||||||
};
|
};
|
||||||
format!("{{{}{}}}", class, idx)
|
format!("{{{}{}}}", class, idx)
|
||||||
|
} else if reg == InlineAsmReg::AArch64(AArch64InlineAsmReg::x30) {
|
||||||
|
// LLVM doesn't recognize x30
|
||||||
|
"lr".to_string()
|
||||||
} else {
|
} else {
|
||||||
format!("{{{}}}", reg.name())
|
format!("{{{}}}", reg.name())
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user