llvm-project/clang/test
Leonard Chan ab80f3c8b7 [Fixed Point Arithmetic] Addition of the remaining fixed point types and their saturated equivalents
This diff includes changes for the remaining _Fract and _Sat fixed point types.

```
signed short _Fract s_short_fract;
signed _Fract s_fract;
signed long _Fract s_long_fract;
unsigned short _Fract u_short_fract;
unsigned _Fract u_fract;
unsigned long _Fract u_long_fract;

// Aliased fixed point types
short _Accum short_accum;
_Accum accum;
long _Accum long_accum;
short _Fract short_fract;
_Fract fract;
long _Fract long_fract;

// Saturated fixed point types
_Sat signed short _Accum sat_s_short_accum;
_Sat signed _Accum sat_s_accum;
_Sat signed long _Accum sat_s_long_accum;
_Sat unsigned short _Accum sat_u_short_accum;
_Sat unsigned _Accum sat_u_accum;
_Sat unsigned long _Accum sat_u_long_accum;
_Sat signed short _Fract sat_s_short_fract;
_Sat signed _Fract sat_s_fract;
_Sat signed long _Fract sat_s_long_fract;
_Sat unsigned short _Fract sat_u_short_fract;
_Sat unsigned _Fract sat_u_fract;
_Sat unsigned long _Fract sat_u_long_fract;

// Aliased saturated fixed point types
_Sat short _Accum sat_short_accum;
_Sat _Accum sat_accum;
_Sat long _Accum sat_long_accum;
_Sat short _Fract sat_short_fract;
_Sat _Fract sat_fract;
_Sat long _Fract sat_long_fract;
```

This diff only allows for declaration of these fixed point types. Assignment and other operations done on fixed point types according to http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1169.pdf will be added in future patches.

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

llvm-svn: 334718
2018-06-14 14:53:51 +00:00
..
ARCMT [ObjC] Allow declaring __strong pointer fields in structs in Objective-C 2018-02-28 07:15:55 +00:00
ASTMerge [ASTImporter] FriendDecl importing improvements 2018-04-25 17:28:03 +00:00
Analysis [analyzer] Re-enable C++17-specific RVO construction contexts. 2018-06-14 01:59:35 +00:00
CXX [Sema] Use %sub to cleanup overload diagnostics 2018-05-30 01:00:41 +00:00
CodeCompletion [CodeComplete] Add a few extra tests for r333538. NFC 2018-06-01 09:49:53 +00:00
CodeGen [AArch64] reverting rC334693 due to build failures 2018-06-14 08:59:33 +00:00
CodeGenCUDA [CUDA][HIP] Allow CUDA __global__ functions to have amdgpu kernel attributes 2018-06-12 23:58:59 +00:00
CodeGenCXX Add -fforce-emit-vtables 2018-06-13 13:55:42 +00:00
CodeGenCoroutines [coroutines] Pass implicit object parameter to promise ctor (fix BUG37604) 2018-05-28 18:08:47 +00:00
CodeGenObjC [CodeGen] Always use MSVC personality for windows-msvc targets 2018-06-08 00:41:01 +00:00
CodeGenObjCXX [CodeGen] Always use MSVC personality for windows-msvc targets 2018-06-08 00:41:01 +00:00
CodeGenOpenCL [AMDGPU] fixes for lds f32 builtins 2018-05-21 16:18:07 +00:00
Coverage Reapply "[Parse] Use CapturedStmt for @finally on MSVC" 2018-06-08 00:30:00 +00:00
CoverageMapping [Coverage] Remove a test dependency on the itanium ABI 2018-06-01 17:11:18 +00:00
Driver [PowerPC] The __float128 type should only be available on Power9 2018-06-13 16:05:05 +00:00
FixIt [Parser][FixIt] Better diagnostics for "typedef" instead of "typename" typo 2018-02-08 14:37:58 +00:00
Format [clang-format] Fix bug where -dump-config failed on ObjC header 2018-01-29 17:36:43 +00:00
Frontend [Fixed Point Arithmetic] Addition of the remaining fixed point types and their saturated equivalents 2018-06-14 14:53:51 +00:00
Headers [X86] Reduce the number of setzero intrinsics to just the set defined by the Intel Intrinsics Guide. 2018-05-30 18:02:11 +00:00
Import [ASTImporter] Properly import SourceLocations of Attrs 2018-05-08 12:45:21 +00:00
Index [libclang] Optionally add code completion results for arrow instead of dot 2018-06-13 12:37:08 +00:00
Integration
Layout [Sema] Fix incorrect packed aligned structure layout 2018-05-21 14:28:43 +00:00
Lexer P0096R5, P0941R2: Update to match latest feature test macro specification. 2018-06-14 00:40:20 +00:00
Misc Fix test failure after r333485. Try 2. 2018-05-30 02:20:40 +00:00
Modules Change return value of trivial visibility check. 2018-06-07 03:20:30 +00:00
OpenMP [OPENMP, NVPTX] Fixed codegen for orphaned parallel region. 2018-05-25 20:16:03 +00:00
PCH Reapply "[Parse] Use CapturedStmt for @finally on MSVC" 2018-06-08 00:30:00 +00:00
Parser Reapply "[Parse] Use CapturedStmt for @finally on MSVC" 2018-06-08 00:30:00 +00:00
Preprocessor [PowerPC] The __float128 type should only be available on Power9 2018-06-13 16:05:05 +00:00
Profile
Refactor
Rewriter Reapply "[Parse] Use CapturedStmt for @finally on MSVC" 2018-06-08 00:30:00 +00:00
Sema [PowerPC] The __float128 type should only be available on Power9 2018-06-13 16:05:05 +00:00
SemaCUDA [CUDA][HIP] Allow CUDA __global__ functions to have amdgpu kernel attributes 2018-06-12 23:58:59 +00:00
SemaCXX Simplify test from r334650 2018-06-13 20:47:12 +00:00
SemaObjC Reapply "[Parse] Use CapturedStmt for @finally on MSVC" 2018-06-08 00:30:00 +00:00
SemaObjCXX Improve diagnostics and error recovery for template name lookup. 2018-05-11 02:43:08 +00:00
SemaOpenCL [CUDA][HIP] Allow CUDA __global__ functions to have amdgpu kernel attributes 2018-06-12 23:58:59 +00:00
SemaOpenCLCXX [OpenCL] Support new/delete in Sema 2018-06-14 09:51:54 +00:00
SemaTemplate PR37680: fix faulty assertion condition. 2018-06-06 16:36:56 +00:00
TableGen [Clang Tablegen][RFC] Allow Early Textual Substitutions in `Diagnostic` messages. 2018-05-19 03:12:04 +00:00
Templight [Templight] Template Instantiation Observer 2018-02-10 14:04:45 +00:00
Tooling Fix test clang-diff-json.cpp 2018-02-10 21:28:55 +00:00
Unit
VFS [vfs] Don't bail out after a missing -ivfsoverlay file 2018-03-23 17:37:27 +00:00
clang-rename
.clang-format
CMakeLists.txt [ThinLTO/CFI] Include TYPE_ID summaries into GLOBALVAL_SUMMARY_BLOCK 2018-02-14 22:41:15 +00:00
TestRunner.sh
cxx-sections.data
lit.cfg.py [Clang Tablegen][RFC] Allow Early Textual Substitutions in `Diagnostic` messages. 2018-05-19 03:12:04 +00:00
lit.site.cfg.py.in Remove unused lit setting, see https://reviews.llvm.org/D46619 2018-05-09 12:38:51 +00:00
make_test_dirs.pl