mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-26 21:26:05 +00:00

A user pointed out to me in private email that this test will fail if it sees the letter 's' followed by a digit in any part of clang's assembly output after the function label. That includes the .ident at the end, which can include a full pathname or hostname or both from the system clang was built on. So if that path or hostname includes any text like 's5' then it will cause the test to fail. Fixed by adding a check for `.fnend`, to limit the scope of the `CHECK-NOT` to only the actual generated code for the test function. (Committed without prior review on the basis that it's a simple and obvious pure test-suite fix and also in a test I contributed myself.) llvm-svn: 373744
10 lines
252 B
C
10 lines
252 B
C
// REQUIRES: arm-registered-target
|
|
// RUN: %clang -target arm-none-eabi -mcpu=cortex-m4 -mfpu=none -S -o - %s | FileCheck %s
|
|
|
|
// CHECK-LABEL: compute
|
|
// CHECK-NOT: {{s[0-9]}}
|
|
// CHECK: .fnend
|
|
float compute(float a, float b) {
|
|
return (a+b) * (a-b);
|
|
}
|