- if(get_ia32_am_arity(node) == ia32_am_unary) {
- set_irn_n(node, n_ia32_unary_op, load_res);
- } else if(get_ia32_am_arity(node) == ia32_am_binary) {
- if(is_ia32_Immediate(get_irn_n(node, n_ia32_Cmp_right))) {
- assert(is_ia32_Cmp(node) || is_ia32_Cmp8Bit(node)
- || is_ia32_Test(node) || is_ia32_Test8Bit(node));
- set_irn_n(node, n_ia32_binary_left, load_res);
- } else {
+ switch (get_ia32_am_arity(node)) {
+ case ia32_am_unary:
+ set_irn_n(node, n_ia32_unary_op, load_res);
+ break;
+
+ case ia32_am_binary:
+ if (is_ia32_Immediate(get_irn_n(node, n_ia32_Cmp_right))) {
+ assert(is_ia32_Cmp(node) || is_ia32_Cmp8Bit(node) ||
+ is_ia32_Test(node) || is_ia32_Test8Bit(node));
+ set_irn_n(node, n_ia32_binary_left, load_res);
+ } else {
+ set_irn_n(node, n_ia32_binary_right, load_res);
+ }
+ break;
+
+ case ia32_am_ternary: