Skip to content

Commit 361c5ea

Browse files
committed
remove register ordering from fma assert_instr
1 parent ea7aaae commit 361c5ea

File tree

1 file changed

+30
-30
lines changed

1 file changed

+30
-30
lines changed

coresimd/x86/fma.rs

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ use stdsimd_test::assert_instr;
2929
/// [Intel's documentation](https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_fmadd_pd)
3030
#[inline]
3131
#[target_feature(enable = "fma")]
32-
#[cfg_attr(test, assert_instr(vfmadd213pd))]
32+
#[cfg_attr(test, assert_instr(vfmadd))]
3333
#[stable(feature = "simd_x86", since = "1.27.0")]
3434
pub unsafe fn _mm_fmadd_pd(a: __m128d, b: __m128d, c: __m128d) -> __m128d {
3535
vfmaddpd(a, b, c)
@@ -41,7 +41,7 @@ pub unsafe fn _mm_fmadd_pd(a: __m128d, b: __m128d, c: __m128d) -> __m128d {
4141
/// [Intel's documentation](https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm256_fmadd_pd)
4242
#[inline]
4343
#[target_feature(enable = "fma")]
44-
#[cfg_attr(test, assert_instr(vfmadd213pd))]
44+
#[cfg_attr(test, assert_instr(vfmadd))]
4545
#[stable(feature = "simd_x86", since = "1.27.0")]
4646
pub unsafe fn _mm256_fmadd_pd(a: __m256d, b: __m256d, c: __m256d) -> __m256d {
4747
vfmaddpd256(a, b, c)
@@ -53,7 +53,7 @@ pub unsafe fn _mm256_fmadd_pd(a: __m256d, b: __m256d, c: __m256d) -> __m256d {
5353
/// [Intel's documentation](https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_fmadd_ps)
5454
#[inline]
5555
#[target_feature(enable = "fma")]
56-
#[cfg_attr(test, assert_instr(vfmadd213ps))]
56+
#[cfg_attr(test, assert_instr(vfmadd))]
5757
#[stable(feature = "simd_x86", since = "1.27.0")]
5858
pub unsafe fn _mm_fmadd_ps(a: __m128, b: __m128, c: __m128) -> __m128 {
5959
vfmaddps(a, b, c)
@@ -65,7 +65,7 @@ pub unsafe fn _mm_fmadd_ps(a: __m128, b: __m128, c: __m128) -> __m128 {
6565
/// [Intel's documentation](https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm256_fmadd_ps)
6666
#[inline]
6767
#[target_feature(enable = "fma")]
68-
#[cfg_attr(test, assert_instr(vfmadd213ps))]
68+
#[cfg_attr(test, assert_instr(vfmadd))]
6969
#[stable(feature = "simd_x86", since = "1.27.0")]
7070
pub unsafe fn _mm256_fmadd_ps(a: __m256, b: __m256, c: __m256) -> __m256 {
7171
vfmaddps256(a, b, c)
@@ -79,7 +79,7 @@ pub unsafe fn _mm256_fmadd_ps(a: __m256, b: __m256, c: __m256) -> __m256 {
7979
/// [Intel's documentation](https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_fmadd_sd)
8080
#[inline]
8181
#[target_feature(enable = "fma")]
82-
#[cfg_attr(test, assert_instr(vfmadd213sd))]
82+
#[cfg_attr(test, assert_instr(vfmadd))]
8383
#[stable(feature = "simd_x86", since = "1.27.0")]
8484
pub unsafe fn _mm_fmadd_sd(a: __m128d, b: __m128d, c: __m128d) -> __m128d {
8585
vfmaddsd(a, b, c)
@@ -93,7 +93,7 @@ pub unsafe fn _mm_fmadd_sd(a: __m128d, b: __m128d, c: __m128d) -> __m128d {
9393
/// [Intel's documentation](https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_fmadd_ss)
9494
#[inline]
9595
#[target_feature(enable = "fma")]
96-
#[cfg_attr(test, assert_instr(vfmadd213ss))]
96+
#[cfg_attr(test, assert_instr(vfmadd))]
9797
#[stable(feature = "simd_x86", since = "1.27.0")]
9898
pub unsafe fn _mm_fmadd_ss(a: __m128, b: __m128, c: __m128) -> __m128 {
9999
vfmaddss(a, b, c)
@@ -106,7 +106,7 @@ pub unsafe fn _mm_fmadd_ss(a: __m128, b: __m128, c: __m128) -> __m128 {
106106
/// [Intel's documentation](https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_fmaddsub_pd)
107107
#[inline]
108108
#[target_feature(enable = "fma")]
109-
#[cfg_attr(test, assert_instr(vfmaddsub213pd))]
109+
#[cfg_attr(test, assert_instr(vfmaddsub))]
110110
#[stable(feature = "simd_x86", since = "1.27.0")]
111111
pub unsafe fn _mm_fmaddsub_pd(a: __m128d, b: __m128d, c: __m128d) -> __m128d {
112112
vfmaddsubpd(a, b, c)
@@ -119,7 +119,7 @@ pub unsafe fn _mm_fmaddsub_pd(a: __m128d, b: __m128d, c: __m128d) -> __m128d {
119119
/// [Intel's documentation](https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm256_fmaddsub_pd)
120120
#[inline]
121121
#[target_feature(enable = "fma")]
122-
#[cfg_attr(test, assert_instr(vfmaddsub213pd))]
122+
#[cfg_attr(test, assert_instr(vfmaddsub))]
123123
#[stable(feature = "simd_x86", since = "1.27.0")]
124124
pub unsafe fn _mm256_fmaddsub_pd(
125125
a: __m256d, b: __m256d, c: __m256d,
@@ -134,7 +134,7 @@ pub unsafe fn _mm256_fmaddsub_pd(
134134
/// [Intel's documentation](https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_fmaddsub_ps)
135135
#[inline]
136136
#[target_feature(enable = "fma")]
137-
#[cfg_attr(test, assert_instr(vfmaddsub213ps))]
137+
#[cfg_attr(test, assert_instr(vfmaddsub))]
138138
#[stable(feature = "simd_x86", since = "1.27.0")]
139139
pub unsafe fn _mm_fmaddsub_ps(a: __m128, b: __m128, c: __m128) -> __m128 {
140140
vfmaddsubps(a, b, c)
@@ -147,7 +147,7 @@ pub unsafe fn _mm_fmaddsub_ps(a: __m128, b: __m128, c: __m128) -> __m128 {
147147
/// [Intel's documentation](https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm256_fmaddsub_ps)
148148
#[inline]
149149
#[target_feature(enable = "fma")]
150-
#[cfg_attr(test, assert_instr(vfmaddsub213ps))]
150+
#[cfg_attr(test, assert_instr(vfmaddsub))]
151151
#[stable(feature = "simd_x86", since = "1.27.0")]
152152
pub unsafe fn _mm256_fmaddsub_ps(a: __m256, b: __m256, c: __m256) -> __m256 {
153153
vfmaddsubps256(a, b, c)
@@ -159,7 +159,7 @@ pub unsafe fn _mm256_fmaddsub_ps(a: __m256, b: __m256, c: __m256) -> __m256 {
159159
/// [Intel's documentation](https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_fmsub_pd)
160160
#[inline]
161161
#[target_feature(enable = "fma")]
162-
#[cfg_attr(test, assert_instr(vfmsub213pd))]
162+
#[cfg_attr(test, assert_instr(vfmsub))]
163163
#[stable(feature = "simd_x86", since = "1.27.0")]
164164
pub unsafe fn _mm_fmsub_pd(a: __m128d, b: __m128d, c: __m128d) -> __m128d {
165165
vfmsubpd(a, b, c)
@@ -171,7 +171,7 @@ pub unsafe fn _mm_fmsub_pd(a: __m128d, b: __m128d, c: __m128d) -> __m128d {
171171
/// [Intel's documentation](https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm256_fmsub_pd)
172172
#[inline]
173173
#[target_feature(enable = "fma")]
174-
#[cfg_attr(test, assert_instr(vfmsub213pd))]
174+
#[cfg_attr(test, assert_instr(vfmsub))]
175175
#[stable(feature = "simd_x86", since = "1.27.0")]
176176
pub unsafe fn _mm256_fmsub_pd(a: __m256d, b: __m256d, c: __m256d) -> __m256d {
177177
vfmsubpd256(a, b, c)
@@ -209,7 +209,7 @@ pub unsafe fn _mm256_fmsub_ps(a: __m256, b: __m256, c: __m256) -> __m256 {
209209
/// [Intel's documentation](https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_fmsub_sd)
210210
#[inline]
211211
#[target_feature(enable = "fma")]
212-
#[cfg_attr(test, assert_instr(vfmsub213sd))]
212+
#[cfg_attr(test, assert_instr(vfmsub))]
213213
#[stable(feature = "simd_x86", since = "1.27.0")]
214214
pub unsafe fn _mm_fmsub_sd(a: __m128d, b: __m128d, c: __m128d) -> __m128d {
215215
vfmsubsd(a, b, c)
@@ -223,7 +223,7 @@ pub unsafe fn _mm_fmsub_sd(a: __m128d, b: __m128d, c: __m128d) -> __m128d {
223223
/// [Intel's documentation](https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_fmsub_ss)
224224
#[inline]
225225
#[target_feature(enable = "fma")]
226-
#[cfg_attr(test, assert_instr(vfmsub213ss))]
226+
#[cfg_attr(test, assert_instr(vfmsub))]
227227
#[stable(feature = "simd_x86", since = "1.27.0")]
228228
pub unsafe fn _mm_fmsub_ss(a: __m128, b: __m128, c: __m128) -> __m128 {
229229
vfmsubss(a, b, c)
@@ -236,7 +236,7 @@ pub unsafe fn _mm_fmsub_ss(a: __m128, b: __m128, c: __m128) -> __m128 {
236236
/// [Intel's documentation](https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_fmsubadd_pd)
237237
#[inline]
238238
#[target_feature(enable = "fma")]
239-
#[cfg_attr(test, assert_instr(vfmsubadd213pd))]
239+
#[cfg_attr(test, assert_instr(vfmsubadd))]
240240
#[stable(feature = "simd_x86", since = "1.27.0")]
241241
pub unsafe fn _mm_fmsubadd_pd(a: __m128d, b: __m128d, c: __m128d) -> __m128d {
242242
vfmsubaddpd(a, b, c)
@@ -249,7 +249,7 @@ pub unsafe fn _mm_fmsubadd_pd(a: __m128d, b: __m128d, c: __m128d) -> __m128d {
249249
/// [Intel's documentation](https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm256_fmsubadd_pd)
250250
#[inline]
251251
#[target_feature(enable = "fma")]
252-
#[cfg_attr(test, assert_instr(vfmsubadd213pd))]
252+
#[cfg_attr(test, assert_instr(vfmsubadd))]
253253
#[stable(feature = "simd_x86", since = "1.27.0")]
254254
pub unsafe fn _mm256_fmsubadd_pd(
255255
a: __m256d, b: __m256d, c: __m256d,
@@ -264,7 +264,7 @@ pub unsafe fn _mm256_fmsubadd_pd(
264264
/// [Intel's documentation](https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_fmsubadd_ps)
265265
#[inline]
266266
#[target_feature(enable = "fma")]
267-
#[cfg_attr(test, assert_instr(vfmsubadd213ps))]
267+
#[cfg_attr(test, assert_instr(vfmsubadd))]
268268
#[stable(feature = "simd_x86", since = "1.27.0")]
269269
pub unsafe fn _mm_fmsubadd_ps(a: __m128, b: __m128, c: __m128) -> __m128 {
270270
vfmsubaddps(a, b, c)
@@ -277,7 +277,7 @@ pub unsafe fn _mm_fmsubadd_ps(a: __m128, b: __m128, c: __m128) -> __m128 {
277277
/// [Intel's documentation](https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm256_fmsubadd_ps)
278278
#[inline]
279279
#[target_feature(enable = "fma")]
280-
#[cfg_attr(test, assert_instr(vfmsubadd213ps))]
280+
#[cfg_attr(test, assert_instr(vfmsubadd))]
281281
#[stable(feature = "simd_x86", since = "1.27.0")]
282282
pub unsafe fn _mm256_fmsubadd_ps(a: __m256, b: __m256, c: __m256) -> __m256 {
283283
vfmsubaddps256(a, b, c)
@@ -289,7 +289,7 @@ pub unsafe fn _mm256_fmsubadd_ps(a: __m256, b: __m256, c: __m256) -> __m256 {
289289
/// [Intel's documentation](https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_fnmadd_pd)
290290
#[inline]
291291
#[target_feature(enable = "fma")]
292-
#[cfg_attr(test, assert_instr(vfnmadd213pd))]
292+
#[cfg_attr(test, assert_instr(vfnmadd))]
293293
#[stable(feature = "simd_x86", since = "1.27.0")]
294294
pub unsafe fn _mm_fnmadd_pd(a: __m128d, b: __m128d, c: __m128d) -> __m128d {
295295
vfnmaddpd(a, b, c)
@@ -301,7 +301,7 @@ pub unsafe fn _mm_fnmadd_pd(a: __m128d, b: __m128d, c: __m128d) -> __m128d {
301301
/// [Intel's documentation](https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm256_fnmadd_pd)
302302
#[inline]
303303
#[target_feature(enable = "fma")]
304-
#[cfg_attr(test, assert_instr(vfnmadd213pd))]
304+
#[cfg_attr(test, assert_instr(vfnmadd))]
305305
#[stable(feature = "simd_x86", since = "1.27.0")]
306306
pub unsafe fn _mm256_fnmadd_pd(a: __m256d, b: __m256d, c: __m256d) -> __m256d {
307307
vfnmaddpd256(a, b, c)
@@ -313,7 +313,7 @@ pub unsafe fn _mm256_fnmadd_pd(a: __m256d, b: __m256d, c: __m256d) -> __m256d {
313313
/// [Intel's documentation](https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_fnmadd_ps)
314314
#[inline]
315315
#[target_feature(enable = "fma")]
316-
#[cfg_attr(test, assert_instr(vfnmadd213ps))]
316+
#[cfg_attr(test, assert_instr(vfnmadd))]
317317
#[stable(feature = "simd_x86", since = "1.27.0")]
318318
pub unsafe fn _mm_fnmadd_ps(a: __m128, b: __m128, c: __m128) -> __m128 {
319319
vfnmaddps(a, b, c)
@@ -325,7 +325,7 @@ pub unsafe fn _mm_fnmadd_ps(a: __m128, b: __m128, c: __m128) -> __m128 {
325325
/// [Intel's documentation](https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm256_fnmadd_ps)
326326
#[inline]
327327
#[target_feature(enable = "fma")]
328-
#[cfg_attr(test, assert_instr(vfnmadd213ps))]
328+
#[cfg_attr(test, assert_instr(vfnmadd))]
329329
#[stable(feature = "simd_x86", since = "1.27.0")]
330330
pub unsafe fn _mm256_fnmadd_ps(a: __m256, b: __m256, c: __m256) -> __m256 {
331331
vfnmaddps256(a, b, c)
@@ -339,7 +339,7 @@ pub unsafe fn _mm256_fnmadd_ps(a: __m256, b: __m256, c: __m256) -> __m256 {
339339
/// [Intel's documentation](https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_fnmadd_sd)
340340
#[inline]
341341
#[target_feature(enable = "fma")]
342-
#[cfg_attr(test, assert_instr(vfnmadd213sd))]
342+
#[cfg_attr(test, assert_instr(vfnmadd))]
343343
#[stable(feature = "simd_x86", since = "1.27.0")]
344344
pub unsafe fn _mm_fnmadd_sd(a: __m128d, b: __m128d, c: __m128d) -> __m128d {
345345
vfnmaddsd(a, b, c)
@@ -353,7 +353,7 @@ pub unsafe fn _mm_fnmadd_sd(a: __m128d, b: __m128d, c: __m128d) -> __m128d {
353353
/// [Intel's documentation](https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_fnmadd_ss)
354354
#[inline]
355355
#[target_feature(enable = "fma")]
356-
#[cfg_attr(test, assert_instr(vfnmadd213ss))]
356+
#[cfg_attr(test, assert_instr(vfnmadd))]
357357
#[stable(feature = "simd_x86", since = "1.27.0")]
358358
pub unsafe fn _mm_fnmadd_ss(a: __m128, b: __m128, c: __m128) -> __m128 {
359359
vfnmaddss(a, b, c)
@@ -366,7 +366,7 @@ pub unsafe fn _mm_fnmadd_ss(a: __m128, b: __m128, c: __m128) -> __m128 {
366366
/// [Intel's documentation](https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_fnmsub_pd)
367367
#[inline]
368368
#[target_feature(enable = "fma")]
369-
#[cfg_attr(test, assert_instr(vfnmsub213pd))]
369+
#[cfg_attr(test, assert_instr(vfnmsub))]
370370
#[stable(feature = "simd_x86", since = "1.27.0")]
371371
pub unsafe fn _mm_fnmsub_pd(a: __m128d, b: __m128d, c: __m128d) -> __m128d {
372372
vfnmsubpd(a, b, c)
@@ -379,7 +379,7 @@ pub unsafe fn _mm_fnmsub_pd(a: __m128d, b: __m128d, c: __m128d) -> __m128d {
379379
/// [Intel's documentation](https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm256_fnmsub_pd)
380380
#[inline]
381381
#[target_feature(enable = "fma")]
382-
#[cfg_attr(test, assert_instr(vfnmsub213pd))]
382+
#[cfg_attr(test, assert_instr(vfnmsub))]
383383
#[stable(feature = "simd_x86", since = "1.27.0")]
384384
pub unsafe fn _mm256_fnmsub_pd(a: __m256d, b: __m256d, c: __m256d) -> __m256d {
385385
vfnmsubpd256(a, b, c)
@@ -392,7 +392,7 @@ pub unsafe fn _mm256_fnmsub_pd(a: __m256d, b: __m256d, c: __m256d) -> __m256d {
392392
/// [Intel's documentation](https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_fnmsub_ps)
393393
#[inline]
394394
#[target_feature(enable = "fma")]
395-
#[cfg_attr(test, assert_instr(vfnmsub213ps))]
395+
#[cfg_attr(test, assert_instr(vfnmsub))]
396396
#[stable(feature = "simd_x86", since = "1.27.0")]
397397
pub unsafe fn _mm_fnmsub_ps(a: __m128, b: __m128, c: __m128) -> __m128 {
398398
vfnmsubps(a, b, c)
@@ -405,7 +405,7 @@ pub unsafe fn _mm_fnmsub_ps(a: __m128, b: __m128, c: __m128) -> __m128 {
405405
/// [Intel's documentation](https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm256_fnmsub_ps)
406406
#[inline]
407407
#[target_feature(enable = "fma")]
408-
#[cfg_attr(test, assert_instr(vfnmsub213ps))]
408+
#[cfg_attr(test, assert_instr(vfnmsub))]
409409
#[stable(feature = "simd_x86", since = "1.27.0")]
410410
pub unsafe fn _mm256_fnmsub_ps(a: __m256, b: __m256, c: __m256) -> __m256 {
411411
vfnmsubps256(a, b, c)
@@ -420,7 +420,7 @@ pub unsafe fn _mm256_fnmsub_ps(a: __m256, b: __m256, c: __m256) -> __m256 {
420420
/// [Intel's documentation](https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_fnmsub_sd)
421421
#[inline]
422422
#[target_feature(enable = "fma")]
423-
#[cfg_attr(test, assert_instr(vfnmsub213sd))]
423+
#[cfg_attr(test, assert_instr(vfnmsub))]
424424
#[stable(feature = "simd_x86", since = "1.27.0")]
425425
pub unsafe fn _mm_fnmsub_sd(a: __m128d, b: __m128d, c: __m128d) -> __m128d {
426426
vfnmsubsd(a, b, c)
@@ -435,7 +435,7 @@ pub unsafe fn _mm_fnmsub_sd(a: __m128d, b: __m128d, c: __m128d) -> __m128d {
435435
/// [Intel's documentation](https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_fnmsub_ss)
436436
#[inline]
437437
#[target_feature(enable = "fma")]
438-
#[cfg_attr(test, assert_instr(vfnmsub213ss))]
438+
#[cfg_attr(test, assert_instr(vfnmsub))]
439439
#[stable(feature = "simd_x86", since = "1.27.0")]
440440
pub unsafe fn _mm_fnmsub_ss(a: __m128, b: __m128, c: __m128) -> __m128 {
441441
vfnmsubss(a, b, c)

0 commit comments

Comments
 (0)