1 /* { dg-do compile { target { ! ia32 } } } */
2 /* { dg-options "-O0 -mavx512f" } */
14 m128d
= _mm_cvt_roundu64_sd (m128d
, 4, 7); /* { dg-error "incorrect rounding operand" } */
15 m128d
= _mm_cvt_roundi64_sd (m128d
, 4, 7); /* { dg-error "incorrect rounding operand" } */
17 m128
= _mm_cvt_roundu64_ss (m128
, 4, 7); /* { dg-error "incorrect rounding operand" } */
18 m128
= _mm_cvt_roundi64_ss (m128
, 4, 7); /* { dg-error "incorrect rounding operand" } */
20 ul
= _mm_cvt_roundss_u64 (m128
, 7); /* { dg-error "incorrect rounding operand" } */
21 l
= _mm_cvt_roundss_i64 (m128
, 7); /* { dg-error "incorrect rounding operand" } */
23 ul
= _mm_cvt_roundsd_u64 (m128d
, 7); /* { dg-error "incorrect rounding operand" } */
24 l
= _mm_cvt_roundsd_i64 (m128d
, 7); /* { dg-error "incorrect rounding operand" } */
26 ul
= _mm_cvtt_roundss_u64 (m128
, 7); /* { dg-error "incorrect rounding operand" } */
27 l
= _mm_cvtt_roundss_i64 (m128
, 7); /* { dg-error "incorrect rounding operand" } */
29 ul
= _mm_cvtt_roundsd_u64 (m128d
, 7); /* { dg-error "incorrect rounding operand" } */
30 l
= _mm_cvtt_roundsd_i64 (m128d
, 7); /* { dg-error "incorrect rounding operand" } */
34 test_round_sae_64 (void)
36 m128d
= _mm_cvt_roundu64_sd (m128d
, 4, 5); /* { dg-error "incorrect rounding operand" } */
37 m128d
= _mm_cvt_roundi64_sd (m128d
, 4, 5); /* { dg-error "incorrect rounding operand" } */
39 m128
= _mm_cvt_roundu64_ss (m128
, 4, 5); /* { dg-error "incorrect rounding operand" } */
40 m128
= _mm_cvt_roundi64_ss (m128
, 4, 5); /* { dg-error "incorrect rounding operand" } */
42 ul
= _mm_cvt_roundss_u64 (m128
, 5); /* { dg-error "incorrect rounding operand" } */
43 l
= _mm_cvt_roundss_i64 (m128
, 5); /* { dg-error "incorrect rounding operand" } */
45 ul
= _mm_cvt_roundsd_u64 (m128d
, 5); /* { dg-error "incorrect rounding operand" } */
46 l
= _mm_cvt_roundsd_i64 (m128d
, 5); /* { dg-error "incorrect rounding operand" } */
50 test_sae_only_64 (void)
52 ul
= _mm_cvtt_roundss_u64 (m128
, 3); /* { dg-error "incorrect rounding operand" } */
53 l
= _mm_cvtt_roundss_i64 (m128
, 3); /* { dg-error "incorrect rounding operand" } */
55 ul
= _mm_cvtt_roundsd_u64 (m128d
, 3); /* { dg-error "incorrect rounding operand" } */
56 l
= _mm_cvtt_roundsd_i64 (m128d
, 3); /* { dg-error "incorrect rounding operand" } */