2057 Commits

Author SHA1 Message Date
Lioncash
590388b9ec
fp/op/FPRoundInt: Add half-precision specialization of FPRoundInt 2019-04-13 17:37:45 -04:00
Merry
b34f42575d
Merge pull request #475 from lioncash/muladd
A64: Enable half-precision variants of floating-point multiply-add instructions
2019-04-13 14:30:03 +01:00
Merry
2218912292
A64/location_descriptor: Ensure FZ16 is included in the FPCR mask 2019-04-13 08:05:04 -04:00
Merry
9faf1bdfd4
Merge pull request #474 from lioncash/bracing
load_store_*: Make bracing consistent and variables const where applicable
2019-04-13 10:53:21 +01:00
Merry
5f351a669c
Merge pull request #473 from lioncash/sqshlu
A64: Implement SQSHLU
2019-04-13 08:31:17 +01:00
Lioncash
a935f35553
A64: Implement FMLA/FMLS' half-precision vector indexed variants 2019-04-13 02:19:06 -04:00
Lioncash
caaa04cba1
A64: Implement FMLA/FMLS' half-precision scalar indexed variants 2019-04-13 02:11:44 -04:00
Lioncash
894169dc7a
A64: Implement half-precision vector variants of FMLA/FMLS 2019-04-13 01:48:22 -04:00
Lioncash
278c7ae744
ir/frontend: Add half-precision opcode for FPVectorMulAdd 2019-04-13 01:42:35 -04:00
Lioncash
0eb6412c4d
A64: Enable half-precision floating point variants of FP data-processing three register instructions
This handles half-precision floating point for:

- FMADD
- FMSUB
- FNMADD
- FNMSUB
2019-04-13 01:35:32 -04:00
Lioncash
13b41525cb
frontend/ir_emitter: Add half-precision opcode for FPMulAdd 2019-04-13 00:18:09 -04:00
Lioncash
2ae0c4807a
fp/op/FPMulAdd: Add half-precision floating-point specialization 2019-04-13 00:07:34 -04:00
Lioncash
94ac9becda
load_store_*: Make bracing consistent and variables const where applicable
Makes bracing consistent, and variables const where applicable to be
consistent with the rest of the codebase.

In most bracing cases, they'd need to be added to conditionals that
would involve checking stack pointer alignment in the future anyways.
2019-04-12 23:51:36 -04:00
Lioncash
be3fc0f9ff
A64: Implement SQSHLU's scalar variant 2019-04-12 19:49:33 -04:00
Lioncash
508c77c3ee
A64: Implement SQSHLU's vector variant
The vector shift by immediate category is now fully implemented.
2019-04-12 19:45:20 -04:00
Lioncash
31867874de
frontend/ir_emitter: Add opcodes for signed saturated left shifts with unsigned saturation 2019-04-12 19:44:23 -04:00
Merry
5e77d110cc
Merge pull request #472 from lioncash/exception
general: Mark hash functions as noexcept
2019-04-12 21:33:47 +01:00
Merry
ed8c218076
Merge pull request #471 from lioncash/sqrdmulh
A64: Implement SQRDMULH's scalar vector variant
2019-04-12 20:29:22 +01:00
Lioncash
57629276c1
general: Mark hash functions as noexcept
Generally hash functions shouldn't throw exceptions. It's also a
requirement for the standard library-provided hash functions to not
throw exceptions.

An exception to this rule is made for user-defined specializations,
however we can just be consistent with the standard library on this to
allow it to play nicer with it.

While we're at it, we can also make the std::less specializations
noexcpet as well, since they also can't throw.
2019-04-12 15:27:28 -04:00
Merry
c963996e0b
Merge pull request #470 from lioncash/assert
general: Replace unreachable-imitating assertions with UNREACHABLE()
2019-04-12 20:14:18 +01:00
Merry
8ac3fb8df3
Merge pull request #469 from lioncash/void
A64/impl: Reorganize peculiar void use in V_scalar
2019-04-12 20:13:57 +01:00
Lioncash
f58406333a
A64: Implement SQRDMULH's scalar vector variant
Implements the scalar variant in terms of the vector variant for the
time being.
2019-04-12 15:05:53 -04:00
Lioncash
a5ca872208
general: Replace unreachable-imitating assertions with UNREACHABLE()
We can just use the self-documenting assertion for indicating
unreachable paths, instead of manually passing false and providing a
message.
2019-04-12 14:51:43 -04:00
Lioncash
d75af9d0e1
A64/impl: Reorganize peculiar void use in V_scalar
To a reader this might look particularly strange, given the function
itself has a void return value, but this is actually valid, given the
function in the return statement also has a void return value.

