/* Helper function for all vector operations */
static UChar
-s390_getM_from_size(const UChar size) {
+s390_getM_from_size(const UChar size)
+{
switch(size) {
case 1:
return 0;
/* Helper for generating RXB field in vector instructions */
static UChar
-s390_update_rxb(const UChar rxb, const UChar index, UChar* vr) {
+s390_update_rxb(const UChar rxb, const UChar index, UChar* vr)
+{
vassert((index >= 1) && (index <= 4));
UChar result = rxb;
if(vr != NULL) {
return NULL;
}
-s390_insn* genMove_S390(HReg from, HReg to, Bool mode64)
+s390_insn *
+genMove_S390(HReg from, HReg to, Bool mode64)
{
switch (hregClass(from)) {
case HRcInt64:
s390_insn *
s390_insn_vec_amodeop(UChar size, s390_vec_amodeop_t tag, HReg dst, HReg op1,
- s390_amode *op2)
+ s390_amode *op2)
{
s390_insn *insn = LibVEX_Alloc_inline(sizeof(s390_insn));
return insn;
}
-s390_insn *s390_insn_vec_amodeintop(UChar size, s390_vec_amodeintop_t tag, HReg dst,
- s390_amode* op2, HReg op3)
+s390_insn *
+s390_insn_vec_amodeintop(UChar size, s390_vec_amodeintop_t tag, HReg dst,
+ s390_amode* op2, HReg op3)
{
s390_insn *insn = LibVEX_Alloc_inline(sizeof(s390_insn));
return insn;
}
-s390_insn *s390_insn_vec_binop(UChar size, s390_vec_binop_t tag, HReg dst,
- HReg op1, HReg op2)
+s390_insn *
+s390_insn_vec_binop(UChar size, s390_vec_binop_t tag, HReg dst,
+ HReg op1, HReg op2)
{
s390_insn *insn = LibVEX_Alloc_inline(sizeof(s390_insn));
return insn;
}
-s390_insn *s390_insn_vec_triop(UChar size, s390_vec_triop_t tag, HReg dst,
- HReg op1, HReg op2, HReg op3)
+s390_insn *
+s390_insn_vec_triop(UChar size, s390_vec_triop_t tag, HReg dst,
+ HReg op1, HReg op2, HReg op3)
{
s390_insn *insn = LibVEX_Alloc_inline(sizeof(s390_insn));
return insn;
}
-s390_insn *s390_insn_vec_replicate(UChar size, HReg dst, HReg op1,
- UChar idx)
+s390_insn *
+s390_insn_vec_replicate(UChar size, HReg dst, HReg op1, UChar idx)
{
s390_insn *insn = LibVEX_Alloc_inline(sizeof(s390_insn));
const RRegUniverse *getRRegUniverse_S390( void );
void genSpill_S390 ( HInstr **, HInstr **, HReg , Int , Bool );
void genReload_S390 ( HInstr **, HInstr **, HReg , Int , Bool );
-HInstr* directReload_S390 ( HInstr *, HReg, Short );
-extern s390_insn* genMove_S390(HReg from, HReg to, Bool mode64);
+HInstr *directReload_S390 ( HInstr *, HReg, Short );
+s390_insn *genMove_S390 ( HReg from, HReg to, Bool mode64);
HInstrArray *iselSB_S390 ( const IRSB *, VexArch, const VexArchInfo *,
const VexAbiInfo *, Int, Int, Bool, Bool, Addr);
{
static struct model_map {
const HChar name[5];
- UInt id;
+ const UInt id;
} model_map[] = {
{ "2064", VEX_S390X_MODEL_Z900 },
{ "2066", VEX_S390X_MODEL_Z800 },
/* Detect presence of certain facilities using the STFLE insn. */
struct fac_hwcaps_map {
UInt installed;
- UInt facility_bit;
- UInt hwcaps_bit;
- const HChar name[6]; // may need adjustment for new facility names
+ const UInt facility_bit;
+ const UInt hwcaps_bit;
+ const HChar name[5]; // may need adjustment for new facility names
} fac_hwcaps[] = {
{ False, 129, VEX_HWCAPS_S390X_VX, "VX" },
{ False, 57, VEX_HWCAPS_S390X_MSA5, "MSA5" },