Skip to content

Commit c7e688e

Browse files
committed
fix tests/ui/asm/naked-functions.rs for aarch64
1 parent a3bb010 commit c7e688e

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

tests/ui/asm/naked-functions.rs

+7-6
Original file line numberDiff line numberDiff line change
@@ -195,13 +195,13 @@ pub unsafe extern "C" fn compatible_cfg_attributes() {
195195
#[forbid(dead_code)]
196196
#[naked]
197197
pub unsafe extern "C" fn compatible_diagnostic_attributes() {
198-
asm!("", options(noreturn, att_syntax));
198+
asm!("", options(noreturn, raw));
199199
}
200200

201201
#[deprecated = "test"]
202202
#[naked]
203203
pub unsafe extern "C" fn compatible_deprecated_attributes() {
204-
asm!("", options(noreturn, att_syntax));
204+
asm!("", options(noreturn, raw));
205205
}
206206

207207
#[cfg(target_arch = "x86_64")]
@@ -222,15 +222,16 @@ pub unsafe extern "C" fn compatible_must_use_attributes() -> u64 {
222222
#[no_mangle]
223223
#[naked]
224224
pub unsafe extern "C" fn compatible_ffi_attributes_1() {
225-
asm!("", options(noreturn, att_syntax));
225+
asm!("", options(noreturn, raw));
226226
}
227227

228228
#[cold]
229229
#[naked]
230230
pub unsafe extern "C" fn compatible_codegen_attributes() {
231-
asm!("", options(noreturn, att_syntax));
231+
asm!("", options(noreturn, raw));
232232
}
233233

234+
#[cfg(target_arch = "x86_64")]
234235
#[target_feature(enable = "sse2")]
235236
#[naked]
236237
pub unsafe extern "C" fn compatible_target_feature() {
@@ -240,11 +241,11 @@ pub unsafe extern "C" fn compatible_target_feature() {
240241
#[doc = "foo bar baz"]
241242
#[naked]
242243
pub unsafe extern "C" fn compatible_doc_attributes() {
243-
asm!("", options(noreturn, att_syntax));
244+
asm!("", options(noreturn, raw));
244245
}
245246

246247
#[linkage = "external"]
247248
#[naked]
248249
pub unsafe extern "C" fn compatible_linkage() {
249-
asm!("", options(noreturn, att_syntax));
250+
asm!("", options(noreturn, raw));
250251
}

0 commit comments

Comments
 (0)