xref: /llvm-project/clang/test/CodeGen/arm-mfpu-none.c (revision f8ad4d663f12dc72b88b240108a78108053cef40)
1 // REQUIRES: arm-registered-target
2 // RUN: %clang -target arm-none-eabi -mcpu=cortex-m4 -mfpu=none -S -o - %s | FileCheck %s
3 
4 // CHECK-LABEL: compute
5 // CHECK-NOT: {{s[0-9]}}
6 // CHECK: .fnend
compute(float a,float b)7 float compute(float a, float b) {
8   return (a+b) * (a-b);
9 }
10