Commit Graph

11 Commits

Author SHA1 Message Date
Gabor Buella be604857d3 [X86] NFC Include immintrin.h in CodeGen tests
Following r333110:
"Move all Intel defined intrinsic includes into immintrin.h"


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@333160 91177308-0d34-0410-b5e6-96231b3b80d8
2018-05-24 07:09:08 +00:00
Elad Cohen 1574e4336f [X86] Remove the mm_malloc.h include guard hack from the X86 builtins tests
The X86 clang/test/CodeGen/*builtins.c tests define the mm_malloc.h include
guard as a hack for avoiding its inclusion (mm_malloc.h requires a hosted
environment since it expects stdlib.h to be available - which is not the case
in these internal clang codegen tests).
This patch removes this hack and instead passes -ffreestanding to clang cc1.

Differential Revision: https://reviews.llvm.org/D24825



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@282581 91177308-0d34-0410-b5e6-96231b3b80d8
2016-09-28 11:59:09 +00:00
Eric Christopher f380392547 After PR28761 use -Wall with -Werror in builtins tests to identify
possible problems in headers.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@277696 91177308-0d34-0410-b5e6-96231b3b80d8
2016-08-04 06:02:50 +00:00
Simon Pilgrim 4f06dcbbb2 [X86][F16C] Improved f16c intrinsics checks
Added checks for upper elements being zero'd in scalar conversions

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@270836 91177308-0d34-0410-b5e6-96231b3b80d8
2016-05-26 10:20:25 +00:00
Ekaterina Romanova 06dd7db577 2 missing intrinsics _cvtss_sh and _mm_cvtps_ph were added to the intrinsics header f16intrin.h
Differential Revision: http://reviews.llvm.org/D16177



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@258492 91177308-0d34-0410-b5e6-96231b3b80d8
2016-01-22 06:50:50 +00:00
Simon Pilgrim 2ffb5d83d7 [X86][F16C] Stripped backend codegen tests
As discussed on the ml, backend tests need to be put in llvm/test/CodeGen/X86 as fast-isel tests using IR that is as close to what is generated here as possible.

The llvm tests will (re)added in a future commit

I will update PR24580 on this new plan

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@254847 91177308-0d34-0410-b5e6-96231b3b80d8
2015-12-05 10:37:35 +00:00
Eric Christopher 8a4f5c0475 Canonicalize some of the x86 builtin tests and either remove or comment
about optimization options.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@250271 91177308-0d34-0410-b5e6-96231b3b80d8
2015-10-14 05:40:21 +00:00
Simon Pilgrim 26c1265194 [X86] Reapplied r246204, r246206, r246211, r246223
(Re)added debug codegen test for F16C, FMA4, XOP + 3DNow! intrinsics

Part of PR24590

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@246363 91177308-0d34-0410-b5e6-96231b3b80d8
2015-08-29 17:13:40 +00:00
Renato Golin b493c7ede4 Revert "[X86][F16C] Added debug codegen test for F16C intrinsics"
This reverts commit r246204, as it was breaking all ARM/AArch64 bots.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@246319 91177308-0d34-0410-b5e6-96231b3b80d8
2015-08-28 19:34:53 +00:00
Simon Pilgrim c9e39be2aa [X86][F16C] Added debug codegen test for F16C intrinsics
Part of PR24590

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@246204 91177308-0d34-0410-b5e6-96231b3b80d8
2015-08-27 20:34:02 +00:00
Manman Ren 146e5a4a78 X86: add F16C support in Clang
Support the following intrinsics:
  _mm_cvtph_ps, _mm256_cvtph_ps, _mm_cvtps_ph, _mm256_cvtps_ph

rdar://12407875


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@165685 91177308-0d34-0410-b5e6-96231b3b80d8
2012-10-11 00:59:55 +00:00