Skip to content
Closed
Show file tree
Hide file tree
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
1 change: 0 additions & 1 deletion src/test/assembly/nvptx-arch-default.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// assembly-output: ptx-linker
// compile-flags: --crate-type cdylib
// only-nvptx64
// ignore-nvptx64

#![no_std]

Expand Down
1 change: 0 additions & 1 deletion src/test/assembly/nvptx-arch-emit-asm.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// assembly-output: emit-asm
// compile-flags: --crate-type rlib
// only-nvptx64
// ignore-nvptx64

#![no_std]

Expand Down
1 change: 0 additions & 1 deletion src/test/assembly/nvptx-arch-link-arg.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// assembly-output: ptx-linker
// compile-flags: --crate-type cdylib -C link-arg=--arch=sm_60
// only-nvptx64
// ignore-nvptx64

#![no_std]

Expand Down
1 change: 0 additions & 1 deletion src/test/assembly/nvptx-arch-target-cpu.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// assembly-output: ptx-linker
// compile-flags: --crate-type cdylib -C target-cpu=sm_50
// only-nvptx64
// ignore-nvptx64

#![no_std]

Expand Down
7 changes: 3 additions & 4 deletions src/test/assembly/nvptx-atomics.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// assembly-output: ptx-linker
// compile-flags: --crate-type cdylib
// only-nvptx64
// ignore-nvptx64

#![feature(abi_ptx, core_intrinsics)]
#![no_std]
Expand All @@ -23,7 +22,7 @@ extern crate breakpoint_panic_handler;
// FIXME(denzp): add tests for `core::sync::atomic::*`.

#[no_mangle]
pub unsafe extern "ptx-kernel" fn atomics_kernel(a: *mut u32) {
pub unsafe extern "ptx-kernel" fn atomics_kernel(a: *mut u32, out: *mut u32) {
// CHECK: atom.global.and.b32 %{{r[0-9]+}}, [%{{rd[0-9]+}}], 1;
// CHECK: atom.global.and.b32 %{{r[0-9]+}}, [%{{rd[0-9]+}}], 1;
atomic_and(a, 1);
Expand Down Expand Up @@ -66,8 +65,8 @@ pub unsafe extern "ptx-kernel" fn atomics_kernel(a: *mut u32) {

// CHECK: atom.global.exch.b32 %{{r[0-9]+}}, [%{{rd[0-9]+}}], 1;
// CHECK: atom.global.exch.b32 %{{r[0-9]+}}, [%{{rd[0-9]+}}], 1;
atomic_xchg(a, 1);
atomic_xchg_relaxed(a, 1);
*out = atomic_xchg(a, 1);
*out = atomic_xchg_relaxed(a, 1);

// CHECK: atom.global.xor.b32 %{{r[0-9]+}}, [%{{rd[0-9]+}}], 1;
// CHECK: atom.global.xor.b32 %{{r[0-9]+}}, [%{{rd[0-9]+}}], 1;
Expand Down
1 change: 0 additions & 1 deletion src/test/assembly/nvptx-internalizing.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// assembly-output: ptx-linker
// compile-flags: --crate-type cdylib
// only-nvptx64
// ignore-nvptx64

#![feature(abi_ptx)]
#![no_std]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// assembly-output: ptx-linker
// compile-flags: --crate-type cdylib -C target-cpu=sm_86
// only-nvptx64
// ignore-nvptx64

// The following ABI tests are made with nvcc 11.6 does.
//
Expand Down
1 change: 0 additions & 1 deletion src/test/assembly/nvptx-linking-binary.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// assembly-output: ptx-linker
// compile-flags: --crate-type bin
// only-nvptx64
// ignore-nvptx64

#![feature(abi_ptx)]
#![no_main]
Expand Down
1 change: 0 additions & 1 deletion src/test/assembly/nvptx-linking-cdylib.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// assembly-output: ptx-linker
// compile-flags: --crate-type cdylib
// only-nvptx64
// ignore-nvptx64

#![feature(abi_ptx)]
#![no_std]
Expand Down
3 changes: 1 addition & 2 deletions src/test/assembly/nvptx-safe-naming.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// assembly-output: ptx-linker
// compile-flags: --crate-type cdylib
// only-nvptx64
// ignore-nvptx64

#![feature(abi_ptx)]
#![no_std]
Expand All @@ -10,7 +9,7 @@
extern crate breakpoint_panic_handler;

// Verify function name doesn't contain unacceaptable characters.
// CHECK: .func (.param .b32 func_retval0) [[IMPL_FN:[a-zA-Z0-9$_]+square[a-zA-Z0-9$_]+]](
// CHECK: .func (.param .b32 func_retval0) [[IMPL_FN:[a-zA-Z0-9$_]+square[a-zA-Z0-9$_]+]]

// CHECK-LABEL: .visible .entry top_kernel(
#[no_mangle]
Expand Down