]> granicus.if.org Git - clang/commit
Add 3dNOW intrinsic header to x86intrin.h, conditioned on __3dNOW__ to
authorChandler Carruth <chandlerc@gmail.com>
Mon, 20 Feb 2012 07:35:45 +0000 (07:35 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Mon, 20 Feb 2012 07:35:45 +0000 (07:35 +0000)
commit345032a7211a6f983d59c30c0b3fa2b96819532a
treed140f7a3b6e00b79d8805e232b5843e5ecc9171e
parent19562c97669532084a71895197f4444305dd432a
Add 3dNOW intrinsic header to x86intrin.h, conditioned on __3dNOW__ to
match the behavior of GCC. Also add a test for these intrinsics, which
apparently have *zero* tests. =[ Not surprisingly, Clang crashed when
compiling these.

Fix the bug in CodeGen where we failed to bitcast the argument type to
x86mmx prior to calling the LLVM intrinsic. This fixes an assert on the
new 3dnow-builtins.c test.

This is one issue impacting the efforts to get Clang to emulate the
Microsoft intrinsics headers -- 3dnow intrinsics are implictitly made
available there.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@150948 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGBuiltin.cpp
lib/Headers/x86intrin.h
test/CodeGen/3dnow-builtins.c [new file with mode: 0644]