diff options
author | Emilio G. Cota <cota@braap.org> | 2018-09-08 16:59:37 -0400 |
---|---|---|
committer | Emilio G. Cota <cota@braap.org> | 2018-09-08 16:59:44 -0400 |
commit | ca9fa2ba05625ba929958f163b01747e07dd39cc (patch) | |
tree | 314b3f11308378d73f0d16debb295fe48ba53502 /source/testfloat.c | |
parent | 06b20075dd3c1a5d0dd007a93643282832221612 (diff) | |
download | berkeley-testfloat-3-ca9fa2ba05625ba929958f163b01747e07dd39cc.zip berkeley-testfloat-3-ca9fa2ba05625ba929958f163b01747e07dd39cc.tar.gz berkeley-testfloat-3-ca9fa2ba05625ba929958f163b01747e07dd39cc.tar.bz2 |
testLoops: add testLoops_trueFlagsFunction
Instead of using *trueFlagsPtr. This will allow us to test
code paths that depend on certain flags already being set.
Signed-off-by: Emilio G. Cota <cota@braap.org>
Diffstat (limited to 'source/testfloat.c')
-rw-r--r-- | source/testfloat.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/source/testfloat.c b/source/testfloat.c index 87a1016..1dd5abe 100644 --- a/source/testfloat.c +++ b/source/testfloat.c @@ -1428,6 +1428,15 @@ void } +static uint_fast8_t clearExceptionFlags( void ) +{ + uint_fast8_t prevFlags; + + prevFlags = slowfloat_exceptionFlags; + slowfloat_exceptionFlags = 0; + return prevFlags; +} + int main( int argc, char *argv[] ) { bool haveFunctionArg; @@ -1448,7 +1457,7 @@ int main( int argc, char *argv[] ) if ( argc <= 1 ) goto writeHelpMessage; genCases_setLevel( 1 ); verCases_maxErrorCount = 20; - testLoops_trueFlagsPtr = &softfloat_exceptionFlags; + testLoops_trueFlagsFunction = clearExceptionFlags; testLoops_subjFlagsFunction = subjfloat_clearExceptionFlags; haveFunctionArg = false; standardFunctionInfoPtr = 0; |