about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFolkert <folkert@folkertdev.nl>2024-07-27 19:18:11 +0200
committerFolkert <folkert@folkertdev.nl>2024-07-27 19:18:11 +0200
commitc7e688eccd60ab05a00dea56ac9d984397a2d02e (patch)
tree326e3537fe5f36bb0d27742b0fd59e1b075c6475
parenta3bb0104ff929674e9d315d9ebec8324f88f367f (diff)
downloadrust-c7e688eccd60ab05a00dea56ac9d984397a2d02e.tar.gz
rust-c7e688eccd60ab05a00dea56ac9d984397a2d02e.zip
fix `tests/ui/asm/naked-functions.rs` for aarch64
-rw-r--r--tests/ui/asm/naked-functions.rs13
1 files changed, 7 insertions, 6 deletions
diff --git a/tests/ui/asm/naked-functions.rs b/tests/ui/asm/naked-functions.rs
index 33cdbd1adb6..b1f6e5d4fa9 100644
--- a/tests/ui/asm/naked-functions.rs
+++ b/tests/ui/asm/naked-functions.rs
@@ -195,13 +195,13 @@ pub unsafe extern "C" fn compatible_cfg_attributes() {
 #[forbid(dead_code)]
 #[naked]
 pub unsafe extern "C" fn compatible_diagnostic_attributes() {
-    asm!("", options(noreturn, att_syntax));
+    asm!("", options(noreturn, raw));
 }
 
 #[deprecated = "test"]
 #[naked]
 pub unsafe extern "C" fn compatible_deprecated_attributes() {
-    asm!("", options(noreturn, att_syntax));
+    asm!("", options(noreturn, raw));
 }
 
 #[cfg(target_arch = "x86_64")]
@@ -222,15 +222,16 @@ pub unsafe extern "C" fn compatible_must_use_attributes() -> u64 {
 #[no_mangle]
 #[naked]
 pub unsafe extern "C" fn compatible_ffi_attributes_1() {
-    asm!("", options(noreturn, att_syntax));
+    asm!("", options(noreturn, raw));
 }
 
 #[cold]
 #[naked]
 pub unsafe extern "C" fn compatible_codegen_attributes() {
-    asm!("", options(noreturn, att_syntax));
+    asm!("", options(noreturn, raw));
 }
 
+#[cfg(target_arch = "x86_64")]
 #[target_feature(enable = "sse2")]
 #[naked]
 pub unsafe extern "C" fn compatible_target_feature() {
@@ -240,11 +241,11 @@ pub unsafe extern "C" fn compatible_target_feature() {
 #[doc = "foo bar baz"]
 #[naked]
 pub unsafe extern "C" fn compatible_doc_attributes() {
-    asm!("", options(noreturn, att_syntax));
+    asm!("", options(noreturn, raw));
 }
 
 #[linkage = "external"]
 #[naked]
 pub unsafe extern "C" fn compatible_linkage() {
-    asm!("", options(noreturn, att_syntax));
+    asm!("", options(noreturn, raw));
 }