Skip to content

Commit 4f246e4

Browse files
committed
Fix nvptx-safe-naming.rs test on LLVM 21
This is now printed on the same line. Use NEXT/SAME depending on the LLVM version.
1 parent 8b8e1c5 commit 4f246e4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/assembly/nvptx-safe-naming.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
//@ assembly-output: ptx-linker
22
//@ compile-flags: --crate-type cdylib -Z unstable-options -Clinker-flavor=llbc
33
//@ only-nvptx64
4+
//@ revisions: LLVM20 LLVM21
5+
//@ [LLVM21] min-llvm-version: 21
6+
//@ [LLVM20] max-llvm-major-version: 20
47

58
#![feature(abi_ptx)]
69
#![no_std]
@@ -15,7 +18,8 @@ extern crate breakpoint_panic_handler;
1518
#[no_mangle]
1619
pub unsafe extern "ptx-kernel" fn top_kernel(a: *const u32, b: *mut u32) {
1720
// CHECK: call.uni (retval0),
18-
// CHECK-NEXT: [[IMPL_FN]]
21+
// LLVM20-NEXT: [[IMPL_FN]]
22+
// LLVM21-SAME: [[IMPL_FN]]
1923
*b = deep::private::MyStruct::new(*a).square();
2024
}
2125

0 commit comments

Comments
 (0)