Home | History | Annotate | Download | only in Driver
      1 // 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
      6 
      7 
      8 // 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
     13 
     14 // 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 
     19 // 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
     30