File tree 2 files changed +10
-0
lines changed
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"
60
60
: " eax"
61
61
);
62
62
# } }
63
+ # #[cfg(not(any(target_arch = " x86" , target_arch = " x86_64" )))]
64
+ # fn main () {}
63
65
```
64
66
65
67
Whitespace also doesn't matter:
@@ -70,6 +72,8 @@ Whitespace also doesn't matter:
70
72
# fn main () { unsafe {
71
73
asm! (" xor %eax, %eax" :: : " eax" );
72
74
# } }
75
+ # #[cfg(not(any(target_arch = " x86" , target_arch = " x86_64" )))]
76
+ # fn main () {}
73
77
```
74
78
75
79
## Operands
@@ -129,6 +133,8 @@ stay valid.
129
133
// Put the value 0x200 in eax
130
134
asm! (" mov $$0x200, %eax" : /* no outputs */ : /* no inputs */ : " eax" );
131
135
# } }
136
+ # #[cfg(not(any(target_arch = " x86" , target_arch = " x86_64" )))]
137
+ # fn main () {}
132
138
```
133
139
134
140
Input and output registers need not be listed since that information
@@ -164,6 +170,8 @@ unsafe {
164
170
}
165
171
println! (" eax is currently {}" , result );
166
172
# }
173
+ # #[cfg(not(any(target_arch = " x86" , target_arch = " x86_64" )))]
174
+ # fn main () {}
167
175
```
168
176
169
177
## More Information
Original file line number Diff line number Diff line change 11
11
// ignore-tidy-linelength
12
12
// ignore-lldb
13
13
// ignore-android: FIXME(#24958)
14
+ // ignore-arm: FIXME(#24958)
15
+ // ignore-aarch64: FIXME(#24958)
14
16
15
17
// compile-flags:-g
16
18
You can’t perform that action at this time.
0 commit comments