case '8':
if (streq (str, "8") || streq (str, "810"))
- cpu_variant = (cpu_variant & ~ARM_ANY)
- | ARM_8 | ARM_ARCH_V4;
+ cpu_variant = (cpu_variant & ~ARM_ANY) | ARM_8;
else
goto bad;
break;
case '9':
if (streq (str, "9"))
- cpu_variant = (cpu_variant & ~ARM_ANY)
- | ARM_9 | ARM_ARCH_V4T;
+ cpu_variant = (cpu_variant & ~ARM_ANY) | ARM_9;
else if (streq (str, "920"))
- cpu_variant = (cpu_variant & ~ARM_ANY)
- | ARM_9 | ARM_ARCH_V4;
+ cpu_variant = (cpu_variant & ~ARM_ANY) | ARM_9;
else if (streq (str, "920t"))
- cpu_variant = (cpu_variant & ~ARM_ANY)
- | ARM_9 | ARM_ARCH_V4T;
+ cpu_variant = (cpu_variant & ~ARM_ANY) | ARM_9;
else if (streq (str, "9tdmi"))
- cpu_variant = (cpu_variant & ~ARM_ANY)
- | ARM_9 | ARM_ARCH_V4T;
+ cpu_variant = (cpu_variant & ~ARM_ANY) | ARM_9;
else if (streq (str, "9e"))
+ /* XXX This is bogus: arm9e != maverick. */
cpu_variant = (cpu_variant & ~ARM_ANY)
- | ARM_9 | ARM_ARCH_V4T | ARM_EXT_MAVERICK;
+ | ARM_9 | ARM_EXT_MAVERICK;
else
goto bad;
break;
if (streq (str, "strongarm")
|| streq (str, "strongarm110")
|| streq (str, "strongarm1100"))
- cpu_variant = (cpu_variant & ~ARM_ANY)
- | ARM_8 | ARM_ARCH_V4;
+ cpu_variant = (cpu_variant & ~ARM_ANY) | ARM_STRONG;
else
goto bad;
break;
case 'x':
if (streq (str, "xscale"))
- cpu_variant = (cpu_variant & ~ARM_ANY)
- | ARM_9 | ARM_ARCH_XSCALE;
+ cpu_variant = (cpu_variant & ~ARM_ANY) | ARM_ARCH_XSCALE;
else
goto bad;
break;
switch (*++str)
{
case 'a':
- cpu_variant = (cpu_variant & ~ARM_ANY) | ARM_3;
+ cpu_variant = (cpu_variant & ~ARM_ANY) | ARM_ARCH_V2S;
break;
case 0:
- cpu_variant = (cpu_variant & ~ARM_ANY) | ARM_2;
+ cpu_variant = (cpu_variant & ~ARM_ANY) | ARM_ARCH_V2;
break;
default:
as_bad (_("invalid architecture variant -m%s"), arg);
break;
case '3':
- cpu_variant = (cpu_variant & ~ARM_ANY) | ARM_7;
+ cpu_variant = (cpu_variant & ~ARM_ANY) | ARM_ARCH_V3;
switch (*++str)
{
break;
case '4':
- cpu_variant = (cpu_variant & ~ARM_ANY) | ARM_7 | ARM_ARCH_V4;
+ cpu_variant = (cpu_variant & ~ARM_ANY) | ARM_ARCH_V4;
switch (*++str)
{
break;
case '5':
- cpu_variant = (cpu_variant & ~ARM_ANY) | ARM_9 | ARM_ARCH_V5;
+ cpu_variant = (cpu_variant & ~ARM_ANY) | ARM_ARCH_V5;
switch (*++str)
{
- case 't': cpu_variant |= ARM_EXT_V4T; break;
+ case 't': cpu_variant |= ARM_EXT_V4T | ARM_EXT_V5T; break;
case 'e': cpu_variant |= ARM_EXT_V5E; break;
case 0: break;
default: