We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de8c19e commit 09d3b77Copy full SHA for 09d3b77
i386-asm.c
@@ -722,7 +722,7 @@ ST_FUNC void asm_opcode(TCCState *s1, int opcode)
722
}
723
parse_operand(s1, pop);
724
if (tok == ':') {
725
- if (pop->type != OP_SEG || seg_prefix)
+ if (!(pop->type & OP_SEG) || seg_prefix)
726
tcc_error("incorrect prefix");
727
seg_prefix = segment_prefixes[pop->reg];
728
next();
@@ -852,7 +852,7 @@ ST_FUNC void asm_opcode(TCCState *s1, int opcode)
852
if (opcode >= TOK_ASM_first && opcode <= TOK_ASM_last) {
853
int b;
854
b = op0_codes[opcode - TOK_ASM_first];
855
- if (b & 0xff00)
+ if (b & 0xff00)
856
g(b >> 8);
857
g(b);
858
return;
0 commit comments