From a27f3e3fd1e4d16160f8885b6b06665b5319f56c Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Mon, 21 Jul 2025 14:34:12 +0200 Subject: Rename `tests/codegen` into `tests/codegen-llvm` --- tests/codegen/frame-pointer.rs | 35 ----------------------------------- 1 file changed, 35 deletions(-) delete mode 100644 tests/codegen/frame-pointer.rs (limited to 'tests/codegen/frame-pointer.rs') diff --git a/tests/codegen/frame-pointer.rs b/tests/codegen/frame-pointer.rs deleted file mode 100644 index 23989653fa8..00000000000 --- a/tests/codegen/frame-pointer.rs +++ /dev/null @@ -1,35 +0,0 @@ -//@ add-core-stubs -//@ compile-flags: --crate-type=rlib -Copt-level=0 -//@ revisions: aarch64-apple aarch64-linux force x64-apple x64-linux -//@ [aarch64-apple] needs-llvm-components: aarch64 -//@ [aarch64-apple] compile-flags: --target=aarch64-apple-darwin -//@ [aarch64-linux] needs-llvm-components: aarch64 -//@ [aarch64-linux] compile-flags: --target=aarch64-unknown-linux-gnu -//@ [force] needs-llvm-components: x86 -//@ [force] compile-flags: --target=x86_64-unknown-linux-gnu -Cforce-frame-pointers=yes -//@ [x64-apple] needs-llvm-components: x86 -//@ [x64-apple] compile-flags: --target=x86_64-apple-darwin -//@ [x64-linux] needs-llvm-components: x86 -//@ [x64-linux] compile-flags: --target=x86_64-unknown-linux-gnu - -#![feature(no_core, lang_items)] -#![no_core] - -extern crate minicore; -use minicore::*; - -// CHECK: define i32 @peach{{.*}}[[PEACH_ATTRS:\#[0-9]+]] { -#[no_mangle] -pub fn peach(x: u32) -> u32 { - x -} - -// CHECK: attributes [[PEACH_ATTRS]] = { -// x64-linux-NOT: {{.*}}"frame-pointer"{{.*}} -// x64-apple-SAME: {{.*}}"frame-pointer"="all" -// force-SAME: {{.*}}"frame-pointer"="all" -// -// AAPCS64 demands frame pointers: -// aarch64-linux-SAME: {{.*}}"frame-pointer"="non-leaf" -// aarch64-apple-SAME: {{.*}}"frame-pointer"="non-leaf" -// CHECK-SAME: } -- cgit 1.4.1-3-g733a5