mach backend: reduce the size of the Inst enum down to 32 bytes;

This commit is contained in:
Benjamin Bouvier
2020-06-01 16:22:29 +02:00
parent e227608510
commit 67c7a3ed19
6 changed files with 111 additions and 101 deletions

View File

@@ -2113,11 +2113,13 @@ fn test_aarch64_binemit() {
insns.push((
Inst::Call {
dest: Box::new(ExternalName::testcase("test0")),
uses: Vec::new().into_boxed_slice(),
defs: Vec::new().into_boxed_slice(),
loc: SourceLoc::default(),
opcode: Opcode::Call,
info: Box::new(CallInfo {
dest: ExternalName::testcase("test0"),
uses: Vec::new(),
defs: Vec::new(),
loc: SourceLoc::default(),
opcode: Opcode::Call,
}),
},
"00000094",
"bl 0",
@@ -2125,11 +2127,13 @@ fn test_aarch64_binemit() {
insns.push((
Inst::CallInd {
rn: xreg(10),
uses: Vec::new().into_boxed_slice(),
defs: Vec::new().into_boxed_slice(),
loc: SourceLoc::default(),
opcode: Opcode::CallIndirect,
info: Box::new(CallIndInfo {
rn: xreg(10),
uses: Vec::new(),
defs: Vec::new(),
loc: SourceLoc::default(),
opcode: Opcode::CallIndirect,
}),
},
"40013FD6",
"blr x10",