From e31250726cf9ba5592af65d7f45e04f369c12e16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=AE=B8=E6=9D=B0=E5=8F=8B=20Jieyou=20Xu=20=28Joe=29?= <39484203+jieyouxu@users.noreply.github.com> Date: Thu, 5 Dec 2024 13:01:46 +0800 Subject: [PATCH] Document `needs-target-has-atomic` directive (#2154) --- src/tests/directives.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/tests/directives.md b/src/tests/directives.md index 132093c36..24e0e3686 100644 --- a/src/tests/directives.md +++ b/src/tests/directives.md @@ -183,6 +183,10 @@ settings: assertions. - `needs-rustc-debug-assertions` — ignores if rustc was not built with debug assertions. +- `needs-target-has-atomic` — ignores if target does not have support for all + specified atomic widths, e.g. the test with `//@ needs-target-has-atomic: 8, + 16, ptr` will only run if it supports the comma-separated list of atomic + widths. The following directives will check LLVM support: