blob: 027077ca5f1bd3bf09c1cea53163cbed095d6b88 [file] [log] [blame]
Sebastian Pop9ec60df2012-01-20 22:01:23 +00001// RUN: %clang -target i386-pc-linux -### -S -O0 %s -o %t.s 2>&1 | FileCheck -check-prefix=CHECK0-32 %s
2// RUN: %clang -target i386-pc-linux -### -S -O1 %s -o %t.s 2>&1 | FileCheck -check-prefix=CHECK1-32 %s
3// RUN: %clang -target i386-pc-linux -### -S -O2 %s -o %t.s 2>&1 | FileCheck -check-prefix=CHECK2-32 %s
4// RUN: %clang -target i386-pc-linux -### -S -O3 %s -o %t.s 2>&1 | FileCheck -check-prefix=CHECK3-32 %s
5// RUN: %clang -target i386-pc-linux -### -S -Os %s -o %t.s 2>&1 | FileCheck -check-prefix=CHECKs-32 %s
Rafael Espindola6af27ec2011-12-14 21:02:23 +00006
7
Sebastian Pop9ec60df2012-01-20 22:01:23 +00008// RUN: %clang -target x86_64-pc-linux -### -S -O0 %s -o %t.s 2>&1 | FileCheck -check-prefix=CHECK0-64 %s
9// RUN: %clang -target x86_64-pc-linux -### -S -O1 %s -o %t.s 2>&1 | FileCheck -check-prefix=CHECK1-64 %s
10// RUN: %clang -target x86_64-pc-linux -### -S -O2 %s -o %t.s 2>&1 | FileCheck -check-prefix=CHECK2-64 %s
11// RUN: %clang -target x86_64-pc-linux -### -S -O3 %s -o %t.s 2>&1 | FileCheck -check-prefix=CHECK3-64 %s
12// RUN: %clang -target x86_64-pc-linux -### -S -Os %s -o %t.s 2>&1 | FileCheck -check-prefix=CHECKs-64 %s
Rafael Espindola6af27ec2011-12-14 21:02:23 +000013
Richard Sandiford0e373ec2013-07-19 14:06:49 +000014// Trust the above to get the optimizations right, and just test other targets
15// that want this by default.
16// RUN: %clang -target s390x-pc-linux -### -S -O0 %s -o %t.s 2>&1 | FileCheck -check-prefix=CHECK0-64 %s
17// RUN: %clang -target s390x-pc-linux -### -S -O1 %s -o %t.s 2>&1 | FileCheck -check-prefix=CHECK1-64 %s
18
Rafael Espindola6af27ec2011-12-14 21:02:23 +000019// CHECK0-32: -mdisable-fp-elim
20// CHECK1-32-NOT: -mdisable-fp-elim
21// CHECK2-32-NOT: -mdisable-fp-elim
22// CHECK3-32-NOT: -mdisable-fp-elim
23// CHECKs-32-NOT: -mdisable-fp-elim
24
25// CHECK0-64: -mdisable-fp-elim
26// CHECK1-64-NOT: -mdisable-fp-elim
27// CHECK2-64-NOT: -mdisable-fp-elim
28// CHECK3-64-NOT: -mdisable-fp-elim
29// CHECKs-64-NOT: -mdisable-fp-elim