mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-27 14:46:10 +00:00

This patch adds support for Arm's Cortex-M85 CPU. The Cortex-M85 CPU is an Arm v8.1m Mainline CPU, with optional support for MVE and PACBTI, both of which are enabled by default. Parts have been coauthored by by Mark Murray, Alexandros Lamprineas and David Green. Differential Revision: https://reviews.llvm.org/D128415
21 lines
1.4 KiB
C
21 lines
1.4 KiB
C
// RUN: %clang -target arm-arm-none-eabi -mfloat-abi=soft %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-MFLOAT-ABI-SOFT
|
|
// CHECK-MFLOAT-ABI-SOFT: "-target-feature" "-dotprod"
|
|
// CHECK-MFLOAT-ABI-SOFT: "-target-feature" "-fp16fml"
|
|
// CHECK-MFLOAT-ABI-SOFT: "-target-feature" "-bf16"
|
|
// CHECK-MFLOAT-ABI-SOFT: "-target-feature" "-mve"
|
|
// CHECK-MFLOAT-ABI-SOFT: "-target-feature" "-mve.fp"
|
|
// CHECK-MFLOAT-ABI-SOFT: "-target-feature" "-fpregs"
|
|
|
|
// RUN: %clang -target arm-arm-none-eabi -mfpu=none %s -### 2>&1 | FileCheck %s
|
|
// RUN: %clang -target arm-arm-none-eabi -march=armv8-a+nofp %s -### 2>&1 | FileCheck %s
|
|
// RUN: %clang -target arm-arm-none-eabi -mcpu=cortex-a35+nofp %s -### 2>&1 | FileCheck %s
|
|
// RUN: %clang -target arm-arm-none-eabi -mcpu=cortex-m85+nofp %s -### 2>&1 | FileCheck %s
|
|
// RUN: %clang -target arm-arm-none-eabi -march=armv8-a+nofp+nomve %s -### 2>&1 | FileCheck %s --check-prefixes=CHECK,CHECK-NOMVE
|
|
// RUN: %clang -target arm-arm-none-eabi -mcpu=cortex-a35+nofp+nomve %s -### 2>&1 | FileCheck %s --check-prefixes=CHECK,CHECK-NOMVE
|
|
// RUN: %clang -target arm-arm-none-eabi -mcpu=cortex-m85+nofp+nomve %s -### 2>&1 | FileCheck %s --check-prefixes=CHECK,CHECK-NOMVE
|
|
// CHECK: "-target-feature" "-dotprod"
|
|
// CHECK: "-target-feature" "-fp16fml"
|
|
// CHECK: "-target-feature" "-bf16"
|
|
// CHECK: "-target-feature" "-mve.fp"
|
|
// CHECK-NOMVE: "-target-feature" "-fpregs"
|