diff options
| author | beetrees <b@beetr.ee> | 2025-06-12 00:47:01 +0100 |
|---|---|---|
| committer | beetrees <b@beetr.ee> | 2025-06-12 00:47:01 +0100 |
| commit | eb472e77cd3eeb154d163c8d3d23afe5666d367e (patch) | |
| tree | dd4fd7cd0017e4a1c3053ae632d8a4e0304d730d /tests/assembly | |
| parent | e703dff8fe220b78195c53478e83fb2f68d8499c (diff) | |
| download | rust-eb472e77cd3eeb154d163c8d3d23afe5666d367e.tar.gz rust-eb472e77cd3eeb154d163c8d3d23afe5666d367e.zip | |
Apply ABI attributes on return types in `rustc_codegen_cranelift`
Diffstat (limited to 'tests/assembly')
| -rw-r--r-- | tests/assembly/pic-relocation-model.rs | 2 | ||||
| -rw-r--r-- | tests/assembly/pie-relocation-model.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/assembly/pic-relocation-model.rs b/tests/assembly/pic-relocation-model.rs index d35cd968389..15a8723f756 100644 --- a/tests/assembly/pic-relocation-model.rs +++ b/tests/assembly/pic-relocation-model.rs @@ -19,7 +19,7 @@ pub fn call_other_fn() -> u8 { } // CHECK-LABEL: other_fn: -// CHECK: callq *foreign_fn@GOTPCREL(%rip) +// CHECK: {{(jmpq|callq)}} *foreign_fn@GOTPCREL(%rip) #[no_mangle] #[inline(never)] pub fn other_fn() -> u8 { diff --git a/tests/assembly/pie-relocation-model.rs b/tests/assembly/pie-relocation-model.rs index 5c74b34eb31..cbe0001041e 100644 --- a/tests/assembly/pie-relocation-model.rs +++ b/tests/assembly/pie-relocation-model.rs @@ -22,7 +22,7 @@ pub fn call_other_fn() -> u8 { // CHECK-LABEL: other_fn: // External functions are still called through GOT, since we don't know if the symbol // is defined in the binary or in the shared library. -// CHECK: callq *foreign_fn@GOTPCREL(%rip) +// CHECK: {{(jmpq|callq)}} *foreign_fn@GOTPCREL(%rip) #[no_mangle] #[inline(never)] pub fn other_fn() -> u8 { |
