]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/CodeGen/arm-cortex-cpus.c
Vendor import of clang release_38 branch r258549:
[FreeBSD/FreeBSD.git] / test / CodeGen / arm-cortex-cpus.c
1 // REQUIRES: arm-registered-target
2
3 // Check that Cortex-M cores don't enable hwdiv-arm (and don't emit Tag_DIV_use)
4 //
5 // This target feature doesn't affect C predefines, nor the generated IR;
6 // only the build attributes in generated assembly and object files are affected.
7
8 // RUN: %clang -target arm-linux-gnueabi -mcpu=cortex-m3 -S %s -o - | FileCheck %s
9 // RUN: %clang -target arm-linux-gnueabi -mcpu=cortex-m4 -S %s -o - | FileCheck %s
10 // CHECK-NOT: .eabi_attribute   44
11