You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if p.tok.kind in [.key_in, .key_lock, .key_orelse, .key_select, .key_return] { // `in`, `lock`, `or`, `select`, `return` are v keywords that are also x86/arm/riscv/wasm instructions.
1255
1259
name += p.tok.kind.str()
1260
+
if p.tok.kind== .key_lock && arch in [.i386, .amd64] {
1261
+
p.next()
1262
+
1263
+
has_suffix:= p.tok.lit[p.tok.lit.len -1] in [`b`, `w`, `l`, `q`]
1264
+
if!(p.tok.lit in parser.allowed_lock_prefix_ins || (has_suffix
1265
+
&& p.tok.lit[0..p.tok.lit.len -1] in parser.allowed_lock_prefix_ins)) {
1266
+
p.error('The lock prefix cannot be used on this instruction')
0 commit comments