1 // Test that different values of -mfpu pick correct AArch64 FPU target-feature(s). 2 3 // RUN: %clang -target aarch64-linux-eabi -mfpu=neon %s -### -o %t.o 2>&1 \ 4 // RUN: | FileCheck --check-prefix=CHECK-NEON %s 5 // RUN: %clang -target aarch64-linux-eabi %s -### -o %t.o 2>&1 \ 6 // RUN: | FileCheck --check-prefix=CHECK-NEON %s 7 // RUN: %clang -target arm64-linux-eabi -mfpu=neon %s -### -o %t.o 2>&1 \ 8 // RUN: | FileCheck --check-prefix=CHECK-NEON %s 9 // RUN: %clang -target arm64-linux-eabi %s -### -o %t.o 2>&1 \ 10 // RUN: | FileCheck --check-prefix=CHECK-NEON %s 11 // CHECK-NEON: "-target-feature" "+neon" 12 13 // RUN: %clang -target aarch64-linux-eabi -mfpu=fp-armv8 %s -### -o %t.o 2>&1 \ 14 // RUN: | FileCheck --check-prefix=CHECK-FP-ARMV8 %s 15 // RUN: %clang -target arm64-linux-eabi -mfpu=fp-armv8 %s -### -o %t.o 2>&1 \ 16 // RUN: | FileCheck --check-prefix=CHECK-FP-ARMV8 %s 17 // CHECK-FP-ARMV8: "-target-feature" "+fp-armv8" 18 19 // RUN: %clang -target aarch64-linux-eabi -mfpu=neon-fp-armv8 %s -### 2>&1 \ 20 // RUN: | FileCheck --check-prefix=CHECK-NEON-FP-ARMV8 %s 21 // RUN: %clang -target arm64-linux-eabi -mfpu=neon-fp-armv8 %s -### 2>&1 \ 22 // RUN: | FileCheck --check-prefix=CHECK-NEON-FP-ARMV8 %s 23 // CHECK-NEON-FP-ARMV8: "-target-feature" "+fp-armv8" 24 // CHECK-NEON-FP-ARMV8: "-target-feature" "+neon" 25 26 // RUN: %clang -target aarch64-linux-eabi -mfpu=crypto-neon-fp-armv8 %s -### 2>&1 \ 27 // RUN: | FileCheck --check-prefix=CHECK-CRYPTO-NEON-FP-ARMV8 %s 28 // RUN: %clang -target arm64-linux-eabi -mfpu=crypto-neon-fp-armv8 %s -### 2>&1 \ 29 // RUN: | FileCheck --check-prefix=CHECK-CRYPTO-NEON-FP-ARMV8 %s 30 // CHECK-CRYPTO-NEON-FP-ARMV8: "-target-feature" "+fp-armv8" 31 // CHECK-CRYPTO-NEON-FP-ARMV8: "-target-feature" "+neon" 32 // CHECK-CRYPTO-NEON-FP-ARMV8: "-target-feature" "+crypto" 33