typedef enum {
X86_NEAR,
X86_SHORT,
- X86_FAR
+ X86_FAR,
+ X86_TO
} x86_parse_targetmod;
typedef enum {
data[0] = X86_FAR;
return ARCH_CHECK_ID_TARGETMOD;
}
+ T O {
+ data[0] = X86_TO;
+ return ARCH_CHECK_ID_TARGETMOD;
+ }
/* operand size overrides */
O "16" {
%token <int_info> RESERVE_SPACE
%token INCBIN EQU TIMES
%token SEG WRT NOSPLIT
-%token TO
%token <arch_data> INSN PREFIX REG SEGREG TARGETMOD
%token LEFT_OP RIGHT_OP SIGNDIV SIGNMOD START_SECTION_ID
%token <str_val> ID LOCAL_ID SPECIAL_ID
N O S P L I T { RETURN(NOSPLIT); }
- T O { RETURN(TO); }
-
/* operators */
"<<" { RETURN(LEFT_OP); }
">>" { RETURN(RIGHT_OP); }
typedef enum {
X86_NEAR,
X86_SHORT,
- X86_FAR
+ X86_FAR,
+ X86_TO
} x86_parse_targetmod;
typedef enum {
data[0] = X86_FAR;
return ARCH_CHECK_ID_TARGETMOD;
}
+ T O {
+ data[0] = X86_TO;
+ return ARCH_CHECK_ID_TARGETMOD;
+ }
/* operand size overrides */
O "16" {
%token <int_info> RESERVE_SPACE
%token INCBIN EQU TIMES
%token SEG WRT NOSPLIT
-%token TO
%token <arch_data> INSN PREFIX REG SEGREG TARGETMOD
%token LEFT_OP RIGHT_OP SIGNDIV SIGNMOD START_SECTION_ID
%token <str_val> ID LOCAL_ID SPECIAL_ID
N O S P L I T { RETURN(NOSPLIT); }
- T O { RETURN(TO); }
-
/* operators */
"<<" { RETURN(LEFT_OP); }
">>" { RETURN(RIGHT_OP); }