Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions tests/codegen-llvm/inlining-target-feature-differences.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
//@ only-arm
//@ ignore-backends: gcc

#![feature(arm_target_feature)]
#![crate_type = "lib"]
#![no_std]

#[inline]
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was a little worried this would get MIR inlined, but it seems like that doesn't happen right now at least... https://rust.godbolt.org/z/jvs7K3W9f

fn callee_neon(a: i32, b: i32) -> i32 {
a + b
}

#[no_mangle]
#[target_feature(enable = "neon")]
pub fn caller_neon(x: i32, y: i32) -> i32 {
// CHECK-LABEL: define noundef i32 @caller_neon(
// CHECK: [[R:%[0-9A-Za-z_.]+]] = add
callee_neon(x, y)
}
Loading