2013-10-31 17:32:33 +08:00
|
|
|
// Test that different values of -mfpu pick correct AArch64 FPU target-feature(s).
|
|
|
|
|
|
|
|
// RUN: %clang -target aarch64-linux-eabi -mfpu=neon %s -### -o %t.o 2>&1 \
|
|
|
|
// RUN: | FileCheck --check-prefix=CHECK-NEON %s
|
2014-02-14 12:37:46 +08:00
|
|
|
// RUN: %clang -target aarch64-linux-eabi %s -### -o %t.o 2>&1 \
|
|
|
|
// RUN: | FileCheck --check-prefix=CHECK-NEON %s
|
2014-04-16 23:33:56 +08:00
|
|
|
// RUN: %clang -target arm64-linux-eabi -mfpu=neon %s -### -o %t.o 2>&1 \
|
|
|
|
// RUN: | FileCheck --check-prefix=CHECK-NEON %s
|
|
|
|
// RUN: %clang -target arm64-linux-eabi %s -### -o %t.o 2>&1 \
|
|
|
|
// RUN: | FileCheck --check-prefix=CHECK-NEON %s
|
2013-10-31 17:32:33 +08:00
|
|
|
// CHECK-NEON: "-target-feature" "+neon"
|
|
|
|
|
|
|
|
// RUN: %clang -target aarch64-linux-eabi -mfpu=fp-armv8 %s -### -o %t.o 2>&1 \
|
|
|
|
// RUN: | FileCheck --check-prefix=CHECK-FP-ARMV8 %s
|
2014-04-16 23:33:56 +08:00
|
|
|
// RUN: %clang -target arm64-linux-eabi -mfpu=fp-armv8 %s -### -o %t.o 2>&1 \
|
|
|
|
// RUN: | FileCheck --check-prefix=CHECK-FP-ARMV8 %s
|
2013-10-31 17:32:33 +08:00
|
|
|
// CHECK-FP-ARMV8: "-target-feature" "+fp-armv8"
|
|
|
|
|
|
|
|
// RUN: %clang -target aarch64-linux-eabi -mfpu=neon-fp-armv8 %s -### 2>&1 \
|
|
|
|
// RUN: | FileCheck --check-prefix=CHECK-NEON-FP-ARMV8 %s
|
2014-04-16 23:33:56 +08:00
|
|
|
// RUN: %clang -target arm64-linux-eabi -mfpu=neon-fp-armv8 %s -### 2>&1 \
|
|
|
|
// RUN: | FileCheck --check-prefix=CHECK-NEON-FP-ARMV8 %s
|
2013-10-31 17:32:33 +08:00
|
|
|
// CHECK-NEON-FP-ARMV8: "-target-feature" "+fp-armv8"
|
|
|
|
// CHECK-NEON-FP-ARMV8: "-target-feature" "+neon"
|
|
|
|
|
|
|
|
// RUN: %clang -target aarch64-linux-eabi -mfpu=crypto-neon-fp-armv8 %s -### 2>&1 \
|
|
|
|
// RUN: | FileCheck --check-prefix=CHECK-CRYPTO-NEON-FP-ARMV8 %s
|
2014-04-16 23:33:56 +08:00
|
|
|
// RUN: %clang -target arm64-linux-eabi -mfpu=crypto-neon-fp-armv8 %s -### 2>&1 \
|
|
|
|
// RUN: | FileCheck --check-prefix=CHECK-CRYPTO-NEON-FP-ARMV8 %s
|
2013-10-31 17:32:33 +08:00
|
|
|
// CHECK-CRYPTO-NEON-FP-ARMV8: "-target-feature" "+fp-armv8"
|
|
|
|
// CHECK-CRYPTO-NEON-FP-ARMV8: "-target-feature" "+neon"
|
|
|
|
// CHECK-CRYPTO-NEON-FP-ARMV8: "-target-feature" "+crypto"
|