2013-07-20 00:51:51 +08:00
|
|
|
// Check passing options to the assembler for various linux targets.
|
2012-04-10 17:05:40 +08:00
|
|
|
//
|
|
|
|
// RUN: %clang -target arm-linux -### \
|
|
|
|
// RUN: -no-integrated-as -c %s 2>&1 \
|
2013-08-12 20:51:05 +08:00
|
|
|
// RUN: | FileCheck -check-prefix=CHECK-ARM %s
|
2012-04-20 17:03:40 +08:00
|
|
|
// CHECK-ARM: as{{(.exe)?}}" "-mfloat-abi=soft"
|
2012-04-10 17:05:40 +08:00
|
|
|
//
|
|
|
|
// RUN: %clang -target arm-linux -mcpu=cortex-a8 -### \
|
|
|
|
// RUN: -no-integrated-as -c %s 2>&1 \
|
2013-08-12 20:51:05 +08:00
|
|
|
// RUN: | FileCheck -check-prefix=CHECK-ARM-MCPU %s
|
2012-04-20 17:03:40 +08:00
|
|
|
// CHECK-ARM-MCPU: as{{(.exe)?}}" "-mfloat-abi=soft" "-mcpu=cortex-a8"
|
2012-04-10 17:05:40 +08:00
|
|
|
//
|
|
|
|
// RUN: %clang -target arm-linux -mfpu=neon -### \
|
|
|
|
// RUN: -no-integrated-as -c %s 2>&1 \
|
2013-08-12 20:51:05 +08:00
|
|
|
// RUN: | FileCheck -check-prefix=CHECK-ARM-MFPU %s
|
2012-04-20 17:03:40 +08:00
|
|
|
// CHECK-ARM-MFPU: as{{(.exe)?}}" "-mfloat-abi=soft" "-mfpu=neon"
|
2012-04-10 17:05:40 +08:00
|
|
|
//
|
|
|
|
// RUN: %clang -target arm-linux -march=armv7-a -### \
|
|
|
|
// RUN: -no-integrated-as -c %s 2>&1 \
|
2013-08-12 20:51:05 +08:00
|
|
|
// RUN: | FileCheck -check-prefix=CHECK-ARM-MARCH %s
|
2012-04-20 17:03:40 +08:00
|
|
|
// CHECK-ARM-MARCH: as{{(.exe)?}}" "-mfloat-abi=soft" "-march=armv7-a"
|
2012-04-10 17:05:40 +08:00
|
|
|
//
|
|
|
|
// RUN: %clang -target arm-linux -mcpu=cortex-a8 -mfpu=neon -march=armv7-a -### \
|
|
|
|
// RUN: -no-integrated-as -c %s 2>&1 \
|
2013-08-12 20:51:05 +08:00
|
|
|
// RUN: | FileCheck -check-prefix=CHECK-ARM-ALL %s
|
2012-04-20 17:03:40 +08:00
|
|
|
// CHECK-ARM-ALL: as{{(.exe)?}}" "-mfloat-abi=soft" "-march=armv7-a" "-mcpu=cortex-a8" "-mfpu=neon"
|
2012-04-10 17:05:40 +08:00
|
|
|
//
|
|
|
|
// RUN: %clang -target armv7-linux -mcpu=cortex-a8 -### \
|
|
|
|
// RUN: -no-integrated-as -c %s 2>&1 \
|
2013-08-12 20:51:05 +08:00
|
|
|
// RUN: | FileCheck -check-prefix=CHECK-ARM-TARGET %s
|
2012-04-20 17:03:40 +08:00
|
|
|
// CHECK-ARM-TARGET: as{{(.exe)?}}" "-mfpu=neon" "-mfloat-abi=soft" "-mcpu=cortex-a8"
|
|
|
|
//
|
2013-10-25 02:32:41 +08:00
|
|
|
// RUN: %clang -target armv8-linux -mcpu=cortex-a53 -### \
|
|
|
|
// RUN: -no-integrated-as -c %s 2>&1 \
|
|
|
|
// RUN: | FileCheck -check-prefix=CHECK-ARM-TARGET-V8 %s
|
|
|
|
// CHECK-ARM-TARGET-V8: as{{(.exe)?}}" "-mfpu=crypto-neon-fp-armv8" "-mfloat-abi=soft" "-mcpu=cortex-a53"
|
|
|
|
//
|
2012-04-20 17:03:40 +08:00
|
|
|
// RUN: %clang -target arm-linux -mfloat-abi=hard -### \
|
|
|
|
// RUN: -no-integrated-as -c %s 2>&1 \
|
2013-08-12 20:51:05 +08:00
|
|
|
// RUN: | FileCheck -check-prefix=CHECK-ARM-MFLOAT-ABI %s
|
2012-04-20 17:03:40 +08:00
|
|
|
// CHECK-ARM-MFLOAT-ABI: as{{(.exe)?}}" "-mfloat-abi=hard"
|
|
|
|
//
|
|
|
|
// RUN: %clang -target arm-linux-androideabi -### \
|
|
|
|
// RUN: -no-integrated-as -c %s 2>&1 \
|
2013-08-12 20:51:05 +08:00
|
|
|
// RUN: | FileCheck -check-prefix=CHECK-ARM-ANDROID %s
|
2012-04-20 17:03:40 +08:00
|
|
|
// CHECK-ARM-ANDROID: as{{(.exe)?}}" "-mfloat-abi=soft"
|
|
|
|
//
|
|
|
|
// RUN: %clang -target arm-linux-androideabi -march=armv7-a -### \
|
|
|
|
// RUN: -no-integrated-as -c %s 2>&1 \
|
2013-08-12 20:51:05 +08:00
|
|
|
// RUN: | FileCheck -check-prefix=CHECK-ARM-ANDROID-SOFTFP %s
|
2012-04-20 17:03:40 +08:00
|
|
|
// CHECK-ARM-ANDROID-SOFTFP: as{{(.exe)?}}" "-mfloat-abi=softfp" "-march=armv7-a"
|
|
|
|
//
|
|
|
|
// RUN: %clang -target arm-linux-eabi -mhard-float -### \
|
|
|
|
// RUN: -no-integrated-as -c %s 2>&1 \
|
2013-08-12 20:51:05 +08:00
|
|
|
// RUN: | FileCheck -check-prefix=CHECK-ARM-HARDFP %s
|
2012-04-20 17:03:40 +08:00
|
|
|
// CHECK-ARM-HARDFP: as{{(.exe)?}}" "-mfloat-abi=hard"
|
2012-04-24 17:05:31 +08:00
|
|
|
//
|
|
|
|
// RUN: %clang -target ppc-linux -mcpu=invalid-cpu -### \
|
|
|
|
// RUN: -no-integrated-as -c %s 2>&1 \
|
2013-08-12 20:51:05 +08:00
|
|
|
// RUN: | FileCheck -check-prefix=CHECK-PPC-NO-MCPU %s
|
2012-04-24 17:05:31 +08:00
|
|
|
// CHECK-PPC-NO-MCPU-NOT: as{{.*}} "-mcpu=invalid-cpu"
|
2013-07-20 00:51:51 +08:00
|
|
|
//
|
2014-01-10 11:51:29 +08:00
|
|
|
// RUN: %clang -target sparc64-linux -mcpu=invalid-cpu -### \
|
|
|
|
// RUN: -no-integrated-as -c %s 2>&1 \
|
|
|
|
// RUN: | FileCheck -check-prefix=CHECK-SPARCV9 %s
|
|
|
|
// CHECK-SPARCV9: as
|
|
|
|
// CHECK-SPARCV9: -64
|
2014-01-12 02:25:01 +08:00
|
|
|
// CHECK-SPARCV9: -Av9a
|
2014-01-12 12:53:36 +08:00
|
|
|
// CHECK-SPARCV9-NOT: -KPIC
|
2014-01-10 11:51:29 +08:00
|
|
|
// CHECK-SPARCV9: -o
|
|
|
|
//
|
2014-01-12 12:53:36 +08:00
|
|
|
// RUN: %clang -target sparc64-linux -mcpu=invalid-cpu -### \
|
|
|
|
// RUN: -no-integrated-as -fpic -c %s 2>&1 \
|
|
|
|
// RUN: | FileCheck -check-prefix=CHECK-SPARCV9PIC %s
|
|
|
|
// CHECK-SPARCV9PIC: as
|
|
|
|
// CHECK-SPARCV9PIC: -64
|
|
|
|
// CHECK-SPARCV9PIC: -Av9a
|
|
|
|
// CHECK-SPARCV9PIC: -KPIC
|
|
|
|
// CHECK-SPARCV9PIC: -o
|
|
|
|
//
|
2014-01-10 11:51:29 +08:00
|
|
|
// RUN: %clang -target sparc-linux -mcpu=invalid-cpu -### \
|
|
|
|
// RUN: -no-integrated-as -c %s 2>&1 \
|
|
|
|
// RUN: | FileCheck -check-prefix=CHECK-SPARCV8 %s
|
|
|
|
// CHECK-SPARCV8: as
|
|
|
|
// CHECK-SPARCV8: -32
|
2014-01-12 02:25:01 +08:00
|
|
|
// CHECK-SPARCV8: -Av8plusa
|
2014-01-10 11:51:29 +08:00
|
|
|
// CHECK-SPARCV8: -o
|
|
|
|
//
|
2013-07-20 00:51:51 +08:00
|
|
|
// RUN: %clang -target s390x-linux -### -no-integrated-as -c %s 2>&1 \
|
2013-08-12 20:51:05 +08:00
|
|
|
// RUN: | FileCheck -check-prefix=CHECK-Z-DEFAULT-ARCH %s
|
2013-07-20 00:51:51 +08:00
|
|
|
// CHECK-Z-DEFAULT-ARCH: as{{.*}} "-march=z10"
|
|
|
|
//
|
|
|
|
// RUN: %clang -target s390x-linux -march=z196 -### \
|
|
|
|
// RUN: -no-integrated-as -c %s 2>&1 \
|
2013-08-12 20:51:05 +08:00
|
|
|
// RUN: | FileCheck -check-prefix=CHECK-Z-ARCH-Z196 %s
|
2013-07-20 00:51:51 +08:00
|
|
|
// CHECK-Z-ARCH-Z196: as{{.*}} "-march=z196"
|