llvm-project/clang/test/Frontend
Leonard Chan a677942d8a [Fixed Point Arithmetic] Fixed Point Constant
This patch proposes an abstract type that represents fixed point numbers, similar to APInt or APSInt that was discussed in https://reviews.llvm.org/D48456#inline-425585. This type holds a value, scale, and saturation and is meant to perform intermediate calculations on constant fixed point values.

Currently this class is used as a way for handling the conversions between fixed point numbers with different sizes and radixes. For example, if I'm casting from a signed _Accum to a saturated unsigned short _Accum, I will need to check the value of the signed _Accum to see if it fits into the short _Accum which involves getting and comparing against the max/min values of the short _Accum. The FixedPointNumber class currently handles the radix shifting and extension when converting to a signed _Accum.

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

llvm-svn: 339028
2018-08-06 16:42:37 +00:00
..
Inputs Move test input file into same directory as test. NFC 2018-05-08 00:29:21 +00:00
Weverything.c
Wno-everything.c
aarch64-target-cpu.c [AArch64] Vulcan is now ThunderXT99 2017-03-07 21:24:53 +00:00
absolute-paths.c Add support for -fdiagnostics-absolute-paths: printing absolute paths in diagnostics 2016-08-26 15:45:36 +00:00
ast-codegen.c Recommit r324107 again. 2018-02-07 22:15:33 +00:00
ast-main.c
ast-main.cpp
backend-diagnostic.c
cc1-return-codes.c
clang-abi-compat.cpp Make test/Frontend/clang-abi-compat.cpp pass when the version goes to 8 2018-08-01 13:19:14 +00:00
compiler-options-dump.cpp Add a new driver mode to dump compiler feature and extension options. 2018-05-31 13:57:09 +00:00
cpp-output.c
darwin-eabi.c
darwin-version.c Allow iOS and tvOS version numbers with 2-digit major version numbers. 2016-07-18 20:29:14 +00:00
dependency-gen-escaping.c clang/test/Frontend/dependency-gen-escaping.c: Appease win32 hosts. Investigating. 2015-05-14 07:37:35 +00:00
dependency-gen-extradeps-phony.c Fix emission of phony dependency targets when adding extra deps 2018-05-29 13:07:58 +00:00
dependency-gen-symlink.c Track skipped files in dependency scanning. 2018-05-01 23:59:33 +00:00
dependency-gen.c Move test input file into same directory as test. NFC 2018-05-08 00:29:21 +00:00
dependency-generation-crash.c Fix typo in my last commit. 2015-03-03 00:12:08 +00:00
diagnostics-option-names.c
diagnostics-order.c [VerifyDiagnosticConsumer] support -verify=<prefixes> 2017-12-16 02:23:22 +00:00
disable-output.c
embed-bitcode.ll Change embed-bitcode linkage type 2016-05-16 18:54:58 +00:00
exceptions.c
fixed_point.c [Fixed Point Arithmetic] Fixed Point Precision Bits and Fixed Point Literals 2018-06-20 17:19:40 +00:00
fixed_point_bit_widths.c [Fixed Point Arithmetic] Fixed Point Precision Bits and Fixed Point Literals 2018-06-20 17:19:40 +00:00
fixed_point_declarations.c [Fixed Point Arithmetic] Fixed Point Constant 2018-08-06 16:42:37 +00:00
fixed_point_errors.c [Fixed Point Arithmetic] Fix for bug where integer literals could be treated as fixed point literals 2018-07-17 14:58:49 +00:00
fixed_point_errors.cpp [Fixed Point Arithmetic] Fix for bug where integer literals could be treated as fixed point literals 2018-07-17 14:58:49 +00:00
fixed_point_not_enabled.c [Fixed Point Arithmetic] Fix for bug where integer literals could be treated as fixed point literals 2018-07-17 14:58:49 +00:00
fixed_point_same_fbits.c [Fixed Point Arithmetic] Rename `-fsame-fbits` flag 2018-06-29 17:08:19 +00:00
fixed_point_to_string.c [Fixed Point Arithmetic] Fix for FixedPointValueToString 2018-08-06 16:05:08 +00:00
float16.cpp Re-commit r321223, which adds a printing policy to the ASTDumper. 2017-12-21 21:42:42 +00:00
force-include-not-found.c Add back null check removed accidentally in r250554 2015-10-20 18:45:57 +00:00
ftime-report-template-decl.cpp Improve checks in test/Frontend/ftime-report-template-decl.cpp 2018-04-23 18:05:35 +00:00
gnu-inline.c Don't accept -std= values that would switch us to a different source language. 2017-04-26 23:44:33 +00:00
gnu-mcount.c Always use __mcount on NetBSD. Some platforms don't provide _mcount. 2018-07-17 13:13:34 +00:00
hexagon-target-basic.c
iframework.c Add -iframeworkwithsysroot compiler option 2017-03-13 11:17:41 +00:00
include-duplicate-removal.c [Frontend] Fix an issue where a quoted search path is incorrectly 2016-12-02 09:51:51 +00:00
int128.cpp Provide __GLIBCXX_TYPE_INT_N_0 and __GLIBCXX_BITSIZE_INT_N_0 when in C++ gnu language extensions. 2016-07-21 07:44:41 +00:00
invalid-o-level.c
ir-support-codegen.ll
ir-support-errors.ll
ir-support.c
lit.local.cfg [OpenCL] Actually activate Frontend/opencl.cl test and fix test bugs 2016-07-14 12:56:21 +00:00
macros.c
mfpmath.c
mips-long-double.c
nostdlib-for-asmpp.s [frontend] Don't include the C++ stdlib for -x assembler-with-cpp 2018-06-28 23:23:45 +00:00
objc-bool-is-bool.m [Frontend] The macro that describes the Objective-C bool type should 2017-01-20 16:48:25 +00:00
opencl.cl [OpenCL] Added -std/-cl-std=c++ 2018-04-12 14:17:04 +00:00
optimization-remark-analysis.c Add backend dignostic printer for unsupported features 2016-02-02 13:52:52 +00:00
optimization-remark-extra-analysis.c Fix ClangDiagnosticHandler::is*RemarkEnabled members 2017-09-19 17:59:40 +00:00
optimization-remark-line-directive.c Stop messing with the 'g' group of options in CompilerInvocation. 2015-10-08 04:24:12 +00:00
optimization-remark-options.c [ValueTracking] Enabling ValueTracking patch by default (recommit). Part 1. 2017-08-10 11:22:52 +00:00
optimization-remark-with-hotness.c Fix tests for changed opt remarks format 2018-08-05 14:53:34 +00:00
optimization-remark.c [clang] Fix tests for Emitting Single Inline Remark 2017-08-21 16:40:35 +00:00
output-failures.c
plugin-annotate-functions.c Add a PragmaHandler Registry for plugins to add PragmaHandlers to 2016-04-04 14:22:58 +00:00
plugin-delayed-template.cpp Don't leak TemplateIds when a plugin parses late-parsed templates at TU end. 2015-05-17 01:07:16 +00:00
plugin-vs-debug-info.cpp Give this test that uses Itanium mangling a triple 2016-11-30 00:31:16 +00:00
plugins.c Revert r260266 (and r260276), "clang-cl: Enable plugins on Windows" 2016-02-11 16:43:08 +00:00
pp-only-no-editor-placeholders.c [PR33394] Avoid lexing editor placeholders when Clang is used only 2017-06-16 20:13:39 +00:00
preprocessed-input.i Use filename in linemarker when compiling preprocessed source (Revised) 2017-03-07 20:20:23 +00:00
preprocessed-output-macro-first-token.c
print-header-includes.c [clang-cl] Print /showIncludes to stderr, if used in combination with /E, /EP or /P 2018-05-04 15:58:31 +00:00
profile-sample-use-loc-tracking.c Use NoDebug compile units to mark debug metadata used only for sample-based 2016-04-08 22:43:06 +00:00
region-pragmas.c Always allow "#pragma region". 2018-01-27 00:25:29 +00:00
remove-file-on-signal.c [Support] Use FILE_SHARE_DELETE to fix RemoveFileOnSignal on Windows 2017-08-04 21:52:00 +00:00
rewrite-includes-bom.c
rewrite-includes-cli-include.c
rewrite-includes-eof.c
rewrite-includes-filenotfound.c PR32848: There isn't necessarily a FileChanged or FileSkipped for every InclusionDirective callback. 2017-06-02 01:05:44 +00:00
rewrite-includes-header-cmd-line.c
rewrite-includes-invalid-hasinclude.c
rewrite-includes-line-markers.c PR26771: don't forget the " 2" (returning from #included file) linemarker after including an empty file with -frewrite-includes. 2017-04-29 00:54:03 +00:00
rewrite-includes-messages.c Use POSIX argument syntax in test rewrite-includes-messages.c 2018-01-04 23:03:48 +00:00
rewrite-includes-missing.c
rewrite-includes-modules.c Add pragma to perform module import and use it in -E output. 2017-04-29 00:34:47 +00:00
rewrite-includes-warnings.c
rewrite-includes.c Fix evaluation of `__has_include_next` during -frewrite-includes. 2018-04-13 17:43:15 +00:00
rewrite-macros.c
source-col-map.c This test requires UTF-8 output to print the UT-8 characters. 2015-09-11 13:29:12 +00:00
stats-file.c CC1: Add -save-stats option 2016-09-26 18:53:34 +00:00
stdin.c
stdlang.c [OpenCL] Added -std/-cl-std=c++ 2018-04-12 14:17:04 +00:00
system-header-line-directive-ms-lineendings.c Remove .gitattributes, add comment to lineendings. 2017-08-24 23:25:05 +00:00
system-header-line-directive.c Add test coverage for recent behavior change in GNU line marker pre-processing 2017-05-23 16:09:13 +00:00
system-header-prefix.c
trigraphs.cpp
undef.c
unknown-arg.c [Driver] Suggest correctly spelled driver options 2018-01-06 00:25:40 +00:00
unknown-pragmas.c
verify-directive.h
verify-fatal.c
verify-ignore-unexpected.c Add `-verify-ignore-unexpected` option to ignore unexpected diagnostics in VerifyDiagnosticsConsumer 2015-06-13 07:11:40 +00:00
verify-prefixes.c [VerifyDiagnosticConsumer] support -verify=<prefixes> 2017-12-16 02:23:22 +00:00
verify-unknown-arg.c
verify.c
verify2.c
verify2.h
verify3.c
warning-mapping-1.c
warning-mapping-2.c
warning-mapping-3.c
warning-mapping-4.c
warning-mapping-5.c
warning-options.cpp
warning-stdlibcxx-darwin.cpp Recommit r335063: [Darwin] Add a warning for missing include path for libstdc++ 2018-06-19 22:47:53 +00:00
windows-exceptions.cpp [Frontend] Disallow non-MSVC exception models for windows-msvc targets 2018-06-07 22:54:54 +00:00
windows-nul.c
x86-target-cpu.c [X86] Split up -march=icelake to -client & -server 2018-04-10 18:58:26 +00:00
x86_64-nacl-types.cpp