<div dir="ltr">Hi Kevin,<div><br></div><div>I had another query for 32 bit x86. (Apology for being naive) </div><div><br></div><div>I guess <span style="color:rgb(0,0,0);white-space:pre-wrap">the default CPU on 32-bit x86 is 'pentium4', which has SSE </span><span style="color:rgb(0,0,0);white-space:pre-wrap">as </span><span style="color:rgb(0,0,0);white-space:pre-wrap">seen in getX86TargetCPU() in tools/clang/lib/Driver/Tools.cpp:</span></div><pre class="" style="white-space:pre-wrap;width:50em;color:rgb(0,0,0)">static const char *getX86TargetCPU(const ArgList &Args,
const llvm::Triple &Triple) {
...
// Everything else goes to x86-64 in 64-bit mode.
if (Is64Bit)
return "x86-64";
switch (Triple.getOS()) {
case llvm::Triple::FreeBSD:
case llvm::Triple::NetBSD:
case llvm::Triple::OpenBSD:
return "i486";
case llvm::Triple::Haiku:
return "i586";
case llvm::Triple::Bitrig:
return "i686";
default:
// Fallback to p4.
return "pentium4";
}
}</pre><div><span style="color:rgb(0,0,0);white-space:pre-wrap"><br></span></div><div><span style="color:rgb(0,0,0);white-space:pre-wrap">Is there any 32-bit CPU with MMX feature but without SSE feature?</span><br></div><div><span style="color:rgb(0,0,0);white-space:pre-wrap"><br></span></div><div><span style="color:rgb(0,0,0);white-space:pre-wrap">Can it be done as follows :</span></div><div><span style="color:rgb(0,0,0);white-space:pre-wrap"><br></span></div><div><span style="color:rgb(0,0,0);white-space:pre-wrap">$ clang 1.c </span><font color="#000000"><span style="white-space:pre-wrap">-mmmx -mno-sse -emit-llvm -S -target i386.</span></font></div><div><font color="#000000"><span style="white-space:pre-wrap"><br></span></font></div><div><font color="#000000"><span style="white-space:pre-wrap">My intention is to generate IR for x86 32 bit CPU with MMX feature but without SSE feature and further investigate if vectorization triggers for 32 bit architecture with MMX feature only.</span></font></div><div><br></div><div>Thanks.</div><div><br></div><div>Regards,</div><div>Suyog Sarda</div></div>