<div dir="ltr"><div><div><div><div><div><div><div>Hello,<br><br></div>I have a user asking about msp430 support for Zig. When they try to target msp430, this error is triggered:<br><br>        if (target_machine-><wbr>addPassesToEmitFile(MPM, dest, ft)) {<br>            *error_message = strdup("TargetMachine can't emit a file of this type");<br>            return true;<br>        }<br><br></div>I tried using clang alone: clang -c add.c -target msp430-unknown<br><br>int add(int a, int b) {<br>    return a + b;<br>}<br><br><br></div> $ clang -c add.c -target msp430-unknown<br>/run/user/1000/add-91f569.s: Assembler messages:<br>/run/user/1000/add-91f569.s:7: Error: no such instruction: `push.w r4'<br>/run/user/1000/add-91f569.s:8: Error: no such instruction: `mov.w r1,r4'<br>/run/user/1000/add-91f569.s:9: Error: no such instruction: `sub.w '<br>/run/user/1000/add-91f569.s:<wbr>10: Error: no such instruction: `mov.w r13,r14'<br>/run/user/1000/add-91f569.s:<wbr>11: Error: no such instruction: `mov.w r12,r15'<br>/run/user/1000/add-91f569.s:<wbr>12: Error: no such instruction: `mov.w r12,-2(r4)'<br>/run/user/1000/add-91f569.s:<wbr>13: Error: no such instruction: `mov.w r13,-4(r4)'<br>/run/user/1000/add-91f569.s:<wbr>14: Error: no such instruction: `mov.w -2(r4),r12'<br>/run/user/1000/add-91f569.s:<wbr>15: Error: no such instruction: `mov.w -4(r4),r13'<br>/run/user/1000/add-91f569.s:<wbr>16: Error: no such instruction: `add.w r13,r12'<br>/run/user/1000/add-91f569.s:<wbr>17: Error: no such instruction: `mov.w r14,-6(r4)'<br>/run/user/1000/add-91f569.s:<wbr>18: Error: no such instruction: `mov.w r15,-8(r4)'<br>/run/user/1000/add-91f569.s:<wbr>19: Error: no such instruction: `add.w '<br>/run/user/1000/add-91f569.s:<wbr>20: Error: no such instruction: `pop.w r4'<br>clang-6.0: error: assembler command failed with exit code 1 (use -v to see invocation)<br><br><br></div>It looks like msp430 is in the non-experimental target list:<br><br># List of all targets to be built by default:<br>set(LLVM_ALL_TARGETS<br>  AArch64<br>  AMDGPU<br>  ARM<br>  BPF<br>  Hexagon<br>  Lanai<br>  Mips<br>  MSP430<br>  NVPTX<br>  PowerPC<br>  Sparc<br>  SystemZ<br>  X86<br>  XCore<br>  )<br><br><br></div>Is msp430 supported?</div></div></div>