1 // RUN: %clang -target i386-unknown-unknown -### -S -O0 -Os %s -o %t.s -fverbose-asm -funwind-tables -fvisibility=hidden 2> %t.log 2 // RUN: grep '"-triple" "i386-unknown-unknown"' %t.log 3 // RUN: grep '"-S"' %t.log 4 // RUN: grep '"-disable-free"' %t.log 5 // RUN: grep '"-mrelocation-model" "static"' %t.log 6 // RUN: grep '"-mdisable-fp-elim"' %t.log 7 // RUN: grep '"-munwind-tables"' %t.log 8 // RUN: grep '"-Os"' %t.log 9 // RUN: grep '"-o" .*clang-translation.*' %t.log 10 // RUN: grep '"-masm-verbose"' %t.log 11 // RUN: grep '"-fvisibility" "hidden"' %t.log 12 // RUN: %clang -target i386-apple-darwin9 -### -S %s -o %t.s 2> %t.log 13 // RUN: grep '"-target-cpu" "yonah"' %t.log 14 // RUN: %clang -target x86_64-apple-darwin9 -### -S %s -o %t.s 2> %t.log 15 // RUN: grep '"-target-cpu" "core2"' %t.log 16 17 // RUN: %clang -target x86_64-apple-darwin10 -### -S %s 2> %t.log \ 18 // RUN: -arch armv7 19 // RUN: FileCheck -check-prefix=ARMV7_DEFAULT %s < %t.log 20 // ARMV7_DEFAULT: clang 21 // ARMV7_DEFAULT: "-cc1" 22 // ARMV7_DEFAULT-NOT: "-msoft-float" 23 // ARMV7_DEFAULT: "-mfloat-abi" "soft" 24 // ARMV7_DEFAULT-NOT: "-msoft-float" 25 // ARMV7_DEFAULT: "-x" "c" 26 27 // RUN: %clang -target x86_64-apple-darwin10 -### -S %s 2> %t.log \ 28 // RUN: -arch armv7 -msoft-float 29 // RUN: FileCheck -check-prefix=ARMV7_SOFTFLOAT %s < %t.log 30 // ARMV7_SOFTFLOAT: clang 31 // ARMV7_SOFTFLOAT: "-cc1" 32 // ARMV7_SOFTFLOAT: "-msoft-float" 33 // ARMV7_SOFTFLOAT: "-mfloat-abi" "soft" 34 // ARMV7_SOFTFLOAT: "-target-feature" 35 // ARMV7_SOFTFLOAT: "-neon" 36 // ARMV7_SOFTFLOAT: "-x" "c" 37 38 // RUN: %clang -target x86_64-apple-darwin10 -### -S %s 2> %t.log \ 39 // RUN: -arch armv7 -mhard-float 40 // RUN: FileCheck -check-prefix=ARMV7_HARDFLOAT %s < %t.log 41 // ARMV7_HARDFLOAT: clang 42 // ARMV7_HARDFLOAT: "-cc1" 43 // ARMV7_HARDFLOAT-NOT: "-msoft-float" 44 // ARMV7_HARDFLOAT: "-mfloat-abi" "hard" 45 // ARMV7_HARDFLOAT-NOT: "-msoft-float" 46 // ARMV7_HARDFLOAT: "-x" "c" 47