| ... | ... | @@ -1210,51 +1210,43 @@ pub const Cpu = struct { |
| 1210 | 1210 | |
| 1211 | 1211 | pub fn toElfMachine(arch: Arch) std.elf.EM { |
| 1212 | 1212 | return switch (arch) { |
| 1213 | | .avr => .AVR, |
| 1214 | | .msp430 => .MSP430, |
| 1213 | .amdgcn => .AMDGPU, |
| 1215 | 1214 | .arc => .ARC, |
| 1216 | | .arm => .ARM, |
| 1217 | | .armeb => .ARM, |
| 1215 | .arm, .armeb, .thumb, .thumbeb => .ARM, |
| 1216 | .aarch64, .aarch64_be => .AARCH64, |
| 1217 | .avr => .AVR, |
| 1218 | .bpfel, .bpfeb => .BPF, |
| 1219 | .csky => .CSKY, |
| 1218 | 1220 | .hexagon => .HEXAGON, |
| 1219 | | .dxil => .NONE, |
| 1221 | .kalimba => .CSR_KALIMBA, |
| 1222 | .lanai => .LANAI, |
| 1223 | .loongarch32, .loongarch64 => .LOONGARCH, |
| 1220 | 1224 | .m68k => .@"68K", |
| 1221 | | .mips => .MIPS, |
| 1222 | | .mipsel => .MIPS_RS3_LE, |
| 1225 | .mips, .mips64 => .MIPS, |
| 1226 | .mipsel, .mips64el => .MIPS_RS3_LE, |
| 1227 | .msp430 => .MSP430, |
| 1223 | 1228 | .powerpc, .powerpcle => .PPC, |
| 1224 | | .riscv32 => .RISCV, |
| 1225 | | .sparc => .SPARC, |
| 1226 | | .thumb => .ARM, |
| 1227 | | .thumbeb => .ARM, |
| 1229 | .powerpc64, .powerpc64le => .PPC64, |
| 1230 | .riscv32, .riscv64 => .RISCV, |
| 1231 | .s390x => .S390, |
| 1232 | .sparc => .SPARC, // TODO: Should be SPARC32PLUS when targeting 32-bit v9. |
| 1233 | .sparc64 => .SPARCV9, |
| 1234 | .spu_2 => .SPU_2, |
| 1228 | 1235 | .x86 => .@"386", |
| 1236 | .x86_64 => .X86_64, |
| 1229 | 1237 | .xcore => .XCORE, |
| 1230 | 1238 | .xtensa => .XTENSA, |
| 1231 | | .nvptx => .NONE, |
| 1232 | | .kalimba => .CSR_KALIMBA, |
| 1233 | | .lanai => .LANAI, |
| 1234 | | .wasm32 => .NONE, |
| 1235 | | .aarch64 => .AARCH64, |
| 1236 | | .aarch64_be => .AARCH64, |
| 1237 | | .mips64 => .MIPS, |
| 1238 | | .mips64el => .MIPS_RS3_LE, |
| 1239 | | .powerpc64 => .PPC64, |
| 1240 | | .powerpc64le => .PPC64, |
| 1241 | | .riscv64 => .RISCV, |
| 1242 | | .x86_64 => .X86_64, |
| 1243 | | .nvptx64 => .NONE, |
| 1244 | | .wasm64 => .NONE, |
| 1245 | | .amdgcn => .AMDGPU, |
| 1246 | | .bpfel => .BPF, |
| 1247 | | .bpfeb => .BPF, |
| 1248 | | .csky => .CSKY, |
| 1249 | | .sparc64 => .SPARCV9, |
| 1250 | | .s390x => .S390, |
| 1251 | | .ve => .NONE, |
| 1252 | | .spu_2 => .SPU_2, |
| 1253 | | .spirv => .NONE, |
| 1254 | | .spirv32 => .NONE, |
| 1255 | | .spirv64 => .NONE, |
| 1256 | | .loongarch32 => .LOONGARCH, |
| 1257 | | .loongarch64 => .LOONGARCH, |
| 1239 | |
| 1240 | .dxil, |
| 1241 | .nvptx, |
| 1242 | .nvptx64, |
| 1243 | .spirv, |
| 1244 | .spirv32, |
| 1245 | .spirv64, |
| 1246 | .ve, |
| 1247 | .wasm32, |
| 1248 | .wasm64, |
| 1249 | => .NONE, |
| 1258 | 1250 | }; |
| 1259 | 1251 | } |
| 1260 | 1252 | |