]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/testsuite/g++.dg/ext/mv16.C
i386.c (processor_target_table): Add skylake_cost for skylake-avx512.
[thirdparty/gcc.git] / gcc / testsuite / g++.dg / ext / mv16.C
index a3a0fe804fd6f248a19b2e1a94993ffe1abcae30..1e1ae3d2f0d45fad68750ff3f90fcf848df813dc 100644 (file)
@@ -56,6 +56,10 @@ int __attribute__ ((target("arch=skylake-avx512"))) foo () {
   return 15;
 }
 
+int __attribute__ ((target("arch=cannonlake"))) foo () {
+  return 16;
+}
+
 int main ()
 {
   int val = foo ();
@@ -76,6 +80,8 @@ int main ()
     assert (val == 14);
   else if (__builtin_cpu_is ("skylake-avx512"))
     assert (val == 15);
+  else if (__builtin_cpu_is ("cannonlake"))
+    assert (val == 16);
   else
     assert (val == 0);