File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -60,6 +60,8 @@ asm!("xor %eax, %eax"
6060 : " eax"
6161 );
6262# } }
63+ # #[cfg(not(any(target_arch = " x86" , target_arch = " x86_64" )))]
64+ # fn main () {}
6365```
6466
6567Whitespace also doesn't matter:
@@ -70,6 +72,8 @@ Whitespace also doesn't matter:
7072# fn main () { unsafe {
7173asm! (" xor %eax, %eax" :: : " eax" );
7274# } }
75+ # #[cfg(not(any(target_arch = " x86" , target_arch = " x86_64" )))]
76+ # fn main () {}
7377```
7478
7579## Operands
@@ -129,6 +133,8 @@ stay valid.
129133// Put the value 0x200 in eax
130134asm! (" mov $$0x200, %eax" : /* no outputs */ : /* no inputs */ : " eax" );
131135# } }
136+ # #[cfg(not(any(target_arch = " x86" , target_arch = " x86_64" )))]
137+ # fn main () {}
132138```
133139
134140Input and output registers need not be listed since that information
@@ -164,6 +170,8 @@ unsafe {
164170}
165171println! (" eax is currently {}" , result );
166172# }
173+ # #[cfg(not(any(target_arch = " x86" , target_arch = " x86_64" )))]
174+ # fn main () {}
167175```
168176
169177## More Information
Original file line number Diff line number Diff line change 1111// ignore-tidy-linelength
1212// ignore-lldb
1313// ignore-android: FIXME(#24958)
14+ // ignore-arm: FIXME(#24958)
15+ // ignore-aarch64: FIXME(#24958)
1416
1517// compile-flags:-g
1618
You can’t perform that action at this time.
0 commit comments