1// FIXME: Use -triple, not -ccc-host-triple. 2 3// RUN: %clang -ccc-host-triple i386-unknown-unknown -march=core2 -msse4 -x c -E -dM -o %t %s 4// RUN: grep '#define __SSE2_MATH__ 1' %t 5// RUN: grep '#define __SSE2__ 1' %t 6// RUN: grep '#define __SSE3__ 1' %t 7// RUN: grep '#define __SSE4_1__ 1' %t 8// RUN: grep '#define __SSE4_2__ 1' %t 9// RUN: grep '#define __SSE_MATH__ 1' %t 10// RUN: grep '#define __SSE__ 1' %t 11// RUN: grep '#define __SSSE3__ 1' %t 12 13// RUN: %clang -ccc-host-triple i386-unknown-unknown -march=core2 -msse4 -mno-sse2 -x c -E -dM -o %t %s 14// RUN: grep '#define __SSE2_MATH__ 1' %t | count 0 15// RUN: grep '#define __SSE2__ 1' %t | count 0 16// RUN: grep '#define __SSE3__ 1' %t | count 0 17// RUN: grep '#define __SSE4_1__ 1' %t | count 0 18// RUN: grep '#define __SSE4_2__ 1' %t | count 0 19// RUN: grep '#define __SSE_MATH__ 1' %t 20// RUN: grep '#define __SSE__ 1' %t 21// RUN: grep '#define __SSSE3__ 1' %t | count 0 22 23// RUN: %clang -ccc-host-triple i386-unknown-unknown -march=pentium-m -x c -E -dM -o %t %s 24// RUN: grep '#define __SSE2_MATH__ 1' %t 25// RUN: grep '#define __SSE2__ 1' %t 26// RUN: grep '#define __SSE3__ 1' %t | count 0 27// RUN: grep '#define __SSE4_1__ 1' %t | count 0 28// RUN: grep '#define __SSE4_2__ 1' %t | count 0 29// RUN: grep '#define __SSE_MATH__ 1' %t 30// RUN: grep '#define __SSE__ 1' %t 31// RUN: grep '#define __SSSE3__ 1' %t | count 0 32 33 34 35