{svp64_desc_cr_in2_opindex, desc->extra_idx_cr_in2},
{svp64_desc_cr_out_opindex, desc->extra_idx_cr_out},
};
+ static const struct {
+ int origin;
+ int target;
+ } aliases[] = {
+ {OBF, BF},
+ {PRA0, RA0},
+ {PRAQ, RA},
+ {RAOPT, RA},
+ {RBOPT, RB},
+ {RSO, RS},
+ {TBR, SPR},
+ };
+
+ for (i = 0; i < ARRAY_SIZE (aliases); ++i)
+ {
+ if (opindex == aliases[i].origin)
+ {
+ opindex = aliases[i].target;
+ break;
+ }
+ }
- for (i = 0; i < (sizeof (table) / sizeof (table[0])); ++i)
+ for (i = 0; i < ARRAY_SIZE (table); ++i)
{
enum svp64_extra extra = table[i].extra;