return _mm_min_sd(A, B);
}
+__m64 test_mm_movepi64_pi64(__m128i A)
+{
+ // CHECK-LABEL: test_mm_movepi64_pi64
+ // CHECK: [[EXT:%.*]] = extractelement <2 x i64> %1, i32 0
+ // CHECK: bitcast i64 [[EXT]] to <1 x i64>
+ return _mm_movepi64_pi64(A);
+}
+
+__m128i test_mm_movpi64_epi64(__m64 A)
+{
+ // CHECK-LABEL: test_mm_movpi64_epi64
+ // CHECK: [[CAST:%.*]] = bitcast <1 x i64> %{{.*}} to i64
+ // CHECK: [[INS:%.*]] = insertelement <2 x i64> undef, i64 [[CAST]], i32 0
+ // CHECK: insertelement <2 x i64> [[INS]], i64 0, i32 1
+ return _mm_movpi64_epi64(A);
+}
+
__m128i test_mm_move_epi64(__m128i A) {
// CHECK-LABEL: test_mm_move_epi64
// CHECK: shufflevector <2 x i64> %{{.*}}, <2 x i64> %{{.*}}, <2 x i32> <i32 0, i32 2>