summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/pr70300.c
blob: ddfadfb59572d86527454204f5bbaac77e0ff040 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/* PR target/70300 */
/* { dg-do compile } */
/* { dg-options "-O2 -mtune=amdfam10 -mavx512f" } */

typedef _Complex A __attribute__ ((mode (SC)));
typedef _Complex B __attribute__ ((mode (DC)));
typedef _Complex C __attribute__ ((mode (TC)));

C
foo (A a, B b, C c, A d, B e, C f)
{
  b -= a;
  d += a;
  a += f;
  return a + b + d + e;
}

__attribute__((target ("avx512vl"))) C
bar (A a, B b, C c, A d, B e, C f)
{
  b -= a;
  d += a;
  a += f;
  return a + b + d + e;
}