]> granicus.if.org Git - clang/commit
Change -mno-mmx to be more compatible with gcc. Specifically, -mno-mmx should not...
authorEli Friedman <eli.friedman@gmail.com>
Fri, 8 Jul 2011 23:31:17 +0000 (23:31 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Fri, 8 Jul 2011 23:31:17 +0000 (23:31 +0000)
commitc3e0fb406fb6fe83566dc6d8b05362e0a2c1e191
treed15e131d7a8db0ae4d92178bf3d3169f7f6ddcf6
parent528a8c7b4c39ae1c551760fd087a508a71ee9541
Change -mno-mmx to be more compatible with gcc.  Specifically, -mno-mmx should not imply -mno-sse.

Note that because we don't usually touch the MMX registers anyway, all -mno-mmx needs to do is tweak the x86-32 calling convention a little for vectors that look like MMX vectors, and prevent the definition of __MMX__.

clang doesn't actually stop the user from using MMX inline asm operands or MMX builtins in -mno-mmx mode; as a QOI issue, it would be nice to diagnose, but I doubt it really matters much.

<rdar://problem/9694837>

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@134770 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Basic/Targets.cpp
lib/CodeGen/TargetInfo.cpp
test/CodeGen/x86_32-arguments-darwin.c
test/CodeGen/x86_32-arguments-linux.c
test/CodeGen/x86_32-arguments-nommx.c [new file with mode: 0644]
test/Sema/x86-builtin-palignr.c