This instead alters it to be a little easier to parse and potentially be
a little less confusing at a glance.
2019-04-12 14:44:16 -04:00
Merry
4ed7009f24
Merge pull request #468 from lioncash/const
ir_opt: Mark locals as const where applicable
2019-04-12 19:15:32 +01:00
Merry
25039d02ff
Merge pull request #467 from lioncash/reserved
A64: Handle reserved instruction cases more specifically where applicable
2019-04-12 19:13:08 +01:00
Merry
5fdbb46008
Merge pull request #466 from lioncash/fcmla
A64: Implement FCMLA's indexed element variant
2019-04-12 08:15:05 +01:00
Lioncash
e244bf4f68
ir_opt/verification_pass: Mark locals as const where applicable
Makes our immutable state a little more explicit.
2019-04-11 18:30:30 -04:00
Lioncash
d02eef2fac
ir_opt/a64_callback_config_pass: Mark locals as const where applicable
Makes our immutable state a little more explicit.
2019-04-11 18:28:11 -04:00
Lioncash
38977fac33
ir_opt/a32_get_set_elimination_pass: Mark local variables as const where applicable
Makes our intended immutable state slightly more explicit.
2019-04-11 18:26:13 -04:00
Lioncash
e299e92698
ir_opt/a32_constant_memory_reads_pass: Apply const where applicable to locals
Makes immutable state just slightly more explicit.
2019-04-11 18:18:32 -04:00
Lioncash
0dca81d20f
A64: Handle reserved instruction cases more specifically where applicable
These are cases that are defined as reserved within the ARMv8 reference
manual, so we can handle them as such instead of as unallocated
encodings.

