Skip to content

Commit b5624a6

Browse files
committed
[driver][tests] Move tests closer to the group they belong to. [NFC]
1 parent 2796a49 commit b5624a6

File tree

1 file changed

+15
-14
lines changed

1 file changed

+15
-14
lines changed

clang/test/Driver/frame-pointer-elim.c

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -207,20 +207,6 @@
207207
// RUN: %clang -### --target=arm-apple-none-macho -S -O1 -fno-omit-frame-pointer %s 2>&1 | \
208208
// RUN: FileCheck --check-prefix=KEEP-NON-LEAF %s
209209

210-
// AArch64 bare metal targets behave like hosted targets
211-
// RUN: %clang -### --target=aarch64-none-elf -S %s 2>&1 | \
212-
// RUN: FileCheck --check-prefix=KEEP-NON-LEAF %s
213-
// RUN: %clang -### --target=aarch64-none-elf -S -O1 %s 2>&1 | \
214-
// RUN: FileCheck --check-prefix=KEEP-NON-LEAF %s
215-
// RUN: %clang -### --target=aarch64-none-elf -S -fno-omit-frame-pointer %s 2>&1 | \
216-
// RUN: FileCheck --check-prefix=KEEP-NON-LEAF %s
217-
// RUN: %clang -### --target=aarch64-none-elf -S -O1 -fno-omit-frame-pointer %s 2>&1 | \
218-
// RUN: FileCheck --check-prefix=KEEP-NON-LEAF %s
219-
220-
// AArch64 Windows requires that the frame pointer be reserved
221-
// RUN: %clang -### --target=aarch64-pc-windows-msvc -S -fomit-frame-pointer %s 2>&1 | \
222-
// RUN: FileCheck --check-prefix=KEEP-RESERVED %s
223-
224210
// When targeting Mach-O on Arm, the frame pointer is "none" if
225211
// -fomit-frame-pointer is specified.
226212
// RUN: %clang --target=armv7-apple-macho -### -S %s 2>&1 \
@@ -238,5 +224,20 @@
238224
// RUN: %clang --target=armv7-apple-macho -### -S %s 2>&1 \
239225
// RUN: -fomit-frame-pointer -mno-omit-leaf-frame-pointer \
240226
// RUN: | FileCheck -check-prefix=KEEP-NONE %s
227+
228+
// AArch64 bare metal targets behave like hosted targets
229+
// RUN: %clang -### --target=aarch64-none-elf -S %s 2>&1 | \
230+
// RUN: FileCheck --check-prefix=KEEP-NON-LEAF %s
231+
// RUN: %clang -### --target=aarch64-none-elf -S -O1 %s 2>&1 | \
232+
// RUN: FileCheck --check-prefix=KEEP-NON-LEAF %s
233+
// RUN: %clang -### --target=aarch64-none-elf -S -fno-omit-frame-pointer %s 2>&1 | \
234+
// RUN: FileCheck --check-prefix=KEEP-NON-LEAF %s
235+
// RUN: %clang -### --target=aarch64-none-elf -S -O1 -fno-omit-frame-pointer %s 2>&1 | \
236+
// RUN: FileCheck --check-prefix=KEEP-NON-LEAF %s
237+
238+
// AArch64 Windows requires that the frame pointer be reserved
239+
// RUN: %clang -### --target=aarch64-pc-windows-msvc -S -fomit-frame-pointer %s 2>&1 | \
240+
// RUN: FileCheck --check-prefix=KEEP-RESERVED %s
241+
241242
void f0() {}
242243
void f1() { f0(); }

0 commit comments

Comments
 (0)