blob: 6be395c598801c245a41a6456d1949ca89bf4226 [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
14// CHECK0-32: -mdisable-fp-elim
15// CHECK1-32-NOT: -mdisable-fp-elim
16// CHECK2-32-NOT: -mdisable-fp-elim
17// CHECK3-32-NOT: -mdisable-fp-elim
18// CHECKs-32-NOT: -mdisable-fp-elim
19
20// CHECK0-64: -mdisable-fp-elim
21// CHECK1-64-NOT: -mdisable-fp-elim
22// CHECK2-64-NOT: -mdisable-fp-elim
23// CHECK3-64-NOT: -mdisable-fp-elim
24// CHECKs-64-NOT: -mdisable-fp-elim