sse.md (<avx512>_fmadd_<mode>_mask3<round_name>): Use v constraint instead of x.
* config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>): Use v constraint instead of x. * gcc.target/i386/avx512f-vfmadd-1.c: New test. From-SVN: r235921
This commit is contained in:
parent
351f85c5be
commit
568bac8c8a
@ -1,3 +1,8 @@
|
||||
2016-05-05 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
* config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>): Use
|
||||
v constraint instead of x.
|
||||
|
||||
2016-05-05 Alan Modra <amodra@gmail.com>
|
||||
|
||||
PR target/68662
|
||||
|
@ -3327,10 +3327,10 @@
|
||||
(set_attr "mode" "<MODE>")])
|
||||
|
||||
(define_insn "<avx512>_fmadd_<mode>_mask3<round_name>"
|
||||
[(set (match_operand:VF_AVX512VL 0 "register_operand" "=x")
|
||||
[(set (match_operand:VF_AVX512VL 0 "register_operand" "=v")
|
||||
(vec_merge:VF_AVX512VL
|
||||
(fma:VF_AVX512VL
|
||||
(match_operand:VF_AVX512VL 1 "register_operand" "x")
|
||||
(match_operand:VF_AVX512VL 1 "register_operand" "v")
|
||||
(match_operand:VF_AVX512VL 2 "nonimmediate_operand" "<round_constraint>")
|
||||
(match_operand:VF_AVX512VL 3 "register_operand" "0"))
|
||||
(match_dup 3)
|
||||
|
@ -1,5 +1,7 @@
|
||||
2016-05-05 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
* gcc.target/i386/avx512f-vfmadd-1.c: New test.
|
||||
|
||||
* c-c++-common/Wdangling-else-4.c: New test.
|
||||
|
||||
2016-05-04 Jakub Jelinek <jakub@redhat.com>
|
||||
|
27
gcc/testsuite/gcc.target/i386/avx512f-vfmadd-1.c
Normal file
27
gcc/testsuite/gcc.target/i386/avx512f-vfmadd-1.c
Normal file
@ -0,0 +1,27 @@
|
||||
/* { dg-do compile { target { ! ia32 } } } */
|
||||
/* { dg-options "-O2 -mavx512f" } */
|
||||
|
||||
#include <x86intrin.h>
|
||||
|
||||
void
|
||||
f1 (__m512d x, __m512d y, __m512d z, __mmask8 m)
|
||||
{
|
||||
register __m512d a __asm ("xmm16"), b __asm ("xmm17"), c __asm ("xmm18");
|
||||
a = x; b = y; c = z;
|
||||
asm volatile ("" : "+v" (a), "+v" (b), "+v" (c));
|
||||
a = _mm512_mask3_fmadd_round_pd (c, b, a, m, _MM_FROUND_TO_NEG_INF | _MM_FROUND_NO_EXC);
|
||||
asm volatile ("" : "+v" (a));
|
||||
}
|
||||
|
||||
void
|
||||
f2 (__m512 x, __m512 y, __m512 z, __mmask8 m)
|
||||
{
|
||||
register __m512 a __asm ("xmm16"), b __asm ("xmm17"), c __asm ("xmm18");
|
||||
a = x; b = y; c = z;
|
||||
asm volatile ("" : "+v" (a), "+v" (b), "+v" (c));
|
||||
a = _mm512_mask3_fmadd_round_ps (c, b, a, m, _MM_FROUND_TO_NEG_INF | _MM_FROUND_NO_EXC);
|
||||
asm volatile ("" : "+v" (a));
|
||||
}
|
||||
|
||||
/* { dg-final { scan-assembler "vfmadd231pd\[^\n\r\]*zmm16" } } */
|
||||
/* { dg-final { scan-assembler "vfmadd231ps\[^\n\r\]*zmm16" } } */
|
Loading…
Reference in New Issue
Block a user