diff options
| author | Nikita Popov <npopov@redhat.com> | 2025-07-22 14:18:46 +0200 |
|---|---|---|
| committer | Nikita Popov <npopov@redhat.com> | 2025-07-29 12:15:36 +0200 |
| commit | 56d9ed74452c8e19c532e98294d5d01925822e94 (patch) | |
| tree | b717cf58eacc6542f9b622aac83cf00fb2941709 | |
| parent | 552904134b564a74489db50aebe7070fdcce895c (diff) | |
| download | rust-56d9ed74452c8e19c532e98294d5d01925822e94.tar.gz rust-56d9ed74452c8e19c532e98294d5d01925822e94.zip | |
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.
| -rw-r--r-- | tests/assembly-llvm/nvptx-safe-naming.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/assembly-llvm/nvptx-safe-naming.rs b/tests/assembly-llvm/nvptx-safe-naming.rs index d7b46aadd9c..6a6659a4e30 100644 --- a/tests/assembly-llvm/nvptx-safe-naming.rs +++ b/tests/assembly-llvm/nvptx-safe-naming.rs @@ -1,6 +1,9 @@ //@ assembly-output: ptx-linker //@ compile-flags: --crate-type cdylib -Z unstable-options -Clinker-flavor=llbc //@ only-nvptx64 +//@ revisions: LLVM20 LLVM21 +//@ [LLVM21] min-llvm-version: 21 +//@ [LLVM20] max-llvm-major-version: 20 #![feature(abi_ptx)] #![no_std] @@ -15,7 +18,8 @@ extern crate breakpoint_panic_handler; #[no_mangle] pub unsafe extern "ptx-kernel" fn top_kernel(a: *const u32, b: *mut u32) { // CHECK: call.uni (retval0), - // CHECK-NEXT: [[IMPL_FN]] + // LLVM20-NEXT: [[IMPL_FN]] + // LLVM21-SAME: [[IMPL_FN]] *b = deep::private::MyStruct::new(*a).square(); } |
