File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 1717#![ feature( panic_runtime) ]
1818#![ feature( staged_api) ]
1919#![ feature( rustc_attrs) ]
20- #![ feature( llvm_asm ) ]
20+ #![ feature( asm ) ]
2121
2222use core:: any:: Any ;
2323
@@ -62,11 +62,11 @@ pub unsafe extern "C" fn __rust_start_panic(_payload: usize) -> u32 {
6262 const FAST_FAIL_FATAL_APP_EXIT : usize = 7 ;
6363 cfg_if:: cfg_if! {
6464 if #[ cfg( any( target_arch = "x86" , target_arch = "x86_64" ) ) ] {
65- llvm_asm !( "int $$0x29" :: "{ ecx}" ( FAST_FAIL_FATAL_APP_EXIT ) :: : volatile ) ;
65+ asm !( "int $$0x29" , in ( " ecx" ) FAST_FAIL_FATAL_APP_EXIT ) ;
6666 } else if #[ cfg( target_arch = "arm" ) ] {
67- llvm_asm !( ".inst 0xDEFB" :: "{r0}" ( FAST_FAIL_FATAL_APP_EXIT ) :: : volatile ) ;
67+ asm !( "brk 0xDEFB" , in ( "r0" ) FAST_FAIL_FATAL_APP_EXIT ) ;
6868 } else if #[ cfg( target_arch = "aarch64" ) ] {
69- llvm_asm !( ".inst 0xF003" :: "{x0}" ( FAST_FAIL_FATAL_APP_EXIT ) :: : volatile ) ;
69+ asm !( "brk 0xF003" , in ( "x0" ) FAST_FAIL_FATAL_APP_EXIT ) ;
7070 } else {
7171 core:: intrinsics:: abort( ) ;
7272 }
Original file line number Diff line number Diff line change @@ -310,13 +310,13 @@ pub fn abort_internal() -> ! {
310310 unsafe {
311311 cfg_if:: cfg_if! {
312312 if #[ cfg( any( target_arch = "x86" , target_arch = "x86_64" ) ) ] {
313- llvm_asm !( "int $$0x29" :: "{ ecx}" ( FAST_FAIL_FATAL_APP_EXIT ) :: : volatile ) ;
313+ asm !( "int $$0x29" , in ( " ecx" ) FAST_FAIL_FATAL_APP_EXIT ) ;
314314 crate :: intrinsics:: unreachable( ) ;
315315 } else if #[ cfg( target_arch = "arm" ) ] {
316- llvm_asm !( ".inst 0xDEFB" :: "{r0}" ( FAST_FAIL_FATAL_APP_EXIT ) :: : volatile ) ;
316+ asm !( "brk 0xDEFB" , in ( "r0" ) FAST_FAIL_FATAL_APP_EXIT ) ;
317317 crate :: intrinsics:: unreachable( ) ;
318318 } else if #[ cfg( target_arch = "aarch64" ) ] {
319- llvm_asm !( ".inst 0xF003" :: "{x0}" ( FAST_FAIL_FATAL_APP_EXIT ) :: : volatile ) ;
319+ asm !( "brk 0xF003" , in ( "x0" ) FAST_FAIL_FATAL_APP_EXIT ) ;
320320 crate :: intrinsics:: unreachable( ) ;
321321 }
322322 }
You can’t perform that action at this time.
0 commit comments