Add conversion of bool to float as an IR operation to match int to float.

This commit is contained in:
Eric Anholt
2010-04-02 02:13:43 -10:00
committed by Ian Romanick
parent 106d122318
commit dc58b3f8cc
5 changed files with 9 additions and 2 deletions

2
ir.cpp
View File

@@ -64,6 +64,8 @@ ir_expression::get_num_operands(void)
1, /* ir_unop_log2 */
1, /* ir_unop_f2i */
1, /* ir_unop_i2f */
1, /* ir_unop_f2b */
1, /* ir_unop_b2f */
1, /* ir_unop_u2f */
1, /* ir_unop_trunc */