Revision e924c485
b/tcg/ppc/tcg-target.c | ||
---|---|---|
987 | 987 |
|
988 | 988 |
switch (cond) { |
989 | 989 |
case TCG_COND_EQ: |
990 |
tcg_out_cmp (s, TCG_COND_EQ, args[0], args[2], const_args[2], 6); |
|
991 |
tcg_out_cmp (s, TCG_COND_EQ, args[1], args[3], const_args[3], 7); |
|
992 |
tcg_out32 (s, CRAND | BT (7, CR_EQ) | BA (6, CR_EQ) | BB (7, CR_EQ)); |
|
993 |
break; |
|
994 | 990 |
case TCG_COND_NE: |
995 |
tcg_out_cmp (s, TCG_COND_NE, args[0], args[2], const_args[2], 6); |
|
996 |
tcg_out_cmp (s, TCG_COND_NE, args[1], args[3], const_args[3], 7); |
|
997 |
tcg_out32 (s, CRNAND | BT (7, CR_EQ) | BA (6, CR_EQ) | BB (7, CR_EQ)); |
|
991 |
op = (cond == TCG_COND_EQ) ? CRAND : CRNAND; |
|
992 |
tcg_out_cmp (s, cond, args[0], args[2], const_args[2], 6); |
|
993 |
tcg_out_cmp (s, cond, args[1], args[3], const_args[3], 7); |
|
994 |
tcg_out32 (s, op | BT (7, CR_EQ) | BA (6, CR_EQ) | BB (7, CR_EQ)); |
|
998 | 995 |
break; |
999 | 996 |
case TCG_COND_LT: |
1000 | 997 |
case TCG_COND_LE: |
Also available in: Unified diff