blob: 0dd38a67cc8b2d241d79c08e866b04d86f541f3b [file] [log] [blame]
Daniel Dunbarbb36aed2009-05-06 21:07:50 +00001// FIXME: Use -triple, not -ccc-host-triple.
2
Daniel Dunbar8b576972009-11-08 01:45:36 +00003// 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
Daniel Dunbarbb36aed2009-05-06 21:07:50 +000012
Daniel Dunbar8b576972009-11-08 01:45:36 +000013// 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
Daniel Dunbarbb36aed2009-05-06 21:07:50 +000022
Daniel Dunbar8b576972009-11-08 01:45:36 +000023// 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
Daniel Dunbarf9d90272009-05-06 21:56:32 +000032
Daniel Dunbarbb36aed2009-05-06 21:07:50 +000033// RUN: true
34
35