Home | History | Annotate | Download | only in Preprocessor
      1 // RUN: %clang -target i386-unknown-unknown -march=core2 -msse4 -x c -E -dM -o %t %s
      2 // RUN: grep '#define __SSE2_MATH__ 1' %t
      3 // RUN: grep '#define __SSE2__ 1' %t
      4 // RUN: grep '#define __SSE3__ 1' %t
      5 // RUN: grep '#define __SSE4_1__ 1' %t
      6 // RUN: grep '#define __SSE4_2__ 1' %t
      7 // RUN: grep '#define __SSE_MATH__ 1' %t
      8 // RUN: grep '#define __SSE__ 1' %t
      9 // RUN: grep '#define __SSSE3__ 1' %t
     10 
     11 // RUN: %clang -target i386-unknown-unknown -march=core2 -msse4 -mno-sse2 -x c -E -dM -o %t %s
     12 // RUN: grep '#define __SSE2_MATH__ 1' %t | count 0
     13 // RUN: grep '#define __SSE2__ 1' %t | count 0
     14 // RUN: grep '#define __SSE3__ 1' %t | count 0
     15 // RUN: grep '#define __SSE4_1__ 1' %t | count 0
     16 // RUN: grep '#define __SSE4_2__ 1' %t | count 0
     17 // RUN: grep '#define __SSE_MATH__ 1' %t
     18 // RUN: grep '#define __SSE__ 1' %t
     19 // RUN: grep '#define __SSSE3__ 1' %t | count 0
     20 
     21 // RUN: %clang -target i386-unknown-unknown -march=pentium-m -x c -E -dM -o %t %s
     22 // RUN: grep '#define __SSE2_MATH__ 1' %t
     23 // RUN: grep '#define __SSE2__ 1' %t
     24 // RUN: grep '#define __SSE3__ 1' %t | count 0
     25 // RUN: grep '#define __SSE4_1__ 1' %t | count 0
     26 // RUN: grep '#define __SSE4_2__ 1' %t | count 0
     27 // RUN: grep '#define __SSE_MATH__ 1' %t
     28 // RUN: grep '#define __SSE__ 1' %t
     29 // RUN: grep '#define __SSSE3__ 1' %t | count 0
     30 
     31 
     32 
     33