arm64: Support bool constants

Copyright (c) 2020, Arm Limited.
This commit is contained in:
Joey Gouly
2020-04-09 17:32:26 +01:00
committed by Benjamin Bouvier
parent 3638f8a764
commit ad9be0d445
2 changed files with 27 additions and 0 deletions

View File

@@ -184,6 +184,7 @@ fn output_to_const<C: LowerCtx<I = Inst>>(ctx: &mut C, out: InsnOutput) -> Optio
let imm: i64 = imm.into();
Some(imm as u64)
}
&InstructionData::UnaryBool { opcode: _, imm } => Some(u64::from(imm)),
&InstructionData::UnaryIeee32 { opcode: _, imm } => Some(u64::from(imm.bits())),
&InstructionData::UnaryIeee64 { opcode: _, imm } => Some(imm.bits()),
_ => None,