@@ -25,15 +25,6 @@ use stdarch_test::assert_instr;
25
25
26
26
use crate :: mem:: transmute;
27
27
28
- types ! {
29
- #![ unstable( feature = "stdarch_arm_dsp" , issue = "117237" ) ]
30
-
31
- /// ARM-specific 32-bit wide vector of two packed `i16`.
32
- pub struct int16x2_t( 2 x i16 ) ;
33
- /// ARM-specific 32-bit wide vector of two packed `u16`.
34
- pub struct uint16x2_t( 2 x u16 ) ;
35
- }
36
-
37
28
extern "unadjusted" {
38
29
#[ link_name = "llvm.arm.smulbb" ]
39
30
fn arm_smulbb ( a : i32 , b : i32 ) -> i32 ;
@@ -85,7 +76,7 @@ extern "unadjusted" {
85
76
#[ inline]
86
77
#[ cfg_attr( test, assert_instr( smulbb) ) ]
87
78
#[ unstable( feature = "stdarch_arm_dsp" , issue = "117237" ) ]
88
- pub unsafe fn __smulbb ( a : int16x2_t , b : int16x2_t ) -> i32 {
79
+ pub unsafe fn __smulbb ( a : i32 , b : i32 ) -> i32 {
89
80
arm_smulbb ( transmute ( a) , transmute ( b) )
90
81
}
91
82
@@ -96,7 +87,7 @@ pub unsafe fn __smulbb(a: int16x2_t, b: int16x2_t) -> i32 {
96
87
#[ inline]
97
88
#[ cfg_attr( test, assert_instr( smultb) ) ]
98
89
#[ unstable( feature = "stdarch_arm_dsp" , issue = "117237" ) ]
99
- pub unsafe fn __smultb ( a : int16x2_t , b : int16x2_t ) -> i32 {
90
+ pub unsafe fn __smultb ( a : i32 , b : i32 ) -> i32 {
100
91
arm_smultb ( transmute ( a) , transmute ( b) )
101
92
}
102
93
@@ -107,7 +98,7 @@ pub unsafe fn __smultb(a: int16x2_t, b: int16x2_t) -> i32 {
107
98
#[ inline]
108
99
#[ cfg_attr( test, assert_instr( smulbt) ) ]
109
100
#[ unstable( feature = "stdarch_arm_dsp" , issue = "117237" ) ]
110
- pub unsafe fn __smulbt ( a : int16x2_t , b : int16x2_t ) -> i32 {
101
+ pub unsafe fn __smulbt ( a : i32 , b : i32 ) -> i32 {
111
102
arm_smulbt ( transmute ( a) , transmute ( b) )
112
103
}
113
104
@@ -118,7 +109,7 @@ pub unsafe fn __smulbt(a: int16x2_t, b: int16x2_t) -> i32 {
118
109
#[ inline]
119
110
#[ cfg_attr( test, assert_instr( smultt) ) ]
120
111
#[ unstable( feature = "stdarch_arm_dsp" , issue = "117237" ) ]
121
- pub unsafe fn __smultt ( a : int16x2_t , b : int16x2_t ) -> i32 {
112
+ pub unsafe fn __smultt ( a : i32 , b : i32 ) -> i32 {
122
113
arm_smultt ( transmute ( a) , transmute ( b) )
123
114
}
124
115
@@ -130,7 +121,7 @@ pub unsafe fn __smultt(a: int16x2_t, b: int16x2_t) -> i32 {
130
121
#[ inline]
131
122
#[ cfg_attr( test, assert_instr( smulwb) ) ]
132
123
#[ unstable( feature = "stdarch_arm_dsp" , issue = "117237" ) ]
133
- pub unsafe fn __smulwb ( a : int16x2_t , b : i32 ) -> i32 {
124
+ pub unsafe fn __smulwb ( a : i32 , b : i32 ) -> i32 {
134
125
arm_smulwb ( transmute ( a) , b)
135
126
}
136
127
@@ -142,7 +133,7 @@ pub unsafe fn __smulwb(a: int16x2_t, b: i32) -> i32 {
142
133
#[ inline]
143
134
#[ cfg_attr( test, assert_instr( smulwt) ) ]
144
135
#[ unstable( feature = "stdarch_arm_dsp" , issue = "117237" ) ]
145
- pub unsafe fn __smulwt ( a : int16x2_t , b : i32 ) -> i32 {
136
+ pub unsafe fn __smulwt ( a : i32 , b : i32 ) -> i32 {
146
137
arm_smulwt ( transmute ( a) , b)
147
138
}
148
139
@@ -187,7 +178,7 @@ pub unsafe fn __qdbl(a: i32) -> i32 {
187
178
#[ inline]
188
179
#[ cfg_attr( test, assert_instr( smlabb) ) ]
189
180
#[ unstable( feature = "stdarch_arm_dsp" , issue = "117237" ) ]
190
- pub unsafe fn __smlabb ( a : int16x2_t , b : int16x2_t , c : i32 ) -> i32 {
181
+ pub unsafe fn __smlabb ( a : i32 , b : i32 , c : i32 ) -> i32 {
191
182
arm_smlabb ( transmute ( a) , transmute ( b) , c)
192
183
}
193
184
@@ -199,7 +190,7 @@ pub unsafe fn __smlabb(a: int16x2_t, b: int16x2_t, c: i32) -> i32 {
199
190
#[ inline]
200
191
#[ cfg_attr( test, assert_instr( smlabt) ) ]
201
192
#[ unstable( feature = "stdarch_arm_dsp" , issue = "117237" ) ]
202
- pub unsafe fn __smlabt ( a : int16x2_t , b : int16x2_t , c : i32 ) -> i32 {
193
+ pub unsafe fn __smlabt ( a : i32 , b : i32 , c : i32 ) -> i32 {
203
194
arm_smlabt ( transmute ( a) , transmute ( b) , c)
204
195
}
205
196
@@ -211,7 +202,7 @@ pub unsafe fn __smlabt(a: int16x2_t, b: int16x2_t, c: i32) -> i32 {
211
202
#[ inline]
212
203
#[ cfg_attr( test, assert_instr( smlatb) ) ]
213
204
#[ unstable( feature = "stdarch_arm_dsp" , issue = "117237" ) ]
214
- pub unsafe fn __smlatb ( a : int16x2_t , b : int16x2_t , c : i32 ) -> i32 {
205
+ pub unsafe fn __smlatb ( a : i32 , b : i32 , c : i32 ) -> i32 {
215
206
arm_smlatb ( transmute ( a) , transmute ( b) , c)
216
207
}
217
208
@@ -223,7 +214,7 @@ pub unsafe fn __smlatb(a: int16x2_t, b: int16x2_t, c: i32) -> i32 {
223
214
#[ inline]
224
215
#[ cfg_attr( test, assert_instr( smlatt) ) ]
225
216
#[ unstable( feature = "stdarch_arm_dsp" , issue = "117237" ) ]
226
- pub unsafe fn __smlatt ( a : int16x2_t , b : int16x2_t , c : i32 ) -> i32 {
217
+ pub unsafe fn __smlatt ( a : i32 , b : i32 , c : i32 ) -> i32 {
227
218
arm_smlatt ( transmute ( a) , transmute ( b) , c)
228
219
}
229
220
@@ -235,7 +226,7 @@ pub unsafe fn __smlatt(a: int16x2_t, b: int16x2_t, c: i32) -> i32 {
235
226
#[ inline]
236
227
#[ cfg_attr( test, assert_instr( smlawb) ) ]
237
228
#[ unstable( feature = "stdarch_arm_dsp" , issue = "117237" ) ]
238
- pub unsafe fn __smlawb ( a : i32 , b : int16x2_t , c : i32 ) -> i32 {
229
+ pub unsafe fn __smlawb ( a : i32 , b : i32 , c : i32 ) -> i32 {
239
230
arm_smlawb ( a, transmute ( b) , c)
240
231
}
241
232
@@ -247,7 +238,7 @@ pub unsafe fn __smlawb(a: i32, b: int16x2_t, c: i32) -> i32 {
247
238
#[ inline]
248
239
#[ cfg_attr( test, assert_instr( smlawt) ) ]
249
240
#[ unstable( feature = "stdarch_arm_dsp" , issue = "117237" ) ]
250
- pub unsafe fn __smlawt ( a : i32 , b : int16x2_t , c : i32 ) -> i32 {
241
+ pub unsafe fn __smlawt ( a : i32 , b : i32 , c : i32 ) -> i32 {
251
242
arm_smlawt ( a, transmute ( b) , c)
252
243
}
253
244
0 commit comments