@@ -68,35 +68,3 @@ pub(crate) mod neon;
68
68
#[ cfg( target_endian = "little" ) ]
69
69
#[ cfg( any( target_feature = "v7" , doc) ) ]
70
70
pub use neon:: * ;
71
-
72
- /// Generates the trap instruction `UDF`
73
- #[ cfg( target_arch = "arm" ) ]
74
- #[ cfg_attr( test, assert_instr( udf) ) ]
75
- #[ inline]
76
- pub unsafe fn udf ( ) -> ! {
77
- crate :: intrinsics:: abort ( )
78
- }
79
-
80
- /// Generates a DBG instruction.
81
- ///
82
- /// This provides a hint to debugging and related systems. The argument must be
83
- /// a constant integer from 0 to 15 inclusive. See implementation documentation
84
- /// for the effect (if any) of this instruction and the meaning of the
85
- /// argument. This is available only when compiling for AArch32.
86
- // Section 10.1 of ACLE says that the supported arches are: 7, 7-M
87
- // "The DBG hint instruction is added in ARMv7. It is UNDEFINED in the ARMv6 base architecture, and
88
- // executes as a NOP instruction in ARMv6K and ARMv6T2." - ARM Architecture Reference Manual ARMv7-A
89
- // and ARMv7-R edition (ARM DDI 0406C.c) sections D12.4.1 "ARM instruction set support" and D12.4.2
90
- // "Thumb instruction set support"
91
- #[ cfg( any( target_feature = "v7" , doc) ) ]
92
- #[ inline( always) ]
93
- #[ rustc_legacy_const_generics( 0 ) ]
94
- pub unsafe fn __dbg < const IMM4 : i32 > ( ) {
95
- static_assert_uimm_bits ! ( IMM4 , 4 ) ;
96
- dbg ( IMM4 ) ;
97
- }
98
-
99
- extern "unadjusted" {
100
- #[ link_name = "llvm.arm.dbg" ]
101
- fn dbg ( _: i32 ) ;
102
- }
0 commit comments