@@ -1426,28 +1426,6 @@ impl Assembler {
14261426 Insn :: CPopInto ( opnd) => {
14271427 emit_pop ( cb, opnd. into ( ) ) ;
14281428 } ,
1429- Insn :: CPushAll => {
1430- let regs = Assembler :: get_caller_save_regs ( ) ;
1431-
1432- for reg in regs {
1433- emit_push ( cb, A64Opnd :: Reg ( reg) ) ;
1434- }
1435-
1436- // Push the flags/state register
1437- mrs ( cb, Self :: EMIT_OPND , SystemRegister :: NZCV ) ;
1438- emit_push ( cb, Self :: EMIT_OPND ) ;
1439- } ,
1440- Insn :: CPopAll => {
1441- let regs = Assembler :: get_caller_save_regs ( ) ;
1442-
1443- // Pop the state/flags register
1444- msr ( cb, SystemRegister :: NZCV , Self :: EMIT_OPND ) ;
1445- emit_pop ( cb, Self :: EMIT_OPND ) ;
1446-
1447- for reg in regs. into_iter ( ) . rev ( ) {
1448- emit_pop ( cb, A64Opnd :: Reg ( reg) ) ;
1449- }
1450- } ,
14511429 Insn :: CCall { fptr, .. } => {
14521430 match fptr {
14531431 Opnd :: UImm ( fptr) => {
@@ -1881,50 +1859,6 @@ mod tests {
18811859 assert_snapshot ! ( cb. hexdump( ) , @"48656c6c6f2c20776f726c6421000000" ) ;
18821860 }
18831861
1884- #[ test]
1885- fn test_emit_cpush_all ( ) {
1886- let ( mut asm, mut cb) = setup_asm ( ) ;
1887-
1888- asm. cpush_all ( ) ;
1889- asm. compile_with_num_regs ( & mut cb, 0 ) ;
1890-
1891- assert_disasm_snapshot ! ( cb. disasm( ) , @r"
1892- 0x0: str x1, [sp, #-0x10]!
1893- 0x4: str x9, [sp, #-0x10]!
1894- 0x8: str x10, [sp, #-0x10]!
1895- 0xc: str x11, [sp, #-0x10]!
1896- 0x10: str x12, [sp, #-0x10]!
1897- 0x14: str x13, [sp, #-0x10]!
1898- 0x18: str x14, [sp, #-0x10]!
1899- 0x1c: str x15, [sp, #-0x10]!
1900- 0x20: mrs x16, nzcv
1901- 0x24: str x16, [sp, #-0x10]!
1902- " ) ;
1903- assert_snapshot ! ( cb. hexdump( ) , @"e10f1ff8e90f1ff8ea0f1ff8eb0f1ff8ec0f1ff8ed0f1ff8ee0f1ff8ef0f1ff810423bd5f00f1ff8" ) ;
1904- }
1905-
1906- #[ test]
1907- fn test_emit_cpop_all ( ) {
1908- let ( mut asm, mut cb) = setup_asm ( ) ;
1909-
1910- asm. cpop_all ( ) ;
1911- asm. compile_with_num_regs ( & mut cb, 0 ) ;
1912-
1913- assert_disasm_snapshot ! ( cb. disasm( ) , @r"
1914- 0x0: msr nzcv, x16
1915- 0x4: ldr x16, [sp], #0x10
1916- 0x8: ldr x15, [sp], #0x10
1917- 0xc: ldr x14, [sp], #0x10
1918- 0x10: ldr x13, [sp], #0x10
1919- 0x14: ldr x12, [sp], #0x10
1920- 0x18: ldr x11, [sp], #0x10
1921- 0x1c: ldr x10, [sp], #0x10
1922- 0x20: ldr x9, [sp], #0x10
1923- 0x24: ldr x1, [sp], #0x10
1924- " ) ;
1925- assert_snapshot ! ( cb. hexdump( ) , @"10421bd5f00741f8ef0741f8ee0741f8ed0741f8ec0741f8eb0741f8ea0741f8e90741f8e10741f8" ) ;
1926- }
1927-
19281862 #[ test]
19291863 fn test_emit_frame ( ) {
19301864 let ( mut asm, mut cb) = setup_asm ( ) ;
0 commit comments