2009-12-04 02:42:11 +08:00
|
|
|
// RUN: clang -ccc-host-triple i386-unknown-unknown -### -S -O0 -Os %s -o %t.s -fverbose-asm -funwind-tables -fvisibility=hidden 2> %t.log
|
2009-11-08 09:45:36 +08:00
|
|
|
// RUN: grep '"-triple" "i386-unknown-unknown"' %t.log
|
|
|
|
// RUN: grep '"-S"' %t.log
|
|
|
|
// RUN: grep '"-disable-free"' %t.log
|
2009-11-29 15:18:39 +08:00
|
|
|
// RUN: grep '"-mrelocation-model" "static"' %t.log
|
|
|
|
// RUN: grep '"-mdisable-fp-elim"' %t.log
|
|
|
|
// RUN: grep '"-munwind-tables"' %t.log
|
2009-11-08 09:45:36 +08:00
|
|
|
// RUN: grep '"-Os"' %t.log
|
|
|
|
// RUN: grep '"-o" .*clang-translation.*' %t.log
|
2009-11-29 15:18:39 +08:00
|
|
|
// RUN: grep '"-masm-verbose"' %t.log
|
2009-12-04 02:42:11 +08:00
|
|
|
// RUN: grep '"-fvisibility" "hidden"' %t.log
|
2009-11-08 09:45:36 +08:00
|
|
|
// RUN: clang -ccc-host-triple i386-apple-darwin9 -### -S %s -o %t.s 2> %t.log
|
2009-11-21 06:21:36 +08:00
|
|
|
// RUN: grep '"-mcpu" "yonah"' %t.log
|
2009-11-08 09:45:36 +08:00
|
|
|
// RUN: clang -ccc-host-triple x86_64-apple-darwin9 -### -S %s -o %t.s 2> %t.log
|
2009-11-21 06:21:36 +08:00
|
|
|
// RUN: grep '"-mcpu" "core2"' %t.log
|
2009-12-09 03:49:51 +08:00
|
|
|
|
|
|
|
// RUN: clang -ccc-host-triple x86_64-apple-darwin10 -### -S %s 2> %t.log \
|
|
|
|
// RUN: -arch armv7
|
|
|
|
// RUN: FileCheck -check-prefix=ARMV7_DEFAULT %s < %t.log
|
2009-12-09 06:22:20 +08:00
|
|
|
// ARMV7_DEFAULT: clang-cc
|
2009-12-09 03:49:51 +08:00
|
|
|
// ARMV7_DEFAULT-NOT: "-msoft-float"
|
|
|
|
// ARMV7_DEFAULT: "-mfloat-abi" "soft"
|
|
|
|
// ARMV7_DEFAULT-NOT: "-msoft-float"
|
|
|
|
// ARMV7_DEFAULT: "-x" "c"
|
|
|
|
|
|
|
|
// RUN: clang -ccc-host-triple x86_64-apple-darwin10 -### -S %s 2> %t.log \
|
|
|
|
// RUN: -arch armv7 -msoft-float
|
|
|
|
// RUN: FileCheck -check-prefix=ARMV7_SOFTFLOAT %s < %t.log
|
2009-12-09 06:22:20 +08:00
|
|
|
// ARMV7_SOFTFLOAT: clang-cc
|
2009-12-09 03:49:51 +08:00
|
|
|
// ARMV7_SOFTFLOAT: "-msoft-float"
|
|
|
|
// ARMV7_SOFTFLOAT: "-mfloat-abi" "soft"
|
|
|
|
// ARMV7_SOFTFLOAT: "-x" "c"
|
|
|
|
|
|
|
|
// RUN: clang -ccc-host-triple x86_64-apple-darwin10 -### -S %s 2> %t.log \
|
|
|
|
// RUN: -arch armv7 -mhard-float
|
|
|
|
// RUN: FileCheck -check-prefix=ARMV7_HARDFLOAT %s < %t.log
|
2009-12-09 06:22:20 +08:00
|
|
|
// ARMV7_HARDFLOAT: clang-cc
|
2009-12-09 03:49:51 +08:00
|
|
|
// ARMV7_HARDFLOAT-NOT: "-msoft-float"
|
|
|
|
// ARMV7_HARDFLOAT: "-mfloat-abi" "hard"
|
|
|
|
// ARMV7_HARDFLOAT-NOT: "-msoft-float"
|
|
|
|
// ARMV7_HARDFLOAT: "-x" "c"
|