31 lines · c
1// RUN: %clang -### -target arm %s 2>&1 | FileCheck %s --check-prefix=CHECK-NONE2// RUN: %clang -### -target arm -march=armv8.1a %s 2>&1 | FileCheck %s --check-prefix=CHECK-NONE3// RUN: %clang -### -target arm -march=armv8.2a %s 2>&1 | FileCheck %s --check-prefix=CHECK-NONE4// RUN: %clang -### -target arm -march=armv8.3a %s 2>&1 | FileCheck %s --check-prefix=CHECK-NONE5// CHECK-NONE-NOT: "-target-feature" "+dotprod"6 7// RUN: %clang -### -target arm-linux-eabi -march=armv8.2a+dotprod %s 2>&1 | FileCheck %s8// RUN: %clang -### -target arm-linux-eabi -march=armv8.3a+dotprod %s 2>&1 | FileCheck %s9// RUN: %clang -### -target arm-linux-eabi -mcpu=cortex-a75 %s 2>&1 | FileCheck %s10// RUN: %clang -### -target arm-linux-eabi -mcpu=cortex-a76 %s 2>&1 | FileCheck %s11// RUN: %clang -### -target arm-linux-eabi -mcpu=cortex-a76ae %s 2>&1 | FileCheck %s12// RUN: %clang -### -target arm-linux-eabi -mcpu=cortex-a55 %s 2>&1 | FileCheck %s13// CHECK: "+dotprod"14 15// The following default to -msoft-float16// RUN: %clang -### -target arm -march=armv8.2a+dotprod %s 2>&1 \17// RUN: | FileCheck %s --check-prefix=CHECK-NO-DOTPROD18// RUN: %clang -### -target arm -march=armv8.3a+dotprod %s 2>&1 \19// RUN: | FileCheck %s --check-prefix=CHECK-NO-DOTPROD20// RUN: %clang -### -target arm -mcpu=cortex-a75 %s 2>&1 \21// RUN: | FileCheck %s --check-prefix=CHECK-NO-DOTPROD22// RUN: %clang -### -target arm -mcpu=cortex-a76 %s 2>&1 \23// RUN: | FileCheck %s --check-prefix=CHECK-NO-DOTPROD24// RUN: %clang -### -target arm -mcpu=cortex-a76ae %s 2>&1 \25// RUN: | FileCheck %s --check-prefix=CHECK-NO-DOTPROD26// RUN: %clang -### -target arm -mcpu=cortex-a55 %s 2>&1 \27// RUN: | FileCheck %s --check-prefix=CHECK-NO-DOTPROD28// We rely on the backend disabling dotprod as it depends on neon, so check that29// neon is disabled after the dotprod was enabled.30// CHECK-NO-DOTPROD-NOT: "+dotprod"31