Lines Matching refs:cc_dep1

962 #define S390_CC_FOR_BINARY(opcode,cc_dep1,cc_dep2) \  argument
966 "ipm %[psw]\n\t" : [psw] "=d"(psw), [op1] "+d"(cc_dep1) \
972 #define S390_CC_FOR_TERNARY_SUBB(opcode,cc_dep1,cc_dep2,cc_ndep) \ argument
981 "ipm %[psw]\n\t" : [psw] "=d"(psw), [op1] "+&d"(cc_dep1) \
987 #define S390_CC_FOR_TERNARY_ADDC(opcode,cc_dep1,cc_dep2,cc_ndep) \ argument
996 "ipm %[psw]\n\t" : [psw] "=d"(psw), [op1] "+&d"(cc_dep1) \
1003 #define S390_CC_FOR_BFP_RESULT(opcode,cc_dep1) \ argument
1008 : [op] "f"(cc_dep1) \
1025 #define S390_CC_FOR_BFP_CONVERT_AUX(opcode,cc_dep1,rounding_mode) \ argument
1030 : [op] "f"(cc_dep1) \
1035 #define S390_CC_FOR_BFP_CONVERT(opcode,cc_dep1,cc_dep2) \ argument
1040 cc = S390_CC_FOR_BFP_CONVERT_AUX(opcode,cc_dep1,4); \
1043 cc = S390_CC_FOR_BFP_CONVERT_AUX(opcode,cc_dep1,5); \
1046 cc = S390_CC_FOR_BFP_CONVERT_AUX(opcode,cc_dep1,6); \
1049 cc = S390_CC_FOR_BFP_CONVERT_AUX(opcode,cc_dep1,7); \
1057 #define S390_CC_FOR_BFP_UCONVERT_AUX(opcode,cc_dep1,rounding_mode) \ argument
1062 : [op] "f"(cc_dep1) \
1067 #define S390_CC_FOR_BFP_UCONVERT(opcode,cc_dep1,cc_dep2) \ argument
1072 cc = S390_CC_FOR_BFP_UCONVERT_AUX(opcode,cc_dep1,4); \
1075 cc = S390_CC_FOR_BFP_UCONVERT_AUX(opcode,cc_dep1,5); \
1078 cc = S390_CC_FOR_BFP_UCONVERT_AUX(opcode,cc_dep1,6); \
1081 cc = S390_CC_FOR_BFP_UCONVERT_AUX(opcode,cc_dep1,7); \
1101 #define S390_CC_FOR_BFP128_CONVERT(opcode,cc_dep1,cc_dep2,cc_ndep) \ argument
1109 cc = S390_CC_FOR_BFP128_CONVERT_AUX(opcode,cc_dep1,cc_dep2,4); \
1112 cc = S390_CC_FOR_BFP128_CONVERT_AUX(opcode,cc_dep1,cc_dep2,5); \
1115 cc = S390_CC_FOR_BFP128_CONVERT_AUX(opcode,cc_dep1,cc_dep2,6); \
1118 cc = S390_CC_FOR_BFP128_CONVERT_AUX(opcode,cc_dep1,cc_dep2,7); \
1138 #define S390_CC_FOR_BFP128_UCONVERT(opcode,cc_dep1,cc_dep2,cc_ndep) \ argument
1146 cc = S390_CC_FOR_BFP128_UCONVERT_AUX(opcode,cc_dep1,cc_dep2,4); \
1149 cc = S390_CC_FOR_BFP128_UCONVERT_AUX(opcode,cc_dep1,cc_dep2,5); \
1152 cc = S390_CC_FOR_BFP128_UCONVERT_AUX(opcode,cc_dep1,cc_dep2,6); \
1155 cc = S390_CC_FOR_BFP128_UCONVERT_AUX(opcode,cc_dep1,cc_dep2,7); \
1163 #define S390_CC_FOR_BFP_TDC(opcode,cc_dep1,cc_dep2) \ argument
1168 : [value] "f"(cc_dep1), \
1174 #define S390_CC_FOR_BFP128_TDC(cc_dep1,cc_dep2,cc_ndep) \ argument
1184 : [high] "f"(cc_dep1), [low] "f"(cc_dep2), \
1217 #define S390_CC_FOR_DFP_RESULT(cc_dep1) \ argument
1222 : [op] "f"(cc_dep1) \
1239 #define S390_CC_FOR_DFP_TD(opcode,cc_dep1,cc_dep2) \ argument
1244 : [value] "f"(cc_dep1), \
1250 #define S390_CC_FOR_DFP128_TD(opcode,cc_dep1,cc_dep2,cc_ndep) \ argument
1260 : [high] "f"(cc_dep1), [low] "f"(cc_dep2), \
1266 #define S390_CC_FOR_DFP_CONVERT_AUX(opcode,cc_dep1,rounding_mode) \ argument
1271 : [op] "f"(cc_dep1) \
1276 #define S390_CC_FOR_DFP_CONVERT(opcode,cc_dep1,cc_dep2) \ argument
1282 cc = S390_CC_FOR_DFP_CONVERT_AUX(opcode,cc_dep1,1); \
1286 cc = S390_CC_FOR_DFP_CONVERT_AUX(opcode,cc_dep1,3); \
1290 cc = S390_CC_FOR_DFP_CONVERT_AUX(opcode,cc_dep1,4); \
1294 cc = S390_CC_FOR_DFP_CONVERT_AUX(opcode,cc_dep1,5); \
1298 cc = S390_CC_FOR_DFP_CONVERT_AUX(opcode,cc_dep1,6); \
1302 cc = S390_CC_FOR_DFP_CONVERT_AUX(opcode,cc_dep1,7); \
1305 cc = S390_CC_FOR_DFP_CONVERT_AUX(opcode,cc_dep1,13); \
1308 cc = S390_CC_FOR_DFP_CONVERT_AUX(opcode,cc_dep1,14); \
1316 #define S390_CC_FOR_DFP_UCONVERT_AUX(opcode,cc_dep1,rounding_mode) \ argument
1321 : [op] "f"(cc_dep1) \
1326 #define S390_CC_FOR_DFP_UCONVERT(opcode,cc_dep1,cc_dep2) \ argument
1332 cc = S390_CC_FOR_DFP_UCONVERT_AUX(opcode,cc_dep1,1); \
1336 cc = S390_CC_FOR_DFP_UCONVERT_AUX(opcode,cc_dep1,3); \
1340 cc = S390_CC_FOR_DFP_UCONVERT_AUX(opcode,cc_dep1,4); \
1344 cc = S390_CC_FOR_DFP_UCONVERT_AUX(opcode,cc_dep1,5); \
1348 cc = S390_CC_FOR_DFP_UCONVERT_AUX(opcode,cc_dep1,6); \
1352 cc = S390_CC_FOR_DFP_UCONVERT_AUX(opcode,cc_dep1,7); \
1355 cc = S390_CC_FOR_DFP_UCONVERT_AUX(opcode,cc_dep1,13); \
1358 cc = S390_CC_FOR_DFP_UCONVERT_AUX(opcode,cc_dep1,14); \
1378 #define S390_CC_FOR_DFP128_CONVERT(opcode,cc_dep1,cc_dep2,cc_ndep) \ argument
1387 cc = S390_CC_FOR_DFP128_CONVERT_AUX(opcode,cc_dep1,cc_dep2,1); \
1391 cc = S390_CC_FOR_DFP128_CONVERT_AUX(opcode,cc_dep1,cc_dep2,3); \
1395 cc = S390_CC_FOR_DFP128_CONVERT_AUX(opcode,cc_dep1,cc_dep2,4); \
1399 cc = S390_CC_FOR_DFP128_CONVERT_AUX(opcode,cc_dep1,cc_dep2,5); \
1403 cc = S390_CC_FOR_DFP128_CONVERT_AUX(opcode,cc_dep1,cc_dep2,6); \
1407 cc = S390_CC_FOR_DFP128_CONVERT_AUX(opcode,cc_dep1,cc_dep2,7); \
1410 cc = S390_CC_FOR_DFP128_CONVERT_AUX(opcode,cc_dep1,cc_dep2,13); \
1413 cc = S390_CC_FOR_DFP128_CONVERT_AUX(opcode,cc_dep1,cc_dep2,14); \
1433 #define S390_CC_FOR_DFP128_UCONVERT(opcode,cc_dep1,cc_dep2,cc_ndep) \ argument
1442 cc = S390_CC_FOR_DFP128_UCONVERT_AUX(opcode,cc_dep1,cc_dep2,1); \
1446 cc = S390_CC_FOR_DFP128_UCONVERT_AUX(opcode,cc_dep1,cc_dep2,3); \
1450 cc = S390_CC_FOR_DFP128_UCONVERT_AUX(opcode,cc_dep1,cc_dep2,4); \
1454 cc = S390_CC_FOR_DFP128_UCONVERT_AUX(opcode,cc_dep1,cc_dep2,5); \
1458 cc = S390_CC_FOR_DFP128_UCONVERT_AUX(opcode,cc_dep1,cc_dep2,6); \
1462 cc = S390_CC_FOR_DFP128_UCONVERT_AUX(opcode,cc_dep1,cc_dep2,7); \
1465 cc = S390_CC_FOR_DFP128_UCONVERT_AUX(opcode,cc_dep1,cc_dep2,13); \
1468 cc = S390_CC_FOR_DFP128_UCONVERT_AUX(opcode,cc_dep1,cc_dep2,14); \
1481 s390_calculate_cc(ULong cc_op, ULong cc_dep1, ULong cc_dep2, ULong cc_ndep) in s390_calculate_cc() argument
1489 return S390_CC_FOR_BINARY("ogr", cc_dep1, (ULong)0); in s390_calculate_cc()
1492 return S390_CC_FOR_BINARY("cgr", cc_dep1, cc_dep2); in s390_calculate_cc()
1495 return S390_CC_FOR_BINARY("clgr", cc_dep1, cc_dep2); in s390_calculate_cc()
1498 return S390_CC_FOR_BINARY("agr", cc_dep1, cc_dep2); in s390_calculate_cc()
1501 return S390_CC_FOR_BINARY("ar", cc_dep1, cc_dep2); in s390_calculate_cc()
1504 return S390_CC_FOR_BINARY("sgr", cc_dep1, cc_dep2); in s390_calculate_cc()
1507 return S390_CC_FOR_BINARY("sr", cc_dep1, cc_dep2); in s390_calculate_cc()
1510 return S390_CC_FOR_BINARY("algr", cc_dep1, cc_dep2); in s390_calculate_cc()
1513 return S390_CC_FOR_BINARY("alr", cc_dep1, cc_dep2); in s390_calculate_cc()
1516 return S390_CC_FOR_TERNARY_ADDC("alcgr", cc_dep1, cc_dep2, cc_ndep); in s390_calculate_cc()
1519 return S390_CC_FOR_TERNARY_ADDC("alcr", cc_dep1, cc_dep2, cc_ndep); in s390_calculate_cc()
1522 return S390_CC_FOR_BINARY("slgr", cc_dep1, cc_dep2); in s390_calculate_cc()
1525 return S390_CC_FOR_BINARY("slr", cc_dep1, cc_dep2); in s390_calculate_cc()
1528 return S390_CC_FOR_TERNARY_SUBB("slbgr", cc_dep1, cc_dep2, cc_ndep); in s390_calculate_cc()
1531 return S390_CC_FOR_TERNARY_SUBB("slbr", cc_dep1, cc_dep2, cc_ndep); in s390_calculate_cc()
1535 return S390_CC_FOR_BINARY("cgr", cc_dep1, (Long)0); in s390_calculate_cc()
1540 "ipm %[psw]\n\t" : [psw] "=d"(psw), [result] "=d"(cc_dep1) in s390_calculate_cc()
1541 : [op] "d"(cc_dep1) in s390_calculate_cc()
1548 "ipm %[psw]\n\t" : [psw] "=d"(psw), [result] "=d"(cc_dep1) in s390_calculate_cc()
1549 : [op] "d"(cc_dep1) in s390_calculate_cc()
1554 UChar value = cc_dep1; in s390_calculate_cc()
1570 UInt value = cc_dep1; in s390_calculate_cc()
1585 "ipm %[psw]\n\t" : [psw] "=d"(psw), [op] "+d"(cc_dep1) in s390_calculate_cc()
1591 Int high = (Int)(cc_dep1 >> 32); in s390_calculate_cc()
1592 Int low = (Int)(cc_dep1 & 0xFFFFFFFF); in s390_calculate_cc()
1610 inserted |= cc_dep1 & 0xff; in s390_calculate_cc()
1614 inserted |= cc_dep1 & 0xff00; in s390_calculate_cc()
1618 inserted |= cc_dep1 & 0xff0000; in s390_calculate_cc()
1622 inserted |= cc_dep1 & 0xff000000; in s390_calculate_cc()
1634 return S390_CC_FOR_BFP_RESULT("ltebr", cc_dep1); in s390_calculate_cc()
1637 return S390_CC_FOR_BFP_RESULT("ltdbr", cc_dep1); in s390_calculate_cc()
1640 return S390_CC_FOR_BFP128_RESULT(cc_dep1, cc_dep2); in s390_calculate_cc()
1643 return S390_CC_FOR_BFP_CONVERT("cfebr", cc_dep1, cc_dep2); in s390_calculate_cc()
1646 return S390_CC_FOR_BFP_CONVERT("cfdbr", cc_dep1, cc_dep2); in s390_calculate_cc()
1649 return S390_CC_FOR_BFP128_CONVERT("cfxbr", cc_dep1, cc_dep2, cc_ndep); in s390_calculate_cc()
1652 return S390_CC_FOR_BFP_CONVERT("cgebr", cc_dep1, cc_dep2); in s390_calculate_cc()
1655 return S390_CC_FOR_BFP_CONVERT("cgdbr", cc_dep1, cc_dep2); in s390_calculate_cc()
1658 return S390_CC_FOR_BFP128_CONVERT("cgxbr", cc_dep1, cc_dep2, cc_ndep); in s390_calculate_cc()
1661 return S390_CC_FOR_BFP_TDC("tceb", cc_dep1, cc_dep2); in s390_calculate_cc()
1664 return S390_CC_FOR_BFP_TDC("tcdb", cc_dep1, cc_dep2); in s390_calculate_cc()
1667 return S390_CC_FOR_BFP128_TDC(cc_dep1, cc_dep2, cc_ndep); in s390_calculate_cc()
1670 return cc_dep1; in s390_calculate_cc()
1673 return S390_CC_FOR_BFP_UCONVERT(".insn rrf,0xb39c0000", cc_dep1, cc_dep2); in s390_calculate_cc()
1676 return S390_CC_FOR_BFP_UCONVERT(".insn rrf,0xb39d0000", cc_dep1, cc_dep2); in s390_calculate_cc()
1679 return S390_CC_FOR_BFP128_UCONVERT(".insn rrf,0xb39e0000", cc_dep1, in s390_calculate_cc()
1683 return S390_CC_FOR_BFP_UCONVERT(".insn rrf,0xb3ac0000", cc_dep1, cc_dep2); in s390_calculate_cc()
1686 return S390_CC_FOR_BFP_UCONVERT(".insn rrf,0xb3ad0000", cc_dep1, cc_dep2); in s390_calculate_cc()
1689 return S390_CC_FOR_BFP128_UCONVERT(".insn rrf,0xb3ae0000", cc_dep1, in s390_calculate_cc()
1693 return S390_CC_FOR_DFP_RESULT(cc_dep1); in s390_calculate_cc()
1696 return S390_CC_FOR_DFP128_RESULT(cc_dep1, cc_dep2); in s390_calculate_cc()
1699 return S390_CC_FOR_DFP_TD(".insn rxe, 0xed0000000050", cc_dep1, cc_dep2); in s390_calculate_cc()
1702 return S390_CC_FOR_DFP_TD(".insn rxe, 0xed0000000054", cc_dep1, cc_dep2); in s390_calculate_cc()
1705 return S390_CC_FOR_DFP128_TD(".insn rxe, 0xed0000000058", cc_dep1, in s390_calculate_cc()
1709 return S390_CC_FOR_DFP_TD(".insn rxe, 0xed0000000051", cc_dep1, cc_dep2); in s390_calculate_cc()
1712 return S390_CC_FOR_DFP_TD(".insn rxe, 0xed0000000055", cc_dep1, cc_dep2); in s390_calculate_cc()
1715 return S390_CC_FOR_DFP128_TD(".insn rxe, 0xed0000000059", cc_dep1, in s390_calculate_cc()
1719 return S390_CC_FOR_DFP_CONVERT(".insn rrf,0xb9410000", cc_dep1, cc_dep2); in s390_calculate_cc()
1722 return S390_CC_FOR_DFP128_CONVERT(".insn rrf,0xb9490000", cc_dep1, in s390_calculate_cc()
1726 return S390_CC_FOR_DFP_CONVERT(".insn rrf,0xb3e10000", cc_dep1, cc_dep2); in s390_calculate_cc()
1729 return S390_CC_FOR_DFP128_CONVERT(".insn rrf,0xb3e90000", cc_dep1, in s390_calculate_cc()
1733 return S390_CC_FOR_DFP_UCONVERT(".insn rrf,0xb9430000", cc_dep1, cc_dep2); in s390_calculate_cc()
1736 return S390_CC_FOR_DFP128_UCONVERT(".insn rrf,0xb94b0000", cc_dep1, in s390_calculate_cc()
1740 return S390_CC_FOR_DFP_UCONVERT(".insn rrf,0xb9420000", cc_dep1, cc_dep2); in s390_calculate_cc()
1743 return S390_CC_FOR_DFP128_UCONVERT(".insn rrf,0xb94a0000", cc_dep1, in s390_calculate_cc()
1752 : [cc_dep1] "f"(cc_dep1), in s390_calculate_cc()
1764 : [cc_dep1] "f"(cc_dep1), in s390_calculate_cc()
1777 : [cc_dep1] "f"(cc_dep1), in s390_calculate_cc()
1847 IRExpr *cond_expr, *cc_op_expr, *cc_dep1, *cc_dep2; in guest_s390x_spechelper() local
1871 cc_dep1 = args[2]; in guest_s390x_spechelper()
1885 return unop(Iop_1Uto32, binop(Iop_CmpEQ64, cc_dep1, cc_dep2)); in guest_s390x_spechelper()
1888 return unop(Iop_1Uto32, binop(Iop_CmpNE64, cc_dep1, cc_dep2)); in guest_s390x_spechelper()
1891 return unop(Iop_1Uto32, binop(Iop_CmpLT64S, cc_dep1, cc_dep2)); in guest_s390x_spechelper()
1894 return unop(Iop_1Uto32, binop(Iop_CmpLE64S, cc_dep1, cc_dep2)); in guest_s390x_spechelper()
1898 return unop(Iop_1Uto32, binop(Iop_CmpLT64S, cc_dep2, cc_dep1)); in guest_s390x_spechelper()
1901 return unop(Iop_1Uto32, binop(Iop_CmpLE64S, cc_dep2, cc_dep1)); in guest_s390x_spechelper()
1921 return unop(Iop_1Uto32, binop(Iop_CmpEQ64, cc_dep1, cc_dep2)); in guest_s390x_spechelper()
1924 return unop(Iop_1Uto32, binop(Iop_CmpNE64, cc_dep1, cc_dep2)); in guest_s390x_spechelper()
1927 return unop(Iop_1Uto32, binop(Iop_CmpLT64U, cc_dep1, cc_dep2)); in guest_s390x_spechelper()
1930 return unop(Iop_1Uto32, binop(Iop_CmpLE64U, cc_dep1, cc_dep2)); in guest_s390x_spechelper()
1934 return unop(Iop_1Uto32, binop(Iop_CmpLT64U, cc_dep2, cc_dep1)); in guest_s390x_spechelper()
1937 return unop(Iop_1Uto32, binop(Iop_CmpLE64U, cc_dep2, cc_dep1)); in guest_s390x_spechelper()
1957 return unop(Iop_1Uto32, binop(Iop_CmpEQ64, cc_dep1, mkU64(0))); in guest_s390x_spechelper()
1960 return unop(Iop_1Uto32, binop(Iop_CmpNE64, cc_dep1, mkU64(0))); in guest_s390x_spechelper()
1966 return unop(Iop_64to32, binop(Iop_Shr64, cc_dep1, mkU8(63))); in guest_s390x_spechelper()
1969 return unop(Iop_1Uto32, binop(Iop_CmpLE64S, cc_dep1, mkU64(0))); in guest_s390x_spechelper()
1973 return unop(Iop_1Uto32, binop(Iop_CmpLT64S, mkU64(0), cc_dep1)); in guest_s390x_spechelper()
1980 binop(Iop_Shr64, cc_dep1, mkU8(63)), in guest_s390x_spechelper()
2010 return unop(Iop_1Uto32, binop(Iop_CmpEQ64, cc_dep1, mkU64(0))); in guest_s390x_spechelper()
2013 return unop(Iop_1Uto32, binop(Iop_CmpNE64, cc_dep1, mkU64(0))); in guest_s390x_spechelper()
2033 word = unop(Iop_64to32, cc_dep1); in guest_s390x_spechelper()
2115 binop(Iop_And64, cc_dep1, cc_dep2), in guest_s390x_spechelper()
2120 binop(Iop_And64, cc_dep1, cc_dep2), in guest_s390x_spechelper()
2125 binop(Iop_And64, cc_dep1, cc_dep2), in guest_s390x_spechelper()
2130 binop(Iop_And64, cc_dep1, cc_dep2), in guest_s390x_spechelper()
2156 binop(Iop_And64, cc_dep1, cc_dep2), in guest_s390x_spechelper()
2161 binop(Iop_And64, cc_dep1, cc_dep2), in guest_s390x_spechelper()
2166 binop(Iop_And64, cc_dep1, cc_dep2), in guest_s390x_spechelper()
2171 binop(Iop_And64, cc_dep1, cc_dep2), in guest_s390x_spechelper()
2185 binop(Iop_And64, cc_dep1, mkU64(msb)), mkU64(0)); in guest_s390x_spechelper()
2187 binop(Iop_And64, cc_dep1, cc_dep2), in guest_s390x_spechelper()
2198 binop(Iop_And64, cc_dep1, mkU64(msb)), mkU64(0)); in guest_s390x_spechelper()
2200 binop(Iop_And64, cc_dep1, cc_dep2), in guest_s390x_spechelper()
2210 binop(Iop_And64, cc_dep1, mkU64(msb)), mkU64(0)); in guest_s390x_spechelper()
2212 binop(Iop_And64, cc_dep1, cc_dep2), in guest_s390x_spechelper()
2221 binop(Iop_And64, cc_dep1, mkU64(msb)), in guest_s390x_spechelper()
2227 binop(Iop_And64, cc_dep1, mkU64(msb)), in guest_s390x_spechelper()
2251 return unop(Iop_1Uto32, binop(Iop_CmpLT64U, cc_dep2, cc_dep1)); in guest_s390x_spechelper()
2254 return unop(Iop_1Uto32, binop(Iop_CmpEQ64, cc_dep1, cc_dep2)); in guest_s390x_spechelper()
2257 return unop(Iop_1Uto32, binop(Iop_CmpLT64U, cc_dep1, cc_dep2)); in guest_s390x_spechelper()
2260 return unop(Iop_1Uto32, binop(Iop_CmpLE64U, cc_dep2, cc_dep1)); in guest_s390x_spechelper()
2263 return unop(Iop_1Uto32, binop(Iop_CmpLE64U, cc_dep1, cc_dep2)); in guest_s390x_spechelper()
2267 return unop(Iop_1Uto32, binop(Iop_CmpNE64, cc_dep1, cc_dep2)); in guest_s390x_spechelper()
2289 binop(Iop_Or64, cc_dep1, cc_dep2), in guest_s390x_spechelper()
2295 binop(Iop_Or64, cc_dep1, cc_dep2), in guest_s390x_spechelper()
2300 binop(Iop_Add64, cc_dep1, cc_dep2), in guest_s390x_spechelper()
2305 binop(Iop_Add64, cc_dep1, cc_dep2), in guest_s390x_spechelper()
2324 binop(Iop_Or64, cc_dep1, cc_dep2), in guest_s390x_spechelper()
2330 binop(Iop_Or64, cc_dep1, cc_dep2), in guest_s390x_spechelper()
2336 unop(Iop_64to32, cc_dep1), in guest_s390x_spechelper()
2343 unop(Iop_64to32, cc_dep1), in guest_s390x_spechelper()
2360 unop(Iop_64to8, cc_dep1)), in guest_s390x_spechelper()
2371 IRExpr *cc_op_expr, *cc_dep1; in guest_s390x_spechelper() local
2383 cc_dep1 = args[1]; in guest_s390x_spechelper()
2387 binop(Iop_CmpNE64, cc_dep1, mkU64(0))); in guest_s390x_spechelper()
2391 return unop(Iop_64to32, cc_dep1); in guest_s390x_spechelper()