|
From: <sv...@va...> - 2011-05-09 21:45:18
|
Author: sewardj
Date: 2011-05-09 22:45:04 +0100 (Mon, 09 May 2011)
New Revision: 2150
Log:
Add LIKELY/UNLIKELY macros for general use, replacing s390x-specific
versions. See #271504. (Florian Krohm, br...@ac...)
Modified:
trunk/priv/guest_s390_toIR.c
trunk/priv/host_s390_defs.c
trunk/priv/main_util.h
Modified: trunk/priv/guest_s390_toIR.c
===================================================================
--- trunk/priv/guest_s390_toIR.c 2011-05-09 20:35:41 UTC (rev 2149)
+++ trunk/priv/guest_s390_toIR.c 2011-05-09 21:45:04 UTC (rev 2150)
@@ -45,13 +45,7 @@
#include "host_s390_disasm.h"
#include "host_s390_defs.h" /* S390_ROUND_xyzzy */
-#undef likely
-#undef unlikely
-#define likely(x) __builtin_expect(!!(x), 1)
-#define unlikely(x) __builtin_expect(!!(x), 0)
-
-
/*------------------------------------------------------------*/
/*--- Globals ---*/
/*------------------------------------------------------------*/
@@ -1269,7 +1263,7 @@
{
HChar *mnm = irgen(i);
- if (unlikely(vex_traceflags & VEX_TRACE_FE))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_FE))
s390_disasm(ENC2(MNM, UINT), mnm, i);
}
@@ -1286,7 +1280,7 @@
{
HChar *mnm = irgen(r1, i2);
- if (unlikely(vex_traceflags & VEX_TRACE_FE))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_FE))
s390_disasm(ENC3(MNM, GPR, UINT), mnm, r1, i2);
}
@@ -1296,7 +1290,7 @@
{
HChar *mnm = irgen(r1, i2);
- if (unlikely(vex_traceflags & VEX_TRACE_FE))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_FE))
s390_disasm(ENC3(MNM, GPR, INT), mnm, r1, (Int)(Short)i2);
}
@@ -1306,7 +1300,7 @@
{
HChar *mnm = irgen(r1, i2);
- if (unlikely(vex_traceflags & VEX_TRACE_FE))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_FE))
s390_disasm(ENC3(MNM, GPR, PCREL), mnm, r1, (Int)(Short)i2);
}
@@ -1316,7 +1310,7 @@
{
HChar *mnm = irgen(r1, r3, i2);
- if (unlikely(vex_traceflags & VEX_TRACE_FE))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_FE))
s390_disasm(ENC4(MNM, GPR, GPR, PCREL), mnm, r1, r3, (Int)(Short)i2);
}
@@ -1326,7 +1320,7 @@
{
HChar *mnm = irgen(r1, r3, i2);
- if (unlikely(vex_traceflags & VEX_TRACE_FE))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_FE))
s390_disasm(ENC4(MNM, GPR, GPR, INT), mnm, r1, r3, (Int)(Short)i2);
}
@@ -1337,7 +1331,7 @@
{
HChar *mnm = irgen(r1, r2, i3, i4, i5);
- if (unlikely(vex_traceflags & VEX_TRACE_FE))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_FE))
s390_disasm(ENC6(MNM, GPR, GPR, UINT, UINT, UINT), mnm, r1, r2, i3, i4,
i5);
}
@@ -1348,7 +1342,7 @@
{
HChar *mnm = irgen(r1, r2, i4, m3);
- if (unlikely(vex_traceflags & VEX_TRACE_FE))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_FE))
s390_disasm(ENC5(XMNM, GPR, GPR, CABM, PCREL), S390_XMNM_CAB, mnm, m3, r1,
r2, m3, (Int)(Short)i4);
}
@@ -1359,7 +1353,7 @@
{
HChar *mnm = irgen(r1, m3, i4, i2);
- if (unlikely(vex_traceflags & VEX_TRACE_FE))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_FE))
s390_disasm(ENC5(XMNM, GPR, UINT, CABM, PCREL), S390_XMNM_CAB, mnm, m3,
r1, i2, m3, (Int)(Short)i4);
}
@@ -1370,7 +1364,7 @@
{
HChar *mnm = irgen(r1, m3, i4, i2);
- if (unlikely(vex_traceflags & VEX_TRACE_FE))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_FE))
s390_disasm(ENC5(XMNM, GPR, INT, CABM, PCREL), S390_XMNM_CAB, mnm, m3, r1,
(Int)(Char)i2, m3, (Int)(Short)i4);
}
@@ -1388,7 +1382,7 @@
{
HChar *mnm = irgen(r1, i2);
- if (unlikely(vex_traceflags & VEX_TRACE_FE))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_FE))
s390_disasm(ENC3(MNM, GPR, UINT), mnm, r1, i2);
}
@@ -1398,7 +1392,7 @@
{
HChar *mnm = irgen(r1, i2);
- if (unlikely(vex_traceflags & VEX_TRACE_FE))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_FE))
s390_disasm(ENC3(MNM, GPR, INT), mnm, r1, i2);
}
@@ -1408,7 +1402,7 @@
{
HChar *mnm = irgen(r1, i2);
- if (unlikely(vex_traceflags & VEX_TRACE_FE))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_FE))
s390_disasm(ENC3(MNM, GPR, PCREL), mnm, r1, i2);
}
@@ -1418,7 +1412,7 @@
{
HChar *mnm = irgen();
- if (unlikely(vex_traceflags & VEX_TRACE_FE))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_FE))
s390_disasm(ENC3(MNM, UINT, PCREL), mnm, r1, i2);
}
@@ -1435,7 +1429,7 @@
mnm = irgen(r1, m3, i2, op4addr);
- if (unlikely(vex_traceflags & VEX_TRACE_FE))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_FE))
s390_disasm(ENC5(XMNM, GPR, INT, CABM, UDXB), S390_XMNM_CAB, mnm, m3, r1,
(Int)(Char)i2, m3, d4, 0, b4);
}
@@ -1453,7 +1447,7 @@
mnm = irgen(r1, m3, i2, op4addr);
- if (unlikely(vex_traceflags & VEX_TRACE_FE))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_FE))
s390_disasm(ENC5(XMNM, GPR, UINT, CABM, UDXB), S390_XMNM_CAB, mnm, m3, r1,
i2, m3, d4, 0, b4);
}
@@ -1471,7 +1465,7 @@
{
HChar *mnm = irgen(r1, r2);
- if (unlikely(vex_traceflags & VEX_TRACE_FE))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_FE))
s390_disasm(ENC3(MNM, GPR, GPR), mnm, r1, r2);
}
@@ -1481,7 +1475,7 @@
{
HChar *mnm = irgen(r1, r2);
- if (unlikely(vex_traceflags & VEX_TRACE_FE))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_FE))
s390_disasm(ENC3(MNM, FPR, FPR), mnm, r1, r2);
}
@@ -1498,7 +1492,7 @@
{
HChar *mnm = irgen(r1, r2);
- if (unlikely(vex_traceflags & VEX_TRACE_FE))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_FE))
s390_disasm(ENC3(MNM, GPR, GPR), mnm, r1, r2);
}
@@ -1508,7 +1502,7 @@
{
HChar *mnm = irgen(r1, r2);
- if (unlikely(vex_traceflags & VEX_TRACE_FE))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_FE))
s390_disasm(ENC3(MNM, FPR, FPR), mnm, r1, r2);
}
@@ -1518,7 +1512,7 @@
{
HChar *mnm = irgen(r1, r2);
- if (unlikely(vex_traceflags & VEX_TRACE_FE))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_FE))
s390_disasm(ENC3(MNM, GPR, FPR), mnm, r1, r2);
}
@@ -1528,7 +1522,7 @@
{
HChar *mnm = irgen(r1, r2);
- if (unlikely(vex_traceflags & VEX_TRACE_FE))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_FE))
s390_disasm(ENC3(MNM, FPR, GPR), mnm, r1, r2);
}
@@ -1538,7 +1532,7 @@
{
HChar *mnm = irgen(r1);
- if (unlikely(vex_traceflags & VEX_TRACE_FE))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_FE))
s390_disasm(ENC2(MNM, GPR), mnm, r1);
}
@@ -1548,7 +1542,7 @@
{
HChar *mnm = irgen(r1);
- if (unlikely(vex_traceflags & VEX_TRACE_FE))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_FE))
s390_disasm(ENC2(MNM, FPR), mnm, r1);
}
@@ -1558,7 +1552,7 @@
{
HChar *mnm = irgen(r1, r3, r2);
- if (unlikely(vex_traceflags & VEX_TRACE_FE))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_FE))
s390_disasm(ENC4(MNM, FPR, FPR, FPR), mnm, r1, r3, r2);
}
@@ -1568,7 +1562,7 @@
{
irgen(m3, r1, r2);
- if (unlikely(vex_traceflags & VEX_TRACE_FE))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_FE))
s390_disasm(ENC3(XMNM, GPR, GPR), xmnm_kind, m3, r1, r2);
}
@@ -1578,7 +1572,7 @@
{
HChar *mnm = irgen(r3, r1, r2);
- if (unlikely(vex_traceflags & VEX_TRACE_FE))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_FE))
s390_disasm(ENC4(MNM, GPR, UINT, FPR), mnm, r1, r3, r2);
}
@@ -1588,7 +1582,7 @@
{
HChar *mnm = irgen(r3, r1, r2);
- if (unlikely(vex_traceflags & VEX_TRACE_FE))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_FE))
s390_disasm(ENC4(MNM, FPR, FPR, FPR), mnm, r1, r3, r2);
}
@@ -1598,7 +1592,7 @@
{
HChar *mnm = irgen(r3, r1, r2);
- if (unlikely(vex_traceflags & VEX_TRACE_FE))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_FE))
s390_disasm(ENC4(MNM, GPR, GPR, GPR), mnm, r1, r2, r3);
}
@@ -1614,7 +1608,7 @@
mnm = irgen(r1, r2, m3, op4addr);
- if (unlikely(vex_traceflags & VEX_TRACE_FE))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_FE))
s390_disasm(ENC5(XMNM, GPR, GPR, CABM, UDXB), S390_XMNM_CAB, mnm, m3, r1,
r2, m3, d4, 0, b4);
}
@@ -1631,7 +1625,7 @@
mnm = irgen(r1, op2addr);
- if (unlikely(vex_traceflags & VEX_TRACE_FE))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_FE))
s390_disasm(ENC3(MNM, GPR, UDXB), mnm, r1, d2, 0, b2);
}
@@ -1647,7 +1641,7 @@
mnm = irgen(r1, r3, op2addr);
- if (unlikely(vex_traceflags & VEX_TRACE_FE))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_FE))
s390_disasm(ENC4(MNM, GPR, GPR, UDXB), mnm, r1, r3, d2, 0, b2);
}
@@ -1663,7 +1657,7 @@
mnm = irgen(r1, r3, op2addr);
- if (unlikely(vex_traceflags & VEX_TRACE_FE))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_FE))
s390_disasm(ENC4(MNM, GPR, UINT, UDXB), mnm, r1, r3, d2, 0, b2);
}
@@ -1679,7 +1673,7 @@
mnm = irgen(r1, r3, op2addr);
- if (unlikely(vex_traceflags & VEX_TRACE_FE))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_FE))
s390_disasm(ENC4(MNM, AR, AR, UDXB), mnm, r1, r3, d2, 0, b2);
}
@@ -1689,7 +1683,7 @@
{
HChar *mnm = irgen(r1, r3, i2);
- if (unlikely(vex_traceflags & VEX_TRACE_FE))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_FE))
s390_disasm(ENC4(MNM, GPR, GPR, PCREL), mnm, r1, r3, (Int)(Short)i2);
}
@@ -1707,7 +1701,7 @@
mnm = irgen(r1, r3, op2addr);
- if (unlikely(vex_traceflags & VEX_TRACE_FE))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_FE))
s390_disasm(ENC4(MNM, GPR, GPR, SDXB), mnm, r1, r3, dh2, dl2, 0, b2);
}
@@ -1725,7 +1719,7 @@
mnm = irgen(r1, r3, op2addr);
- if (unlikely(vex_traceflags & VEX_TRACE_FE))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_FE))
s390_disasm(ENC4(MNM, AR, AR, SDXB), mnm, r1, r3, dh2, dl2, 0, b2);
}
@@ -1743,7 +1737,7 @@
mnm = irgen(r1, r3, op2addr);
- if (unlikely(vex_traceflags & VEX_TRACE_FE))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_FE))
s390_disasm(ENC4(MNM, GPR, UINT, SDXB), mnm, r1, r3, dh2, dl2, 0, b2);
}
@@ -1763,7 +1757,7 @@
irgen(r1, op2addr);
- if (unlikely(vex_traceflags & VEX_TRACE_FE))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_FE))
s390_disasm(ENC3(XMNM, GPR, SDXB), xmnm_kind, m3, r1, dh2, dl2, 0, b2);
}
@@ -1794,7 +1788,7 @@
mnm = irgen(r1, op2addr);
- if (unlikely(vex_traceflags & VEX_TRACE_FE))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_FE))
s390_disasm(ENC3(MNM, GPR, UDXB), mnm, r1, d2, x2, b2);
}
@@ -1811,7 +1805,7 @@
mnm = irgen(r1, op2addr);
- if (unlikely(vex_traceflags & VEX_TRACE_FE))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_FE))
s390_disasm(ENC3(MNM, FPR, UDXB), mnm, r1, d2, x2, b2);
}
@@ -1828,7 +1822,7 @@
mnm = irgen(r1, op2addr);
- if (unlikely(vex_traceflags & VEX_TRACE_FE))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_FE))
s390_disasm(ENC3(MNM, FPR, UDXB), mnm, r1, d2, x2, b2);
}
@@ -1845,7 +1839,7 @@
mnm = irgen(r3, op2addr, r1);
- if (unlikely(vex_traceflags & VEX_TRACE_FE))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_FE))
s390_disasm(ENC4(MNM, FPR, FPR, UDXB), mnm, r1, r3, d2, x2, b2);
}
@@ -1864,7 +1858,7 @@
mnm = irgen(r1, op2addr);
- if (unlikely(vex_traceflags & VEX_TRACE_FE))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_FE))
s390_disasm(ENC3(MNM, GPR, SDXB), mnm, r1, dh2, dl2, x2, b2);
}
@@ -1883,7 +1877,7 @@
mnm = irgen(r1, op2addr);
- if (unlikely(vex_traceflags & VEX_TRACE_FE))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_FE))
s390_disasm(ENC3(MNM, FPR, SDXB), mnm, r1, dh2, dl2, x2, b2);
}
@@ -1902,7 +1896,7 @@
mnm = irgen();
- if (unlikely(vex_traceflags & VEX_TRACE_FE))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_FE))
s390_disasm(ENC3(MNM, UINT, SDXB), mnm, r1, dh2, dl2, x2, b2);
}
@@ -1918,7 +1912,7 @@
mnm = irgen(op2addr);
- if (unlikely(vex_traceflags & VEX_TRACE_FE))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_FE))
s390_disasm(ENC2(MNM, UDXB), mnm, d2, 0, b2);
}
@@ -1934,7 +1928,7 @@
mnm = irgen(i2, op1addr);
- if (unlikely(vex_traceflags & VEX_TRACE_FE))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_FE))
s390_disasm(ENC3(MNM, UDXB, UINT), mnm, d1, 0, b1, i2);
}
@@ -1952,7 +1946,7 @@
mnm = irgen(i2, op1addr);
- if (unlikely(vex_traceflags & VEX_TRACE_FE))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_FE))
s390_disasm(ENC3(MNM, SDXB, UINT), mnm, dh1, dl1, 0, b1, i2);
}
@@ -1970,7 +1964,7 @@
mnm = irgen(i2, op1addr);
- if (unlikely(vex_traceflags & VEX_TRACE_FE))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_FE))
s390_disasm(ENC3(MNM, SDXB, INT), mnm, dh1, dl1, 0, b1, (Int)(Char)i2);
}
@@ -1989,7 +1983,7 @@
mnm = irgen(l, op1addr, op2addr);
- if (unlikely(vex_traceflags & VEX_TRACE_FE))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_FE))
s390_disasm(ENC3(MNM, UDLB, UDXB), mnm, d1, l, b1, d2, 0, b2);
}
@@ -2005,7 +1999,7 @@
mnm = irgen(i2, op1addr);
- if (unlikely(vex_traceflags & VEX_TRACE_FE))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_FE))
s390_disasm(ENC3(MNM, UDXB, INT), mnm, d1, 0, b1, (Int)(Short)i2);
}
@@ -2021,7 +2015,7 @@
mnm = irgen(i2, op1addr);
- if (unlikely(vex_traceflags & VEX_TRACE_FE))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_FE))
s390_disasm(ENC3(MNM, UDXB, UINT), mnm, d1, 0, b1, i2);
}
@@ -3072,7 +3066,7 @@
mkU32(0)), get_gpr_dw0(r2));
}
}
- if (unlikely(vex_traceflags & VEX_TRACE_FE))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_FE))
s390_disasm(ENC2(XMNM, GPR), S390_XMNM_BCR, r1, r2);
return "bcr";
@@ -3093,7 +3087,7 @@
mkU32(0)), mkexpr(op2addr));
}
}
- if (unlikely(vex_traceflags & VEX_TRACE_FE))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_FE))
s390_disasm(ENC2(XMNM, UDXB), S390_XMNM_BC, r1, d2, x2, b2);
return "bc";
@@ -3230,7 +3224,7 @@
}
}
- if (unlikely(vex_traceflags & VEX_TRACE_FE))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_FE))
s390_disasm(ENC2(XMNM, PCREL), S390_XMNM_BRC, r1, (Int)(Short)i2);
return "brc";
@@ -3251,7 +3245,7 @@
guest_IA_curr_instr + ((ULong)(Long)(Int)i2 << 1));
}
}
- if (unlikely(vex_traceflags & VEX_TRACE_FE))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_FE))
s390_disasm(ENC2(XMNM, PCREL), S390_XMNM_BRCL, r1, i2);
return "brcl";
@@ -4630,7 +4624,7 @@
s390_irgen_CPYA(UChar r1, UChar r2)
{
put_ar_w0(r1, get_ar_w0(r2));
- if (unlikely(vex_traceflags & VEX_TRACE_FE))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_FE))
s390_disasm(ENC3(MNM, AR, AR), "cpya", r1, r2);
return "cpya";
@@ -4824,7 +4818,7 @@
s390_irgen_EAR(UChar r1, UChar r2)
{
put_gpr_w1(r1, get_ar_w0(r2));
- if (unlikely(vex_traceflags & VEX_TRACE_FE))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_FE))
s390_disasm(ENC3(MNM, GPR, AR), "ear", r1, r2);
return "ear";
@@ -6785,7 +6779,7 @@
s390_irgen_SAR(UChar r1, UChar r2)
{
put_ar_w0(r1, get_gpr_w1(r2));
- if (unlikely(vex_traceflags & VEX_TRACE_FE))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_FE))
s390_disasm(ENC3(MNM, AR, GPR), "sar", r1, r2);
return "sar";
@@ -8857,7 +8851,7 @@
bytes = (UChar *) &last_execute_target;
s390_decode_and_irgen(bytes, ((((bytes[0] >> 6) + 1) >> 1) + 1) << 1,
dis_res);
- if (unlikely(vex_traceflags & VEX_TRACE_FE))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_FE))
vex_printf(" which was executed by\n");
/* dont make useless translations in the next execute */
last_execute_target = 0;
@@ -9235,7 +9229,7 @@
s390_cc_thunk_put1(S390_CC_OP_BITWISE, mktemp(Ity_I32, mkU32(0)), False);
- if (unlikely(vex_traceflags & VEX_TRACE_FE))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_FE))
s390_disasm(ENC3(MNM, UDLB, UDXB), "xc", d, length, b, d, 0, b);
}
Modified: trunk/priv/host_s390_defs.c
===================================================================
--- trunk/priv/host_s390_defs.c 2011-05-09 20:35:41 UTC (rev 2149)
+++ trunk/priv/host_s390_defs.c 2011-05-09 21:45:04 UTC (rev 2150)
@@ -928,11 +928,6 @@
}
-#undef likely
-#undef unlikely
-#define likely(x) __builtin_expect(!!(x), 1)
-#define unlikely(x) __builtin_expect(!!(x), 0)
-
/*------------------------------------------------------------*/
/*--- Functions to emit a sequence of bytes ---*/
/*------------------------------------------------------------*/
@@ -1116,7 +1111,7 @@
static UChar *
s390_emit_AR(UChar *p, UChar r1, UChar r2)
{
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, GPR), "ar", r1, r2);
return emit_RR(p, 0x1a00, r1, r2);
@@ -1126,7 +1121,7 @@
static UChar *
s390_emit_AGR(UChar *p, UChar r1, UChar r2)
{
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, GPR), "agr", r1, r2);
return emit_RRE(p, 0xb9080000, r1, r2);
@@ -1136,7 +1131,7 @@
static UChar *
s390_emit_A(UChar *p, UChar r1, UChar x2, UChar b2, UShort d2)
{
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, UDXB), "a", r1, d2, x2, b2);
return emit_RX(p, 0x5a000000, r1, x2, b2, d2);
@@ -1148,7 +1143,7 @@
{
vassert(s390_host_has_ldisp);
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, SDXB), "ay", r1, dh2, dl2, x2, b2);
return emit_RXY(p, 0xe3000000005aULL, r1, x2, b2, dl2, dh2);
@@ -1160,7 +1155,7 @@
{
vassert(s390_host_has_ldisp || dh2 == 0);
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, SDXB), "ag", r1, dh2, dl2, x2, b2);
return emit_RXY(p, 0xe30000000008ULL, r1, x2, b2, dl2, dh2);
@@ -1172,7 +1167,7 @@
{
vassert(s390_host_has_eimm);
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, INT), "afi", r1, i2);
return emit_RIL(p, 0xc20900000000ULL, r1, i2);
@@ -1184,7 +1179,7 @@
{
vassert(s390_host_has_eimm);
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, INT), "agfi", r1, i2);
return emit_RIL(p, 0xc20800000000ULL, r1, i2);
@@ -1194,7 +1189,7 @@
static UChar *
s390_emit_AH(UChar *p, UChar r1, UChar x2, UChar b2, UShort d2)
{
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, UDXB), "ah", r1, d2, x2, b2);
return emit_RX(p, 0x4a000000, r1, x2, b2, d2);
@@ -1206,7 +1201,7 @@
{
vassert(s390_host_has_ldisp);
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, SDXB), "ahy", r1, dh2, dl2, x2, b2);
return emit_RXY(p, 0xe3000000007aULL, r1, x2, b2, dl2, dh2);
@@ -1216,7 +1211,7 @@
static UChar *
s390_emit_AHI(UChar *p, UChar r1, UShort i2)
{
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, INT), "ahi", r1, (Int)(Short)i2);
return emit_RI(p, 0xa70a0000, r1, i2);
@@ -1226,7 +1221,7 @@
static UChar *
s390_emit_AGHI(UChar *p, UChar r1, UShort i2)
{
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, INT), "aghi", r1, (Int)(Short)i2);
return emit_RI(p, 0xa70b0000, r1, i2);
@@ -1236,7 +1231,7 @@
static UChar *
s390_emit_NR(UChar *p, UChar r1, UChar r2)
{
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, GPR), "nr", r1, r2);
return emit_RR(p, 0x1400, r1, r2);
@@ -1246,7 +1241,7 @@
static UChar *
s390_emit_NGR(UChar *p, UChar r1, UChar r2)
{
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, GPR), "ngr", r1, r2);
return emit_RRE(p, 0xb9800000, r1, r2);
@@ -1256,7 +1251,7 @@
static UChar *
s390_emit_N(UChar *p, UChar r1, UChar x2, UChar b2, UShort d2)
{
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, UDXB), "n", r1, d2, x2, b2);
return emit_RX(p, 0x54000000, r1, x2, b2, d2);
@@ -1268,7 +1263,7 @@
{
vassert(s390_host_has_ldisp);
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, SDXB), "ny", r1, dh2, dl2, x2, b2);
return emit_RXY(p, 0xe30000000054ULL, r1, x2, b2, dl2, dh2);
@@ -1280,7 +1275,7 @@
{
vassert(s390_host_has_ldisp || dh2 == 0);
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, SDXB), "ng", r1, dh2, dl2, x2, b2);
return emit_RXY(p, 0xe30000000080ULL, r1, x2, b2, dl2, dh2);
@@ -1292,7 +1287,7 @@
{
vassert(s390_host_has_eimm);
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, UINT), "nihf", r1, i2);
return emit_RIL(p, 0xc00a00000000ULL, r1, i2);
@@ -1304,7 +1299,7 @@
{
vassert(s390_host_has_eimm);
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, UINT), "nilf", r1, i2);
return emit_RIL(p, 0xc00b00000000ULL, r1, i2);
@@ -1314,7 +1309,7 @@
static UChar *
s390_emit_NILL(UChar *p, UChar r1, UShort i2)
{
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, UINT), "nill", r1, i2);
return emit_RI(p, 0xa5070000, r1, i2);
@@ -1324,7 +1319,7 @@
static UChar *
s390_emit_BASR(UChar *p, UChar r1, UChar r2)
{
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, GPR), "basr", r1, r2);
return emit_RR(p, 0x0d00, r1, r2);
@@ -1334,7 +1329,7 @@
static UChar *
s390_emit_BCR(UChar *p, UChar r1, UChar r2)
{
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC2(XMNM, GPR), S390_XMNM_BCR, r1, r2);
return emit_RR(p, 0x0700, r1, r2);
@@ -1344,7 +1339,7 @@
static UChar *
s390_emit_BRC(UChar *p, UChar r1, UShort i2)
{
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC2(XMNM, PCREL), S390_XMNM_BRC, r1, (Int)(Short)i2);
return emit_RI(p, 0xa7040000, r1, i2);
@@ -1354,7 +1349,7 @@
static UChar *
s390_emit_CR(UChar *p, UChar r1, UChar r2)
{
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, GPR), "cr", r1, r2);
return emit_RR(p, 0x1900, r1, r2);
@@ -1364,7 +1359,7 @@
static UChar *
s390_emit_CGR(UChar *p, UChar r1, UChar r2)
{
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, GPR), "cgr", r1, r2);
return emit_RRE(p, 0xb9200000, r1, r2);
@@ -1374,7 +1369,7 @@
static UChar *
s390_emit_C(UChar *p, UChar r1, UChar x2, UChar b2, UShort d2)
{
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, UDXB), "c", r1, d2, x2, b2);
return emit_RX(p, 0x59000000, r1, x2, b2, d2);
@@ -1386,7 +1381,7 @@
{
vassert(s390_host_has_ldisp);
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, SDXB), "cy", r1, dh2, dl2, x2, b2);
return emit_RXY(p, 0xe30000000059ULL, r1, x2, b2, dl2, dh2);
@@ -1398,7 +1393,7 @@
{
vassert(s390_host_has_ldisp || dh2 == 0);
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, SDXB), "cg", r1, dh2, dl2, x2, b2);
return emit_RXY(p, 0xe30000000020ULL, r1, x2, b2, dl2, dh2);
@@ -1410,7 +1405,7 @@
{
vassert(s390_host_has_eimm);
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, INT), "cfi", r1, i2);
return emit_RIL(p, 0xc20d00000000ULL, r1, i2);
@@ -1420,7 +1415,7 @@
static UChar *
s390_emit_CS(UChar *p, UChar r1, UChar r3, UChar b2, UShort d2)
{
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC4(MNM, GPR, GPR, UDXB), "cs", r1, r3, d2, 0, b2);
return emit_RS(p, 0xba000000, r1, r3, b2, d2);
@@ -1432,7 +1427,7 @@
{
vassert(s390_host_has_ldisp);
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC4(MNM, GPR, GPR, SDXB), "csy", r1, r3, dh2, dl2, 0, b2);
return emit_RSY(p, 0xeb0000000014ULL, r1, r3, b2, dl2, dh2);
@@ -1444,7 +1439,7 @@
{
vassert(s390_host_has_ldisp || dh2 == 0);
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC4(MNM, GPR, GPR, SDXB), "csg", r1, r3, dh2, dl2, 0, b2);
return emit_RSY(p, 0xeb0000000030ULL, r1, r3, b2, dl2, dh2);
@@ -1454,7 +1449,7 @@
static UChar *
s390_emit_CLR(UChar *p, UChar r1, UChar r2)
{
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, GPR), "clr", r1, r2);
return emit_RR(p, 0x1500, r1, r2);
@@ -1464,7 +1459,7 @@
static UChar *
s390_emit_CLGR(UChar *p, UChar r1, UChar r2)
{
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, GPR), "clgr", r1, r2);
return emit_RRE(p, 0xb9210000, r1, r2);
@@ -1474,7 +1469,7 @@
static UChar *
s390_emit_CL(UChar *p, UChar r1, UChar x2, UChar b2, UShort d2)
{
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, UDXB), "cl", r1, d2, x2, b2);
return emit_RX(p, 0x55000000, r1, x2, b2, d2);
@@ -1486,7 +1481,7 @@
{
vassert(s390_host_has_ldisp);
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, SDXB), "cly", r1, dh2, dl2, x2, b2);
return emit_RXY(p, 0xe30000000055ULL, r1, x2, b2, dl2, dh2);
@@ -1498,7 +1493,7 @@
{
vassert(s390_host_has_ldisp || dh2 == 0);
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, SDXB), "clg", r1, dh2, dl2, x2, b2);
return emit_RXY(p, 0xe30000000021ULL, r1, x2, b2, dl2, dh2);
@@ -1510,7 +1505,7 @@
{
vassert(s390_host_has_eimm);
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, UINT), "clfi", r1, i2);
return emit_RIL(p, 0xc20f00000000ULL, r1, i2);
@@ -1520,7 +1515,7 @@
static UChar *
s390_emit_DR(UChar *p, UChar r1, UChar r2)
{
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, GPR), "dr", r1, r2);
return emit_RR(p, 0x1d00, r1, r2);
@@ -1530,7 +1525,7 @@
static UChar *
s390_emit_D(UChar *p, UChar r1, UChar x2, UChar b2, UShort d2)
{
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, UDXB), "d", r1, d2, x2, b2);
return emit_RX(p, 0x5d000000, r1, x2, b2, d2);
@@ -1540,7 +1535,7 @@
static UChar *
s390_emit_DLR(UChar *p, UChar r1, UChar r2)
{
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, GPR), "dlr", r1, r2);
return emit_RRE(p, 0xb9970000, r1, r2);
@@ -1550,7 +1545,7 @@
static UChar *
s390_emit_DLGR(UChar *p, UChar r1, UChar r2)
{
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, GPR), "dlgr", r1, r2);
return emit_RRE(p, 0xb9870000, r1, r2);
@@ -1562,7 +1557,7 @@
{
vassert(s390_host_has_ldisp || dh2 == 0);
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, SDXB), "dl", r1, dh2, dl2, x2, b2);
return emit_RXY(p, 0xe30000000097ULL, r1, x2, b2, dl2, dh2);
@@ -1574,7 +1569,7 @@
{
vassert(s390_host_has_ldisp || dh2 == 0);
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, SDXB), "dlg", r1, dh2, dl2, x2, b2);
return emit_RXY(p, 0xe30000000087ULL, r1, x2, b2, dl2, dh2);
@@ -1584,7 +1579,7 @@
static UChar *
s390_emit_DSGR(UChar *p, UChar r1, UChar r2)
{
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, GPR), "dsgr", r1, r2);
return emit_RRE(p, 0xb90d0000, r1, r2);
@@ -1596,7 +1591,7 @@
{
vassert(s390_host_has_ldisp || dh2 == 0);
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, SDXB), "dsg", r1, dh2, dl2, x2, b2);
return emit_RXY(p, 0xe3000000000dULL, r1, x2, b2, dl2, dh2);
@@ -1606,7 +1601,7 @@
static UChar *
s390_emit_XR(UChar *p, UChar r1, UChar r2)
{
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, GPR), "xr", r1, r2);
return emit_RR(p, 0x1700, r1, r2);
@@ -1616,7 +1611,7 @@
static UChar *
s390_emit_XGR(UChar *p, UChar r1, UChar r2)
{
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, GPR), "xgr", r1, r2);
return emit_RRE(p, 0xb9820000, r1, r2);
@@ -1626,7 +1621,7 @@
static UChar *
s390_emit_X(UChar *p, UChar r1, UChar x2, UChar b2, UShort d2)
{
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, UDXB), "x", r1, d2, x2, b2);
return emit_RX(p, 0x57000000, r1, x2, b2, d2);
@@ -1638,7 +1633,7 @@
{
vassert(s390_host_has_ldisp);
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, SDXB), "xy", r1, dh2, dl2, x2, b2);
return emit_RXY(p, 0xe30000000057ULL, r1, x2, b2, dl2, dh2);
@@ -1650,7 +1645,7 @@
{
vassert(s390_host_has_ldisp || dh2 == 0);
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, SDXB), "xg", r1, dh2, dl2, x2, b2);
return emit_RXY(p, 0xe30000000082ULL, r1, x2, b2, dl2, dh2);
@@ -1662,7 +1657,7 @@
{
vassert(s390_host_has_eimm);
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, UINT), "xihf", r1, i2);
return emit_RIL(p, 0xc00600000000ULL, r1, i2);
@@ -1674,7 +1669,7 @@
{
vassert(s390_host_has_eimm);
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, UINT), "xilf", r1, i2);
return emit_RIL(p, 0xc00700000000ULL, r1, i2);
@@ -1686,7 +1681,7 @@
{
vassert(s390_host_has_eimm);
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, GPR), "flogr", r1, r2);
return emit_RRE(p, 0xb9830000, r1, r2);
@@ -1696,7 +1691,7 @@
static UChar *
s390_emit_IC(UChar *p, UChar r1, UChar x2, UChar b2, UShort d2)
{
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, UDXB), "ic", r1, d2, x2, b2);
return emit_RX(p, 0x43000000, r1, x2, b2, d2);
@@ -1708,7 +1703,7 @@
{
vassert(s390_host_has_ldisp);
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, SDXB), "icy", r1, dh2, dl2, x2, b2);
return emit_RXY(p, 0xe30000000073ULL, r1, x2, b2, dl2, dh2);
@@ -1720,7 +1715,7 @@
{
vassert(s390_host_has_eimm);
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, UINT), "iihf", r1, i2);
return emit_RIL(p, 0xc00800000000ULL, r1, i2);
@@ -1730,7 +1725,7 @@
static UChar *
s390_emit_IIHH(UChar *p, UChar r1, UShort i2)
{
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, UINT), "iihh", r1, i2);
return emit_RI(p, 0xa5000000, r1, i2);
@@ -1740,7 +1735,7 @@
static UChar *
s390_emit_IIHL(UChar *p, UChar r1, UShort i2)
{
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, UINT), "iihl", r1, i2);
return emit_RI(p, 0xa5010000, r1, i2);
@@ -1752,7 +1747,7 @@
{
vassert(s390_host_has_eimm);
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, UINT), "iilf", r1, i2);
return emit_RIL(p, 0xc00900000000ULL, r1, i2);
@@ -1762,7 +1757,7 @@
static UChar *
s390_emit_IILH(UChar *p, UChar r1, UShort i2)
{
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, UINT), "iilh", r1, i2);
return emit_RI(p, 0xa5020000, r1, i2);
@@ -1772,7 +1767,7 @@
static UChar *
s390_emit_IILL(UChar *p, UChar r1, UShort i2)
{
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, UINT), "iill", r1, i2);
return emit_RI(p, 0xa5030000, r1, i2);
@@ -1782,7 +1777,7 @@
static UChar *
s390_emit_IPM(UChar *p, UChar r1, UChar r2)
{
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC2(MNM, GPR), "ipm", r1);
return emit_RRE(p, 0xb2220000, r1, r2);
@@ -1792,7 +1787,7 @@
static UChar *
s390_emit_LR(UChar *p, UChar r1, UChar r2)
{
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, GPR), "lr", r1, r2);
return emit_RR(p, 0x1800, r1, r2);
@@ -1802,7 +1797,7 @@
static UChar *
s390_emit_LGR(UChar *p, UChar r1, UChar r2)
{
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, GPR), "lgr", r1, r2);
return emit_RRE(p, 0xb9040000, r1, r2);
@@ -1812,7 +1807,7 @@
static UChar *
s390_emit_LGFR(UChar *p, UChar r1, UChar r2)
{
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, GPR), "lgfr", r1, r2);
return emit_RRE(p, 0xb9140000, r1, r2);
@@ -1822,7 +1817,7 @@
static UChar *
s390_emit_L(UChar *p, UChar r1, UChar x2, UChar b2, UShort d2)
{
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, UDXB), "l", r1, d2, x2, b2);
return emit_RX(p, 0x58000000, r1, x2, b2, d2);
@@ -1834,7 +1829,7 @@
{
vassert(s390_host_has_ldisp);
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, SDXB), "ly", r1, dh2, dl2, x2, b2);
return emit_RXY(p, 0xe30000000058ULL, r1, x2, b2, dl2, dh2);
@@ -1846,7 +1841,7 @@
{
vassert(s390_host_has_ldisp || dh2 == 0);
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, SDXB), "lg", r1, dh2, dl2, x2, b2);
return emit_RXY(p, 0xe30000000004ULL, r1, x2, b2, dl2, dh2);
@@ -1858,7 +1853,7 @@
{
vassert(s390_host_has_ldisp || dh2 == 0);
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, SDXB), "lgf", r1, dh2, dl2, x2, b2);
return emit_RXY(p, 0xe30000000014ULL, r1, x2, b2, dl2, dh2);
@@ -1870,7 +1865,7 @@
{
vassert(s390_host_has_eimm);
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, INT), "lgfi", r1, i2);
return emit_RIL(p, 0xc00100000000ULL, r1, i2);
@@ -1880,7 +1875,7 @@
static UChar *
s390_emit_LTR(UChar *p, UChar r1, UChar r2)
{
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, GPR), "ltr", r1, r2);
return emit_RR(p, 0x1200, r1, r2);
@@ -1890,7 +1885,7 @@
static UChar *
s390_emit_LTGR(UChar *p, UChar r1, UChar r2)
{
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, GPR), "ltgr", r1, r2);
return emit_RRE(p, 0xb9020000, r1, r2);
@@ -1902,7 +1897,7 @@
{
vassert(s390_host_has_eimm);
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, SDXB), "lt", r1, dh2, dl2, x2, b2);
return emit_RXY(p, 0xe30000000012ULL, r1, x2, b2, dl2, dh2);
@@ -1914,7 +1909,7 @@
{
vassert(s390_host_has_eimm);
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, SDXB), "ltg", r1, dh2, dl2, x2, b2);
return emit_RXY(p, 0xe30000000002ULL, r1, x2, b2, dl2, dh2);
@@ -1926,7 +1921,7 @@
{
vassert(s390_host_has_eimm);
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, GPR), "lbr", r1, r2);
return emit_RRE(p, 0xb9260000, r1, r2);
@@ -1938,7 +1933,7 @@
{
vassert(s390_host_has_eimm);
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, GPR), "lgbr", r1, r2);
return emit_RRE(p, 0xb9060000, r1, r2);
@@ -1950,7 +1945,7 @@
{
vassert(s390_host_has_ldisp);
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, SDXB), "lb", r1, dh2, dl2, x2, b2);
return emit_RXY(p, 0xe30000000076ULL, r1, x2, b2, dl2, dh2);
@@ -1962,7 +1957,7 @@
{
vassert(s390_host_has_ldisp);
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, SDXB), "lgb", r1, dh2, dl2, x2, b2);
return emit_RXY(p, 0xe30000000077ULL, r1, x2, b2, dl2, dh2);
@@ -1972,7 +1967,7 @@
static UChar *
s390_emit_LCR(UChar *p, UChar r1, UChar r2)
{
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, GPR), "lcr", r1, r2);
return emit_RR(p, 0x1300, r1, r2);
@@ -1982,7 +1977,7 @@
static UChar *
s390_emit_LCGR(UChar *p, UChar r1, UChar r2)
{
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, GPR), "lcgr", r1, r2);
return emit_RRE(p, 0xb9030000, r1, r2);
@@ -1994,7 +1989,7 @@
{
vassert(s390_host_has_eimm);
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, GPR), "lhr", r1, r2);
return emit_RRE(p, 0xb9270000, r1, r2);
@@ -2006,7 +2001,7 @@
{
vassert(s390_host_has_eimm);
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, GPR), "lghr", r1, r2);
return emit_RRE(p, 0xb9070000, r1, r2);
@@ -2016,7 +2011,7 @@
static UChar *
s390_emit_LH(UChar *p, UChar r1, UChar x2, UChar b2, UShort d2)
{
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, UDXB), "lh", r1, d2, x2, b2);
return emit_RX(p, 0x48000000, r1, x2, b2, d2);
@@ -2028,7 +2023,7 @@
{
vassert(s390_host_has_ldisp);
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, SDXB), "lhy", r1, dh2, dl2, x2, b2);
return emit_RXY(p, 0xe30000000078ULL, r1, x2, b2, dl2, dh2);
@@ -2040,7 +2035,7 @@
{
vassert(s390_host_has_ldisp || dh2 == 0);
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, SDXB), "lgh", r1, dh2, dl2, x2, b2);
return emit_RXY(p, 0xe30000000015ULL, r1, x2, b2, dl2, dh2);
@@ -2050,7 +2045,7 @@
static UChar *
s390_emit_LHI(UChar *p, UChar r1, UShort i2)
{
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, INT), "lhi", r1, (Int)(Short)i2);
return emit_RI(p, 0xa7080000, r1, i2);
@@ -2060,7 +2055,7 @@
static UChar *
s390_emit_LGHI(UChar *p, UChar r1, UShort i2)
{
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, INT), "lghi", r1, (Int)(Short)i2);
return emit_RI(p, 0xa7090000, r1, i2);
@@ -2070,7 +2065,7 @@
static UChar *
s390_emit_LLGFR(UChar *p, UChar r1, UChar r2)
{
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, GPR), "llgfr", r1, r2);
return emit_RRE(p, 0xb9160000, r1, r2);
@@ -2082,7 +2077,7 @@
{
vassert(s390_host_has_ldisp || dh2 == 0);
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, SDXB), "llgf", r1, dh2, dl2, x2, b2);
return emit_RXY(p, 0xe30000000016ULL, r1, x2, b2, dl2, dh2);
@@ -2094,7 +2089,7 @@
{
vassert(s390_host_has_eimm);
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, GPR), "llcr", r1, r2);
return emit_RRE(p, 0xb9940000, r1, r2);
@@ -2106,7 +2101,7 @@
{
vassert(s390_host_has_eimm);
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, GPR), "llgcr", r1, r2);
return emit_RRE(p, 0xb9840000, r1, r2);
@@ -2118,7 +2113,7 @@
{
vassert(s390_host_has_eimm);
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, SDXB), "llc", r1, dh2, dl2, x2, b2);
return emit_RXY(p, 0xe30000000094ULL, r1, x2, b2, dl2, dh2);
@@ -2130,7 +2125,7 @@
{
vassert(s390_host_has_ldisp || dh2 == 0);
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, SDXB), "llgc", r1, dh2, dl2, x2, b2);
return emit_RXY(p, 0xe30000000090ULL, r1, x2, b2, dl2, dh2);
@@ -2142,7 +2137,7 @@
{
vassert(s390_host_has_eimm);
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, GPR), "llhr", r1, r2);
return emit_RRE(p, 0xb9950000, r1, r2);
@@ -2154,7 +2149,7 @@
{
vassert(s390_host_has_eimm);
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, GPR), "llghr", r1, r2);
return emit_RRE(p, 0xb9850000, r1, r2);
@@ -2166,7 +2161,7 @@
{
vassert(s390_host_has_eimm);
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, SDXB), "llh", r1, dh2, dl2, x2, b2);
return emit_RXY(p, 0xe30000000095ULL, r1, x2, b2, dl2, dh2);
@@ -2178,7 +2173,7 @@
{
vassert(s390_host_has_ldisp || dh2 == 0);
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, SDXB), "llgh", r1, dh2, dl2, x2, b2);
return emit_RXY(p, 0xe30000000091ULL, r1, x2, b2, dl2, dh2);
@@ -2190,7 +2185,7 @@
{
vassert(s390_host_has_eimm);
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, UINT), "llilf", r1, i2);
return emit_RIL(p, 0xc00f00000000ULL, r1, i2);
@@ -2200,7 +2195,7 @@
static UChar *
s390_emit_LLILH(UChar *p, UChar r1, UShort i2)
{
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, UINT), "llilh", r1, i2);
return emit_RI(p, 0xa50e0000, r1, i2);
@@ -2210,7 +2205,7 @@
static UChar *
s390_emit_LLILL(UChar *p, UChar r1, UShort i2)
{
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, UINT), "llill", r1, i2);
return emit_RI(p, 0xa50f0000, r1, i2);
@@ -2220,7 +2215,7 @@
static UChar *
s390_emit_MR(UChar *p, UChar r1, UChar r2)
{
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, GPR), "mr", r1, r2);
return emit_RR(p, 0x1c00, r1, r2);
@@ -2230,7 +2225,7 @@
static UChar *
s390_emit_M(UChar *p, UChar r1, UChar x2, UChar b2, UShort d2)
{
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, UDXB), "m", r1, d2, x2, b2);
return emit_RX(p, 0x5c000000, r1, x2, b2, d2);
@@ -2242,7 +2237,7 @@
{
vassert(s390_host_has_gie);
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, SDXB), "mfy", r1, dh2, dl2, x2, b2);
return emit_RXY(p, 0xe3000000005cULL, r1, x2, b2, dl2, dh2);
@@ -2252,7 +2247,7 @@
static UChar *
s390_emit_MH(UChar *p, UChar r1, UChar x2, UChar b2, UShort d2)
{
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, UDXB), "mh", r1, d2, x2, b2);
return emit_RX(p, 0x4c000000, r1, x2, b2, d2);
@@ -2264,7 +2259,7 @@
{
vassert(s390_host_has_gie);
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, SDXB), "mhy", r1, dh2, dl2, x2, b2);
return emit_RXY(p, 0xe3000000007cULL, r1, x2, b2, dl2, dh2);
@@ -2274,7 +2269,7 @@
static UChar *
s390_emit_MHI(UChar *p, UChar r1, UShort i2)
{
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, INT), "mhi", r1, (Int)(Short)i2);
return emit_RI(p, 0xa70c0000, r1, i2);
@@ -2284,7 +2279,7 @@
static UChar *
s390_emit_MLR(UChar *p, UChar r1, UChar r2)
{
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, GPR), "mlr", r1, r2);
return emit_RRE(p, 0xb9960000, r1, r2);
@@ -2294,7 +2289,7 @@
static UChar *
s390_emit_MLGR(UChar *p, UChar r1, UChar r2)
{
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, GPR), "mlgr", r1, r2);
return emit_RRE(p, 0xb9860000, r1, r2);
@@ -2306,7 +2301,7 @@
{
vassert(s390_host_has_ldisp || dh2 == 0);
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, SDXB), "ml", r1, dh2, dl2, x2, b2);
return emit_RXY(p, 0xe30000000096ULL, r1, x2, b2, dl2, dh2);
@@ -2318,7 +2313,7 @@
{
vassert(s390_host_has_ldisp || dh2 == 0);
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, SDXB), "mlg", r1, dh2, dl2, x2, b2);
return emit_RXY(p, 0xe30000000086ULL, r1, x2, b2, dl2, dh2);
@@ -2328,7 +2323,7 @@
static UChar *
s390_emit_MSR(UChar *p, UChar r1, UChar r2)
{
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, GPR), "msr", r1, r2);
return emit_RRE(p, 0xb2520000, r1, r2);
@@ -2338,7 +2333,7 @@
static UChar *
s390_emit_MSGR(UChar *p, UChar r1, UChar r2)
{
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, GPR), "msgr", r1, r2);
return emit_RRE(p, 0xb90c0000, r1, r2);
@@ -2348,7 +2343,7 @@
static UChar *
s390_emit_MS(UChar *p, UChar r1, UChar x2, UChar b2, UShort d2)
{
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, UDXB), "ms", r1, d2, x2, b2);
return emit_RX(p, 0x71000000, r1, x2, b2, d2);
@@ -2360,7 +2355,7 @@
{
vassert(s390_host_has_ldisp);
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, SDXB), "msy", r1, dh2, dl2, x2, b2);
return emit_RXY(p, 0xe30000000051ULL, r1, x2, b2, dl2, dh2);
@@ -2372,7 +2367,7 @@
{
vassert(s390_host_has_ldisp || dh2 == 0);
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, SDXB), "msg", r1, dh2, dl2, x2, b2);
return emit_RXY(p, 0xe3000000000cULL, r1, x2, b2, dl2, dh2);
@@ -2384,7 +2379,7 @@
{
vassert(s390_host_has_gie);
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, INT), "msfi", r1, i2);
return emit_RIL(p, 0xc20100000000ULL, r1, i2);
@@ -2396,7 +2391,7 @@
{
vassert(s390_host_has_gie);
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, INT), "msgfi", r1, i2);
return emit_RIL(p, 0xc20000000000ULL, r1, i2);
@@ -2406,7 +2401,7 @@
static UChar *
s390_emit_OR(UChar *p, UChar r1, UChar r2)
{
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, GPR), "or", r1, r2);
return emit_RR(p, 0x1600, r1, r2);
@@ -2416,7 +2411,7 @@
static UChar *
s390_emit_OGR(UChar *p, UChar r1, UChar r2)
{
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, GPR), "ogr", r1, r2);
return emit_RRE(p, 0xb9810000, r1, r2);
@@ -2426,7 +2421,7 @@
static UChar *
s390_emit_O(UChar *p, UChar r1, UChar x2, UChar b2, UShort d2)
{
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, UDXB), "o", r1, d2, x2, b2);
return emit_RX(p, 0x56000000, r1, x2, b2, d2);
@@ -2438,7 +2433,7 @@
{
vassert(s390_host_has_ldisp);
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, SDXB), "oy", r1, dh2, dl2, x2, b2);
return emit_RXY(p, 0xe30000000056ULL, r1, x2, b2, dl2, dh2);
@@ -2450,7 +2445,7 @@
{
vassert(s390_host_has_ldisp || dh2 == 0);
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, SDXB), "og", r1, dh2, dl2, x2, b2);
return emit_RXY(p, 0xe30000000081ULL, r1, x2, b2, dl2, dh2);
@@ -2462,7 +2457,7 @@
{
vassert(s390_host_has_eimm);
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, UINT), "oihf", r1, i2);
return emit_RIL(p, 0xc00c00000000ULL, r1, i2);
@@ -2474,7 +2469,7 @@
{
vassert(s390_host_has_eimm);
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, UINT), "oilf", r1, i2);
return emit_RIL(p, 0xc00d00000000ULL, r1, i2);
@@ -2484,7 +2479,7 @@
static UChar *
s390_emit_OILL(UChar *p, UChar r1, UShort i2)
{
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, UINT), "oill", r1, i2);
return emit_RI(p, 0xa50b0000, r1, i2);
@@ -2494,7 +2489,7 @@
static UChar *
s390_emit_SLL(UChar *p, UChar r1, UChar b2, UShort d2)
{
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, UDXB), "sll", r1, d2, 0, b2);
return emit_RS(p, 0x89000000, r1, 0, b2, d2);
@@ -2506,7 +2501,7 @@
{
vassert(s390_host_has_ldisp || dh2 == 0);
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC4(MNM, GPR, GPR, SDXB), "sllg", r1, r3, dh2, dl2, 0, b2);
return emit_RSY(p, 0xeb000000000dULL, r1, r3, b2, dl2, dh2);
@@ -2516,7 +2511,7 @@
static UChar *
s390_emit_SRA(UChar *p, UChar r1, UChar b2, UShort d2)
{
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, UDXB), "sra", r1, d2, 0, b2);
return emit_RS(p, 0x8a000000, r1, 0, b2, d2);
@@ -2528,7 +2523,7 @@
{
vassert(s390_host_has_ldisp || dh2 == 0);
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC4(MNM, GPR, GPR, SDXB), "srag", r1, r3, dh2, dl2, 0, b2);
return emit_RSY(p, 0xeb000000000aULL, r1, r3, b2, dl2, dh2);
@@ -2538,7 +2533,7 @@
static UChar *
s390_emit_SRL(UChar *p, UChar r1, UChar b2, UShort d2)
{
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, UDXB), "srl", r1, d2, 0, b2);
return emit_RS(p, 0x88000000, r1, 0, b2, d2);
@@ -2550,7 +2545,7 @@
{
vassert(s390_host_has_ldisp || dh2 == 0);
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC4(MNM, GPR, GPR, SDXB), "srlg", r1, r3, dh2, dl2, 0, b2);
return emit_RSY(p, 0xeb000000000cULL, r1, r3, b2, dl2, dh2);
@@ -2560,7 +2555,7 @@
static UChar *
s390_emit_ST(UChar *p, UChar r1, UChar x2, UChar b2, UShort d2)
{
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, UDXB), "st", r1, d2, x2, b2);
return emit_RX(p, 0x50000000, r1, x2, b2, d2);
@@ -2572,7 +2567,7 @@
{
vassert(s390_host_has_ldisp);
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, SDXB), "sty", r1, dh2, dl2, x2, b2);
return emit_RXY(p, 0xe30000000050ULL, r1, x2, b2, dl2, dh2);
@@ -2584,7 +2579,7 @@
{
vassert(s390_host_has_ldisp || dh2 == 0);
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, SDXB), "stg", r1, dh2, dl2, x2, b2);
return emit_RXY(p, 0xe30000000024ULL, r1, x2, b2, dl2, dh2);
@@ -2594,7 +2589,7 @@
static UChar *
s390_emit_STC(UChar *p, UChar r1, UChar x2, UChar b2, UShort d2)
{
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, UDXB), "stc", r1, d2, x2, b2);
return emit_RX(p, 0x42000000, r1, x2, b2, d2);
@@ -2606,7 +2601,7 @@
{
vassert(s390_host_has_ldisp);
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, SDXB), "stcy", r1, dh2, dl2, x2, b2);
return emit_RXY(p, 0xe30000000072ULL, r1, x2, b2, dl2, dh2);
@@ -2616,7 +2611,7 @@
static UChar *
s390_emit_STH(UChar *p, UChar r1, UChar x2, UChar b2, UShort d2)
{
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, UDXB), "sth", r1, d2, x2, b2);
return emit_RX(p, 0x40000000, r1, x2, b2, d2);
@@ -2628,7 +2623,7 @@
{
vassert(s390_host_has_ldisp);
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, SDXB), "sthy", r1, dh2, dl2, x2, b2);
return emit_RXY(p, 0xe30000000070ULL, r1, x2, b2, dl2, dh2);
@@ -2638,7 +2633,7 @@
static UChar *
s390_emit_SR(UChar *p, UChar r1, UChar r2)
{
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, GPR), "sr", r1, r2);
return emit_RR(p, 0x1b00, r1, r2);
@@ -2648,7 +2643,7 @@
static UChar *
s390_emit_SGR(UChar *p, UChar r1, UChar r2)
{
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, GPR), "sgr", r1, r2);
return emit_RRE(p, 0xb9090000, r1, r2);
@@ -2658,7 +2653,7 @@
static UChar *
s390_emit_S(UChar *p, UChar r1, UChar x2, UChar b2, UShort d2)
{
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, UDXB), "s", r1, d2, x2, b2);
return emit_RX(p, 0x5b000000, r1, x2, b2, d2);
@@ -2670,7 +2665,7 @@
{
vassert(s390_host_has_ldisp);
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, SDXB), "sy", r1, dh2, dl2, x2, b2);
return emit_RXY(p, 0xe3000000005bULL, r1, x2, b2, dl2, dh2);
@@ -2682,7 +2677,7 @@
{
vassert(s390_host_has_ldisp || dh2 == 0);
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, SDXB), "sg", r1, dh2, dl2, x2, b2);
return emit_RXY(p, 0xe30000000009ULL, r1, x2, b2, dl2, dh2);
@@ -2692,7 +2687,7 @@
static UChar *
s390_emit_SH(UChar *p, UChar r1, UChar x2, UChar b2, UShort d2)
{
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, UDXB), "sh", r1, d2, x2, b2);
return emit_RX(p, 0x4b000000, r1, x2, b2, d2);
@@ -2704,7 +2699,7 @@
{
vassert(s390_host_has_ldisp);
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, SDXB), "shy", r1, dh2, dl2, x2, b2);
return emit_RXY(p, 0xe3000000007bULL, r1, x2, b2, dl2, dh2);
@@ -2716,7 +2711,7 @@
{
vassert(s390_host_has_eimm);
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, UINT), "slfi", r1, i2);
return emit_RIL(p, 0xc20500000000ULL, r1, i2);
@@ -2726,7 +2721,7 @@
static UChar *
s390_emit_SLGFI(UChar *p, UChar r1, UInt i2)
{
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, GPR, UINT), "slgfi", r1, i2);
return emit_RIL(p, 0xc20400000000ULL, r1, i2);
@@ -2736,7 +2731,7 @@
static UChar *
s390_emit_LDR(UChar *p, UChar r1, UChar r2)
{
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, FPR, FPR), "ldr", r1, r2);
return emit_RR(p, 0x2800, r1, r2);
@@ -2746,7 +2741,7 @@
static UChar *
s390_emit_LE(UChar *p, UChar r1, UChar x2, UChar b2, UShort d2)
{
- if (unlikely(vex_traceflags & VEX_TRACE_ASM))
+ if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM))
s390_disasm(ENC3(MNM, FPR, UDXB), "le", r1, d2, x2, b2);
return emit_RX(p, 0x78000000, r1, x2, b2, d2);
@@ -2756...
[truncated message content] |