summaryrefslogtreecommitdiff
path: root/Source/UnitTests/Common
AgeCommit message (Collapse)Author
2016-04-03MathUtilTest: Fix tests on MSVC - Document compiler bugLioncash
MSVC's implementation of numeric_limits currently generates incorrect signaling NaNs. The resulting values are actually quiet NaNs instead. This commit is based off of a solution by shuffle2. The only difference is a template specialization for floats is also added to cover all bases
2015-09-06General: Replace GC_ALIGN macros with alignasLioncash
Standard supported alignment -> out with compiler-specific.
2015-09-03CommonFuncs: Replace ArraySize define with constexpr equivalentLioncash
2015-08-21MathUtil: Remove IsNAN and IsINFLioncash
These aren't necessary, since the stdlib provides equivalents.
2015-08-06x64Emitter: add MOVSLDUP/MOVSHDUPTillmann Karras
2015-06-14Revert "x64: build a Position-Independent Executable (PIE)"Matthew Parlane
2015-06-06Merge pull request #2496 from Tilka/fma4flacs
Jit64: add FMA4 support to fmaddXX
2015-06-03MemoryUtil: get executable pages near static dataTillmann Karras
and clean up a bit.
2015-06-02XEmitter: add FMA4 instructionsTillmann Karras
2015-05-30Unittests: Add BlockingLoopTestdegasus
2015-05-25Update license headers to GPLv2+Tillmann Karras
2015-05-18Merge pull request #2417 from Tilka/vexFiora
XEmitter: VEX-related cleanup I'm merging this solely because of the FMA3 error message
2015-05-17XEmitter: restructure WriteVEXOp wrappersTillmann Karras
2015-05-17Reset faked CPU extension support at test end to ensure test isolation.yerejm
2015-03-18XEmitter: add PUNPCKLQDQTillmann Karras
2015-03-01Fix include order of files outside of Source/CoreTillmann Karras
2015-01-18XEmitter: overload MOVBE()Tillmann Karras
2015-01-07x64Emitter: add MOVLPS/MOVHPSTillmann Karras
2015-01-07x64Emitter: fix MOVLPD/MOVHPDTillmann Karras
These instructions were using the wrong prefix which turned MOVLPD(reg, mem) into MOVDDUP(reg, mem) and made the rest of them invalid.
2014-12-06UnitTests: add tests for bitwise AVX instructionsTillmann Karras
2014-12-06UnitTests: fix register symbol name in AVX testsTillmann Karras
2014-10-25Add unit test.comex
2014-10-07X64Emitter: add unit test for FMAFiora
2014-09-14Merge pull request #1083 from FioraAeterna/lzcntRyan Houdek
Add LZCNT support, use in cntlzw
2014-09-14x64Emitter: add LZCNT/TZCNT support and detectionFiora
Also add a unit test.
2014-09-13UnitTests: Fix misplaced braces in the x64Emitter testsLioncash
2014-09-13Add immediate tests for WriteNormalOpFiora
also fix a bug in Bochs that was preventing adc from passing.
2014-09-08Rename Log2 and add IsPow2 to MathUtils for future useFiora
Also remove unused pow2/pow2f functions.
2014-09-05Revert "JIT64: optimize CA calculations"Fiora
2014-09-05Merge pull request #852 from FioraAeterna/optimizecacomex
JIT64: optimize CA calculations
2014-09-03x64Emitter: add BMI1/BMI2 supportFiora
TZCNT and LZCNT use a completely different encoding scheme, so they should probably go in a separate patch. Also add some tests.
2014-09-03x64EmitterTest: Fake support for all CPU extensionsPierre Bourdon
2014-09-02UnitTests: Add tests for the x64EmitterPierre Bourdon
2014-09-01msvc: get UnitTests compilingShawn Hoffman
Choose it from VS or pass /p:RunUnitTests=true to msbuild
2014-09-01Rename Log2 and add IsPow2 to MathUtils for future useFiora
Also remove unused pow2/pow2f functions.
2014-09-01unittests: correct some integers which should have been floating point typesShawn Hoffman
2014-08-07Fix more warnings from #579Tillmann Karras
2014-08-02UnitTests: make it possible to build tests for code that has global dependenciesPierre Bourdon
2014-07-15Fix incorrect clamping in SWRenderer.Scott Mansell
A previous PR changed a whole lot of min/maxes to std::min/std::max but made a mistake here and used a templated min which cast it's arguments to unsigned instead of casting return value. This resulted in glitchy artifacts in bright areas (See issue 7439) I rewrote the code to use a proper clamping function so it's cleaner to read.
2014-05-29Remove the min/max functions in CommonFuncs.Lioncash
The algorithm header has the same functions.
2014-04-19BitFieldTest: fix warningsTillmann Karras
2014-04-14Merge pull request #271 from delroth/threading-stuffPierre Bourdon
Threading improvements: add Common::Flag and improve Common::Event
2014-04-14Common::Flag: Add support for TestAndSet + test by implementing basic spinlocks.Pierre Bourdon
2014-04-14UnitTests: Add a test for BitField behavior on odd structure alignment.Tony Wasserka
2014-04-14Common: Move the Event class to a separate file, and add tests for it. Fix ↵Pierre Bourdon
includes everywhere to match this.
2014-04-14Common: Add a 'Flag' class that is used to encapsulate a boolean flag ↵Pierre Bourdon
manipulated from several threads
2014-03-25UnitTests: Add tests for BitField.Tony Wasserka
2014-03-24MathUtilTest: add test for FlushToZeroTillmann Karras
2014-03-17Tests: fix signed/unsigned comparison warningTillmann Karras
2014-03-09MathUtil: fix IsQNAN()Tillmann Karras
The constants were one nibble too short and the lower 51 bits don't actually have to be zero.