While this doesn't actually change emulated behavior, it does at least
allow the JIT to generate the more appropriate exception.
2019-04-11 17:47:28 -04:00
Lioncash
06e7e9fbef
A64: Implement FCMLA's indexed element variant
With this, all of the instructions introduced with ARMv8.3-CompNum have
an implementation.
2019-04-11 17:20:06 -04:00
Merry
c635591355
Merge pull request #465 from neobrain/master
CMakeLists: Allow importing dynarmic build trees into other CMake projects
2019-04-11 22:00:46 +01:00
Merry
3a2fc56e81
Merge pull request #464 from lioncash/uqshl
A64: Implement UQSHL (immediate)'s scalar variant
2019-04-11 21:29:03 +01:00
Tony Wasserka
fd4fa20834 CMakeLists: Allow importing dynarmic build trees into other CMake projects 2019-04-11 18:04:57 +02:00
Lioncash
b7a76d6967
simd_scalar_shift_by_immediate: Change UnallocatedEncoding() path in SaturatingShiftLeft to ReservedValue()
Strictly speaking, immh being zero is defined as reserved in the ARMv8
reference manual. This was just an error on my part when introducing the
SQSHL immediate scalar variant.
2019-04-10 15:20:11 -04:00
Lioncash
2769572231
A64: Implement UQSHL (immediate)'s scalar variant
Like SQSHL's immediate scalar variant, we can also implement UQSHL's
immediate scalar variant in terms of the vector variant for the time
being.
2019-04-10 15:12:57 -04:00
Lioncash
24479ecbe5
simd_scalar_shift_by_immediate: Migrate SQSHL implementation to file-scope function
This will allow it to be reused for the implementation of UQSHL.
2019-04-10 15:10:32 -04:00
Merry
2483b6b0dc
Merge pull request #463 from lioncash/sqshl
A64: Implement scalar variant of SQSHL (immediate)
2019-04-10 14:12:52 +01:00
Lioncash
fc729bee8c
A64: Implement scalar variant of SQSHL (immediate)
This can be handled in terms of the vector variant for the time being.
2019-04-09 10:13:14 -04:00
MerryMage
0bcc47a71c README: Update README 2019-04-06 10:56:21 +01:00
Merry
cbeb5c9929
Merge pull request #462 from lioncash/undef
{common/fp, backend/x64}: Prevent undefined left shifts where applicable
2019-04-02 17:22:35 +01:00
Lioncash
06ac561e1c
backend/x64/emit_x64_vector: Prevent undefined behavior within VectorSignedSaturatedShiftLeft
Avoids undefined behavior by potentially left-shifting a signed negative
value.
2019-04-01 19:53:48 -04:00
Lioncash
f4d63ff07d
common/fp/op/FPRecipExponent: Prevent undefined behavior from shifting a negative value
Due to promotion rules (types < int, even if unsigned, get promoted to
int when arithmetic is performed on them), this is a potential spot for
undefined behavior.
2019-04-01 19:51:52 -04:00
Lioncash
89581c0c8c externals/fmt: Update fmt to 5.3.0 2019-03-29 16:34:24 +00:00
Lioncash
8f92310698 externals/xbyak: Update xbyak to 5.77
Keeps the external library up to date.
2019-03-29 16:24:22 +00:00
Merry
b52a9da924
Merge pull request #459 from lioncash/catch
externals: Update catch to 2.7.0
2019-03-28 14:42:02 +00:00
Lioncash
64bbe05fa6 Squashed 'externals/fmt/' changes from 3e75ad98..9e554999
9e554999 Update version
b34d92b0 Bump version
d39ece18 Make rst2md runnable and update changelog
fe2d715f Update changelog
27b30670 Update changelog
68837079 Update changelog
c98b202e Update changelog
587a7f66 Update changelog and docs
84e5170c Update changelog and deprecate visit
130e412b Update changelog and docs
0bbdca5b Fix conversion warnings (#989)
77a72448 Implement fill/align/width for strftime-like formatting
3e01376e Implement fill/align/width parsing in chrono formatter
1f92f8a9 Remove noexcept
8668639a Get rid of null_terminating_iterator in format
93fd473b Add support for builtin terminal colors. (#974)
61ad543c Windows .sln filename changed from FORMAT to FMT
7f7504b3 Clean up docs
37f599b1 Fix docs
8c2e15ae Make printf work in search (#164)
de71db6d Fix asan error (#977)
b180b391 Fix default formatting
24594c74 Disable printing the reset escape code when no style modifiers where applied. (#973)
b0f22247 Implement default chrono formatting
74927607 Add file stream support for stylized text printing. (#967)
f54f3d0f Move chrono-specific code to a separate header
bf1f1c73 Fix time test
b6bc6ec2 Add default ctor and fix use of constexpr macros in text_style
acfa95d4 Workaround a bug in MSVC's strftime (#965)
628f8305 More chrono formatting
aa3b5aba Implement locale-specific minute formatting
639de217 Workaround more MSVC bugs
3242ddf7 Fix warnings
bd110404 Workaround a bug in MSVC
81b5c4a5 Add experimental emphasis support (#961)
7c4eb0fb Fix warnings in time.h
2d624218 Fix another warning
b3168099 Fix a warning
b10ccb83 Add rpclib to projects
0497875f Stop the orgy of casts
37dc495b Simplify MSVC workaround
2ff4996d Fix ambiguous complier error C2666 in vs2017.The '+' opeator may cause ambiguity.Avoid implicit conversion.
77656c67 Fix sign-conversion warnings reported by Clang7
ea5e4790 Fix formatting
86681c4b Update README.rst
e867768e Do not override user provided compile flag
0c7f5c3c Update README.rst
e7e2ab10 Make return type of basic_format_args::max_size() consistent.
29352af3 Update README.rst
68214bd9 More time formatting
bcf3fcd6 Clean up bit fiddling for argument packing
9dcf127f Workaround a bogus MSVC warning
b8b06e3e Fix conversion warnings in Grisu
322b2594 Implement more time specifiers
0835f1ba Use full paths for fmt.pc.in
a084495d Add Ceph to projects
fa1d4dbc Fix warnings
2b2cfdac Update docs
99744f8f Suppress unfixable warning
f5fe8492 Specialize formatter for chrono durations
a5a9805a First stub at the datetime format parser
645c76a9 Fix dummy warnings
fecb2d6f Eliminate msvc compiler warnings (#931)
64690d3a Add context_base::arg()
01640f44 Fully qualify dummy_int (#941)
e37d6a98 add make_printf_args and make_wprintf_args functions (#934)
982ee5c6 parse_context -> format_parse_context
b7b85485 thousands_sep -> thousands_sep_impl (#939)
00a8cc83 Fix formatting
33fbb3a7 Fix remaining linker errors.
bd612159 Disable fmt-impl-test in windows + shared lib.
702b3d16 Fix link error in windows with shared library.
9d4ef943 Install pdb files.
6c95fb35 Default Context to format_context
16b78ee6 fix incompatibilities with c++2a mode in clang
19e00887 More locale support
f2ee9881 Improve locale support
1385050e More formatter tests
03c1b110 Fix gcc 4.4 build
cc805c61 Test enabled formatters
e0157923 Disallow leading zeros in arg-id
34030dec Cleanup warning flags
6b26e3f2 Manifest & Gradle comment
d286c977 Update for Gradle build
d951f6df Get latest Gradle (ver. 4.10.2)
a23d5924 Fix check_format_string (#925)
36161284 Update docs
38f355d8 Revert "find sphinx-build before calling build.py"
324eac1a Make locales work with any character type
bdda4d60 Simplify compile-time strings
5ee1a4bc check for property 'mutable iterator' and SFINAE on it
2dea780f change type naming and fix sfinae bug
b98e8301 add non-char support for compile-time format check
ccd3e8bb Make is_constructible public (#918)
43731538 Update usage.rst
73cfd8f3 Fix colored print
ec384302 additional test for print with background color
0a96c032 Parameterize v*printf on string type (#920)
61e6d2e3 Fix core version of vformat_to
ea4010d7 Merge has_to_string_view into is_string
486fff59 Add sprintf_format instantiations and remove syntactic noise
1e3dcbba fix: 'format_to_n' compiles 'std::back_inserter' arguments
f0328f8e Use char_traits::length in string_view ctor (#914)
895fb984 Disallow gcc 4.4 failures
20c708bf Fix build on gcc 4.4
9d0c9c4b cmake: output share/fmt.pc
2d2326a7 Fix compilation with older gcc
1ec02723 Get rid of FMT_UNION
2c81c851 Adapt any string-like type to be used by {fmt} just like the standard string types already supported. The adaption is totally non-intrusive.
846c644e Workeround broken sprintf in MSVC
13d472bd Compute output size for grisu
b71d3fe7 Remove use_grisu
847abb6f Fix test
dda47c94 Merge min_digits and max_digits
29246221 Fix naming of basic_format_specs members
bda5f9a5 Replace grisu2_specs with core_format_specs
b1ca608b Remove unused empty_spec
e8efdef8 Avoid extra copy
98f1c1fe Remove unused code
50b18a3c Integrate Grisu
69929752 Implement Grisu rounding
4bb76ef0 Remove redundant definition of print
ddd7caf3 Fix locale-dependent formatting (#905)
10e03e69 use found python executable for launching sphinx-build
07200f44 find sphinx-build before calling build.py
08a65c22 Workaround broken constexpr in MSVC2017
167f8fe3 Fix a typo in api.rst
57983423 Remove signbit workaround
7bebb3e1 Clarify overload resolution in docs
939fbe55 Remove basic_fixed_buffer.
61f81a07 minor documentation corrections
f27defc6 Parameterize printf functions on the type of the format string.
6a685571 Make 'std::*::basic_string_view' a valid argument type for 'format_str' parameters.
87a0408c Fix ostream.h build
2b5acad4 Remove redundant size argument to write_padded
655ce533 is_format_string -> is_string
fea712ab Parameterize ostream functions on the type of the format string.
f16a118e Fix non-matching char types.
041bf83d Improve fmt::format readability
22990323 Document how to write a formatter for a type hierarchy
f5480635 visit -> visit_format_arg
cdf3fa08 Put related code together in fmt/core.h
38325248 Count width in code points (#628)
deb901b9 Parameterize core functions on the type of the format string.
0f98de30 Update docs
c797708f Workaround strlen being non-constexpr in ARM toolchain
49b4c1e9 Update docs
63a87beb Add to_string_view
4e0c3146 checked_format_args -> checked_args
c3538a1e Simplify variadic functions further
2d7d0835 Simplify variadic functions
3f4cfa6c Implement UTF-8 string support
f8027414 Impelement char8_t support
76a47d41 Cleanup the use of FMT_CHAR
267fdc7a Parameterize core functions on the type of the format string.
5bced124 Parameterize more functions on string type
674999c5 fix vs2017 warning fmt::v5::localtime 'not all control paths return a value'.
e4fea22d Make char8_t a strongly-typed enum
66992e90 Clarify that writing to memory_buffer appends (#877)
e864acfd Fix compilation with intel compilers (ICC/ICPC) v14.0
4cf21f58 constrain templated format_to on proper format string type.
d7f17613 Fix compilation on platforms with exotic double (#878)
e4ca37cc Parameterize format_to on string type (#880)
d66fa221 Reduce syntactic noise
48e6dcd0 Implement workarounds for gcc 4.4
0ea3221d Remove is_named_arg and add FMT_CHAR
73c53d78 Parameterize 'printf(rgb color, ...)' and 'vprint_rgb(rgb color, ...)' on the type of the format string.
d41be23a Simplify string_view detection
2def9e4c Remove FMT_DTOR_NOEXCEPT
ff6e46ed More cleanup
715f2b4c Remove require_wchar and internalize no_formatter_error
ec0cdc46 Workaround Windows slowness

git-subtree-dir: externals/fmt
git-subtree-split: 9e554999ce02cf86fcdfe74fe740c4fe3f5a56d5
2019-03-24 14:24:09 -04:00
Lioncash
1957180595 Squashed 'externals/xbyak/' changes from f72646a7..4a6fac8a
4a6fac8a update version to 5.77
801cf3fd cosmetic change of getNumCores
d397e824 fix number of cores that share LLC cache
a669e092 support non-intel-cpu visual studio
af5f422e Merge branch 'fenghaitao-guard_x86' into develop
9b98dc17 Guard x86 specific codes with "#if defined(__i386__) || defined(__x86_64__)"
dd4173e1 move some member variables input private

git-subtree-dir: externals/xbyak
git-subtree-split: 4a6fac8ade404f667b94170f713367fe7da2a852
2019-03-24 14:20:49 -04:00