From 64d98f8ee037282c35007b64c2649055c56af1db Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 14:19:03 +0200 Subject: Merging upstream version 1.68.2+dfsg1. Signed-off-by: Daniel Baumann --- tests/assembly/nvptx-arch-link-arg.rs | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 tests/assembly/nvptx-arch-link-arg.rs (limited to 'tests/assembly/nvptx-arch-link-arg.rs') diff --git a/tests/assembly/nvptx-arch-link-arg.rs b/tests/assembly/nvptx-arch-link-arg.rs new file mode 100644 index 000000000..025a9ad49 --- /dev/null +++ b/tests/assembly/nvptx-arch-link-arg.rs @@ -0,0 +1,13 @@ +// assembly-output: ptx-linker +// compile-flags: --crate-type cdylib -C link-arg=--arch=sm_60 +// only-nvptx64 +// ignore-nvptx64 + +#![no_std] + +// aux-build: breakpoint-panic-handler.rs +extern crate breakpoint_panic_handler; + +// Verify target arch override via `link-arg`. +// CHECK: .target sm_60 +// CHECK: .address_size 64 -- cgit v1.2.3