1*f4a2713aSLionel Sambuc // RUN: %clang -target i386-pc-linux -### -S -O0 %s -o %t.s 2>&1 | FileCheck -check-prefix=CHECK0-32 %s 2*f4a2713aSLionel Sambuc // RUN: %clang -target i386-pc-linux -### -S -O1 %s -o %t.s 2>&1 | FileCheck -check-prefix=CHECK1-32 %s 3*f4a2713aSLionel Sambuc // RUN: %clang -target i386-pc-linux -### -S -O2 %s -o %t.s 2>&1 | FileCheck -check-prefix=CHECK2-32 %s 4*f4a2713aSLionel Sambuc // RUN: %clang -target i386-pc-linux -### -S -O3 %s -o %t.s 2>&1 | FileCheck -check-prefix=CHECK3-32 %s 5*f4a2713aSLionel Sambuc // RUN: %clang -target i386-pc-linux -### -S -Os %s -o %t.s 2>&1 | FileCheck -check-prefix=CHECKs-32 %s 6*f4a2713aSLionel Sambuc 7*f4a2713aSLionel Sambuc 8*f4a2713aSLionel Sambuc // RUN: %clang -target x86_64-pc-linux -### -S -O0 %s -o %t.s 2>&1 | FileCheck -check-prefix=CHECK0-64 %s 9*f4a2713aSLionel Sambuc // RUN: %clang -target x86_64-pc-linux -### -S -O1 %s -o %t.s 2>&1 | FileCheck -check-prefix=CHECK1-64 %s 10*f4a2713aSLionel Sambuc // RUN: %clang -target x86_64-pc-linux -### -S -O2 %s -o %t.s 2>&1 | FileCheck -check-prefix=CHECK2-64 %s 11*f4a2713aSLionel Sambuc // RUN: %clang -target x86_64-pc-linux -### -S -O3 %s -o %t.s 2>&1 | FileCheck -check-prefix=CHECK3-64 %s 12*f4a2713aSLionel Sambuc // RUN: %clang -target x86_64-pc-linux -### -S -Os %s -o %t.s 2>&1 | FileCheck -check-prefix=CHECKs-64 %s 13*f4a2713aSLionel Sambuc 14*f4a2713aSLionel Sambuc // Trust the above to get the optimizations right, and just test other targets 15*f4a2713aSLionel Sambuc // that want this by default. 16*f4a2713aSLionel Sambuc // RUN: %clang -target s390x-pc-linux -### -S -O0 %s -o %t.s 2>&1 | FileCheck -check-prefix=CHECK0-64 %s 17*f4a2713aSLionel Sambuc // RUN: %clang -target s390x-pc-linux -### -S -O1 %s -o %t.s 2>&1 | FileCheck -check-prefix=CHECK1-64 %s 18*f4a2713aSLionel Sambuc 19*f4a2713aSLionel Sambuc // RUN: %clang -target mips-linux-gnu -### -S -O0 %s -o %t.s 2>&1 | FileCheck -check-prefix=CHECK0-32 %s 20*f4a2713aSLionel Sambuc // RUN: %clang -target mips-linux-gnu -### -S -O1 %s -o %t.s 2>&1 | FileCheck -check-prefix=CHECK1-32 %s 21*f4a2713aSLionel Sambuc // RUN: %clang -target mipsel-linux-gnu -### -S -O0 %s -o %t.s 2>&1 | FileCheck -check-prefix=CHECK0-32 %s 22*f4a2713aSLionel Sambuc // RUN: %clang -target mipsel-linux-gnu -### -S -O1 %s -o %t.s 2>&1 | FileCheck -check-prefix=CHECK1-32 %s 23*f4a2713aSLionel Sambuc // RUN: %clang -target mips64-linux-gnu -### -S -O0 %s -o %t.s 2>&1 | FileCheck -check-prefix=CHECK0-32 %s 24*f4a2713aSLionel Sambuc // RUN: %clang -target mips64-linux-gnu -### -S -O1 %s -o %t.s 2>&1 | FileCheck -check-prefix=CHECK1-32 %s 25*f4a2713aSLionel Sambuc // RUN: %clang -target mips64el-linux-gnu -### -S -O0 %s -o %t.s 2>&1 | FileCheck -check-prefix=CHECK0-32 %s 26*f4a2713aSLionel Sambuc // RUN: %clang -target mips64el-linux-gnu -### -S -O1 %s -o %t.s 2>&1 | FileCheck -check-prefix=CHECK1-32 %s 27*f4a2713aSLionel Sambuc 28*f4a2713aSLionel Sambuc // CHECK0-32: -mdisable-fp-elim 29*f4a2713aSLionel Sambuc // CHECK1-32-NOT: -mdisable-fp-elim 30*f4a2713aSLionel Sambuc // CHECK2-32-NOT: -mdisable-fp-elim 31*f4a2713aSLionel Sambuc // CHECK3-32-NOT: -mdisable-fp-elim 32*f4a2713aSLionel Sambuc // CHECKs-32-NOT: -mdisable-fp-elim 33*f4a2713aSLionel Sambuc 34*f4a2713aSLionel Sambuc // CHECK0-64: -mdisable-fp-elim 35*f4a2713aSLionel Sambuc // CHECK1-64-NOT: -mdisable-fp-elim 36*f4a2713aSLionel Sambuc // CHECK2-64-NOT: -mdisable-fp-elim 37*f4a2713aSLionel Sambuc // CHECK3-64-NOT: -mdisable-fp-elim 38*f4a2713aSLionel Sambuc // CHECKs-64-NOT: -mdisable-fp-elim 39