diff options
Diffstat (limited to 'clang/test/CodeGen/arm-cortex-cpus.c')
| -rw-r--r-- | clang/test/CodeGen/arm-cortex-cpus.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/clang/test/CodeGen/arm-cortex-cpus.c b/clang/test/CodeGen/arm-cortex-cpus.c new file mode 100644 index 00000000000..d8d9830e5e0 --- /dev/null +++ b/clang/test/CodeGen/arm-cortex-cpus.c @@ -0,0 +1,11 @@ +// REQUIRES: arm-registered-target + +// Check that Cortex-M cores don't enable hwdiv-arm (and don't emit Tag_DIV_use) +// +// This target feature doesn't affect C predefines, nor the generated IR; +// only the build attributes in generated assembly and object files are affected. + +// RUN: %clang -target arm-linux-gnueabi -mcpu=cortex-m3 -S %s -o - | FileCheck %s +// RUN: %clang -target arm-linux-gnueabi -mcpu=cortex-m4 -S %s -o - | FileCheck %s +// CHECK-NOT: .eabi_attribute 44 + |

