File tree 2 files changed +25
-0
lines changed
2 files changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -1750,6 +1750,24 @@ _mm_set1_pd(double __w)
1750
1750
return (__m128d ){ __w , __w };
1751
1751
}
1752
1752
1753
+ /// \brief Constructs a 128-bit floating-point vector of [2 x double], with each
1754
+ /// of the two double-precision floating-point vector elements set to the
1755
+ /// specified double-precision floating-point value.
1756
+ ///
1757
+ /// \headerfile <x86intrin.h>
1758
+ ///
1759
+ /// This intrinsic corresponds to the <c> VMOVDDUP / MOVLHPS </c> instruction.
1760
+ ///
1761
+ /// \param __w
1762
+ /// A double-precision floating-point value used to initialize each vector
1763
+ /// element of the result.
1764
+ /// \returns An initialized 128-bit floating-point vector of [2 x double].
1765
+ static __inline__ __m128d __DEFAULT_FN_ATTRS
1766
+ _mm_set_pd1 (double __w )
1767
+ {
1768
+ return _mm_set1_pd (__w );
1769
+ }
1770
+
1753
1771
/// \brief Constructs a 128-bit floating-point vector of [2 x double]
1754
1772
/// initialized with the specified double-precision floating-point values.
1755
1773
///
Original file line number Diff line number Diff line change @@ -951,6 +951,13 @@ __m128d test_mm_set_pd(double A, double B) {
951
951
return _mm_set_pd (A , B );
952
952
}
953
953
954
+ __m128d test_mm_set_pd1 (double A ) {
955
+ // CHECK-LABEL: test_mm_set_pd1
956
+ // CHECK: insertelement <2 x double> undef, double %{{.*}}, i32 0
957
+ // CHECK: insertelement <2 x double> %{{.*}}, double %{{.*}}, i32 1
958
+ return _mm_set_pd1 (A );
959
+ }
960
+
954
961
__m128d test_mm_set_sd (double A ) {
955
962
// CHECK-LABEL: test_mm_set_sd
956
963
// CHECK: insertelement <2 x double> undef, double %{{.*}}, i32 0
You can’t perform that action at this time.
0 commit comments