(void)fold_constgen_float (fold, 0.0f);
(void)fold_constgen_float (fold, 1.0f);
(void)fold_constgen_float (fold, -1.0f);
+ (void)fold_constgen_float (fold, 2.0f);
(void)fold_constgen_vector(fold, vec3_create(0.0f, 0.0f, 0.0f));
(void)fold_constgen_vector(fold, vec3_create(-1.0f, -1.0f, -1.0f));
intrin_ctx(intrin),
INSTR_DIV_F,
(ast_expression*)exp,
- (ast_expression*)fold_constgen_float(intrin->fold, 2.0f)
+ (ast_expression*)intrin->fold->imm_float[3] /* 2.0f */
)
);
intrin_ctx(intrin),
INSTR_DIV_F,
(ast_expression*)high,
- (ast_expression*)fold_constgen_float(intrin->fold, 2.0f)
+ (ast_expression*)intrin->fold->imm_float[3] /* 2.0f */
)
)
);
(ast_expression*)low,
(ast_expression*)high
),
- (ast_expression*)fold_constgen_float(intrin->fold, 2.0f)
+ (ast_expression*)intrin->fold->imm_float[3] /* 2.0f */
)
)
);
intrin_ctx(intrin),
INSTR_MUL_F,
(ast_expression*)eps,
- (ast_expression*)fold_constgen_float(intrin->fold, 2.0f)
+ (ast_expression*)intrin->fold->imm_float[3] /* 2.0f */
)
),
(ast_expression*)intrin->fold->imm_float[1]
INSTR_STORE_F,
INSTR_DIV_F,
(ast_expression*)eps,
- (ast_expression*)fold_constgen_float(intrin->fold, 2.0f)
+ (ast_expression*)intrin->fold->imm_float[3] /* 2.0f */
)
)
);