From 827cf0a7d09092574d3f92158f385ee6cfe0d059 Mon Sep 17 00:00:00 2001 From: Jieyou Xu Date: Mon, 2 Dec 2024 15:11:41 +0800 Subject: [PATCH] Document `needs-target-has-atomic` directive --- 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: