diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/assembly/nvptx-arch-target-cpu.rs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/test/assembly/nvptx-arch-target-cpu.rs b/src/test/assembly/nvptx-arch-target-cpu.rs new file mode 100644 index 000000000..824ee9cd8 --- /dev/null +++ b/src/test/assembly/nvptx-arch-target-cpu.rs @@ -0,0 +1,13 @@ +// assembly-output: ptx-linker +// compile-flags: --crate-type cdylib -C target-cpu=sm_50 +// only-nvptx64 +// ignore-nvptx64 + +#![no_std] + +// aux-build: breakpoint-panic-handler.rs +extern crate breakpoint_panic_handler; + +// Verify target arch override via `target-cpu`. +// CHECK: .target sm_50 +// CHECK: .address_size 64 |