Browse Source

* make the asd_cpu directive (which is currently only implemented in the NASM
asm writer), when used with a cpu_none parameter, indicate no restrictions for
the CPU type. Under NASM, this is achieved by specifying 'IA64' as the
CPU type, since that's the highest CPU, supported by NASM's 'CPU' directive.

git-svn-id: trunk@33136 -

nickysn 9 years ago
parent
commit
1a56a1a026
1 changed files with 3 additions and 3 deletions
  1. 3 3
      compiler/x86/agx86nsm.pas

+ 3 - 3
compiler/x86/agx86nsm.pas

@@ -84,13 +84,13 @@ interface
       );
       );
       nasm_cpu_name : array[tcputype] of string = (
       nasm_cpu_name : array[tcputype] of string = (
 {$if defined(x86_64)}
 {$if defined(x86_64)}
-        '',            // cpu_none,
+        'IA64',        // cpu_none,
         'X64',         // cpu_athlon64,
         'X64',         // cpu_athlon64,
         'X64',         // cpu_core_i,
         'X64',         // cpu_core_i,
         'X64',         // cpu_core_avx,
         'X64',         // cpu_core_avx,
         'X64'          // cpu_core_avx2
         'X64'          // cpu_core_avx2
 {$elseif defined(i386)}
 {$elseif defined(i386)}
-        '',         // cpu_none,
+        'IA64',     // cpu_none,
         '386',      // cpu_386,
         '386',      // cpu_386,
         'PENTIUM',  // cpu_Pentium,
         'PENTIUM',  // cpu_Pentium,
         'P2',       // cpu_Pentium2,
         'P2',       // cpu_Pentium2,
@@ -101,7 +101,7 @@ interface
         'PRESCOTT', // cpu_core_avx,
         'PRESCOTT', // cpu_core_avx,
         'PRESCOTT'  // cpu_core_avx2
         'PRESCOTT'  // cpu_core_avx2
 {$elseif defined(i8086)}
 {$elseif defined(i8086)}
-        '',        // cpu_none
+        'IA64',    // cpu_none
         '8086',    // cpu_8086
         '8086',    // cpu_8086
         '186',     // cpu_186
         '186',     // cpu_186
         '286',     // cpu_286
         '286',     // cpu_286