Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/g++.target/i386/mv12.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
111:04ced10e8804 | 131:84e7813d76e9 |
---|---|
1 // Test case to check if multiversioning works as expected when the versions | |
2 // are defined in different files. | |
3 | |
4 // { dg-do run } | |
5 // { dg-require-ifunc "" } | |
6 // { dg-options "-O2" } | |
7 // { dg-additional-sources "mv12-aux.cc" } | |
8 | |
9 #include "mv12.h" | |
10 | |
11 int main () | |
12 { | |
13 if (__builtin_cpu_supports ("sse4.2")) | |
14 return foo () - 1; | |
15 return foo (); | |
16 } | |
17 | |
18 __attribute__ ((target ("default"))) | |
19 int foo () | |
20 { | |
21 return 0; | |
22 } |