Power 8 instructions.
The patch for bug 354797 moved the declaration for rc outside of the
architecture #ifdef. This results in an message about rc being unused
on architectures other then s390 and powerpc. This commit eliminates
the issue by:
powerpc: move rc declaration into #ifdef for powerpc.
Remove tab, put in missing break.
s390: remove rc declaration from inside case statement. Put rc declaration
before the switch statement but within the #ifdef for s390 so it will
be declared for use in both case clauses.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15738
irop_t *
get_irop(IROp op)
{
- int rc;
unsigned i;
for (i = 0; i < sizeof irops / sizeof *irops; ++i) {
if (p->op == op) {
#ifdef __s390x__
#define S390X_FEATURES "../../../tests/s390x_features"
+ int rc;
+
switch (op) {
case Iop_I32StoD64: // CDFTR
case Iop_I32StoD128: // CXFTR
case Iop_D128toF32:
case Iop_D128toF64:
case Iop_D128toF128: {
- int rc;
/* These IROps require the Perform Floating Point Operation
facility */
rc = system(S390X_FEATURES " s390x-pfpo");
#endif
#ifdef __powerpc__
#define MIN_POWER_ISA "../../../tests/min_power_isa"
+ int rc;
switch (op) {
case Iop_DivS64E:
if (rc > 2) {
panic(" ERROR, min_power_isa() return code is invalid.\n");
}
- }
+ }
+ break;
+
case Iop_PwBitMtxXpose64x2:
case Iop_Clz64x2:
case Iop_BCDAdd: