void test4bit (void) { d1 = _mm_round_pd (d2, k4); /* { dg-error "the last argument must be a 4-bit immediate" } */ d1 = _mm_round_sd (d2, d3, k4); /* { dg-error "the last argument must be a 4-bit immediate" } */ a1 = _mm_round_ps (a2, k4); /* { dg-error "the last argument must be a 4-bit immediate" } */ a1 = _mm_round_ss (a2, a2, k4); /* { dg-error "the last argument must be a 4-bit immediate" } */ a1 = _mm_blend_ps (a2, a3, k4); /* { dg-error "the last argument must be a 4-bit immediate" } */ e1 = _mm256_blend_pd (e2, e3, k4); /* { dg-error "the last argument must be a 4-bit immediate" } */ e1 = _mm256_round_pd (e2, k4); /* { dg-error "the last argument must be a 4-bit immediate" } */ b1 = _mm256_round_ps (b2, k4); /* { dg-error "the last argument must be a 4-bit immediate" } */ }
static void TEST (void) { union128d u, s; double e[2] = {0.0}; int i; s.x = _mm_set_pd (1.1234, -2.3478); u.x = _mm_round_pd (s.x, iRoundMode); for (i = 0; i < 2; i++) { __m128d tmp = _mm_load_sd (&s.a[i]); tmp = _mm_round_sd (tmp, tmp, iRoundMode); _mm_store_sd (&e[i], tmp); } if (check_union128d (u, e)) abort (); }
__m128d test_mm_round_pd(__m128d x) { // CHECK-LABEL: test_mm_round_pd // CHECK: call <2 x double> @llvm.x86.sse41.round.pd // CHECK-ASM: roundpd $2, %xmm{{.*}}, %xmm{{.*}} return _mm_round_pd(x, 2); }
__m128d test_mm_round_pd(__m128d x) { // CHECK: define {{.*}} @test_mm_round_pd // CHECK: @llvm.x86.sse41.round.pd return _mm_round_pd(x, 2); }
__m128d test_mm_round_pd(__m128d x) { // CHECK-LABEL: test_mm_round_pd // CHECK: call <2 x double> @llvm.x86.sse41.round.pd(<2 x double> %{{.*}}, i32 4) return _mm_round_pd(x, 4); }