diff options
author | John Hauser <jhauser@eecs.berkeley.edu> | 2016-07-22 18:04:32 -0700 |
---|---|---|
committer | John Hauser <jhauser@eecs.berkeley.edu> | 2016-07-22 18:04:32 -0700 |
commit | ddfb9e70c434ae238635784ce66cb7ed93d0a2e7 (patch) | |
tree | 3502b5d96dcdbc5ad0c16c00caf4cd21428314b3 /build/Win32-SSE2-MinGW | |
parent | 11a6a656c7651695deacfdcda9c5d80fdbc05fee (diff) | |
download | berkeley-testfloat-3-ddfb9e70c434ae238635784ce66cb7ed93d0a2e7.zip berkeley-testfloat-3-ddfb9e70c434ae238635784ce66cb7ed93d0a2e7.tar.gz berkeley-testfloat-3-ddfb9e70c434ae238635784ce66cb7ed93d0a2e7.tar.bz2 |
Release 3b. See "doc/TestFloat-history.html".
Diffstat (limited to 'build/Win32-SSE2-MinGW')
-rw-r--r-- | build/Win32-SSE2-MinGW/Makefile | 47 | ||||
-rw-r--r-- | build/Win32-SSE2-MinGW/platform.h | 10 |
2 files changed, 47 insertions, 10 deletions
diff --git a/build/Win32-SSE2-MinGW/Makefile b/build/Win32-SSE2-MinGW/Makefile index b08c3e1..ff966a2 100644 --- a/build/Win32-SSE2-MinGW/Makefile +++ b/build/Win32-SSE2-MinGW/Makefile @@ -1,12 +1,12 @@ #============================================================================= # -# This Makefile is part of TestFloat, Release 3a, a package of programs for +# This Makefile is part of TestFloat, Release 3b, a package of programs for # testing the correctness of floating-point arithmetic complying with the IEEE # Standard for Floating-Point, by John R. Hauser. # -# Copyright 2011, 2012, 2013, 2014, 2015 The Regents of the University of -# California. All rights reserved. +# Copyright 2011, 2012, 2013, 2014, 2015, 2016 The Regents of the University +# of California. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: @@ -35,18 +35,19 @@ # #============================================================================= -SOURCE_DIR = ../../source +SOURCE_DIR ?= ../../source +SOFTFLOAT_DIR ?= ../../../berkeley-softfloat-3 +PLATFORM ?= Win32-SSE2-MinGW + SUBJ_SOURCE_DIR = $(SOURCE_DIR)/subj-C -SOFTFLOAT_DIR = ../../../berkeley-softfloat-3 SOFTFLOAT_INCLUDE_DIR = $(SOFTFLOAT_DIR)/source/include -PLATFORM = Win32-SSE2-MinGW SOFTFLOAT_H = \ $(SOFTFLOAT_INCLUDE_DIR)/softfloat_types.h \ $(SOFTFLOAT_INCLUDE_DIR)/softfloat.h SOFTFLOAT_LIB = $(SOFTFLOAT_DIR)/build/$(PLATFORM)/softfloat$(LIB) -TESTFLOAT_OPTS = -DEXTFLOAT80 -DFLOAT128 -DLONG_DOUBLE_IS_EXTFLOAT80 +TESTFLOAT_OPTS ?= -DFLOAT16 -DEXTFLOAT80 -DFLOAT128 -DLONG_DOUBLE_IS_EXTFLOAT80 DELETE = rm -f C_INCLUDES = \ @@ -78,6 +79,7 @@ OBJS_GENCASES = \ genCases_ui64$(OBJ) \ genCases_i32$(OBJ) \ genCases_i64$(OBJ) \ + genCases_f16$(OBJ) \ genCases_f32$(OBJ) \ genCases_f64$(OBJ) \ genCases_extF80$(OBJ) \ @@ -86,6 +88,9 @@ OBJS_GENCASES = \ OBJS_WRITECASE = \ writeCase_a_ui32$(OBJ) \ writeCase_a_ui64$(OBJ) \ + writeCase_a_f16$(OBJ) \ + writeCase_ab_f16$(OBJ) \ + writeCase_abc_f16$(OBJ) \ writeCase_a_f32$(OBJ) \ writeCase_ab_f32$(OBJ) \ writeCase_abc_f32$(OBJ) \ @@ -101,28 +106,50 @@ OBJS_WRITECASE = \ writeCase_z_bool$(OBJ) \ writeCase_z_ui32$(OBJ) \ writeCase_z_ui64$(OBJ) \ + writeCase_z_f16$(OBJ) \ writeCase_z_f32$(OBJ) \ writeCase_z_f64$(OBJ) \ writeCase_z_extF80M$(OBJ) \ writeCase_z_f128M$(OBJ) \ OBJS_TEST = \ + test_a_ui32_z_f16$(OBJ) \ test_a_ui32_z_f32$(OBJ) \ test_a_ui32_z_f64$(OBJ) \ test_a_ui32_z_extF80$(OBJ) \ test_a_ui32_z_f128$(OBJ) \ + test_a_ui64_z_f16$(OBJ) \ test_a_ui64_z_f32$(OBJ) \ test_a_ui64_z_f64$(OBJ) \ test_a_ui64_z_extF80$(OBJ) \ test_a_ui64_z_f128$(OBJ) \ + test_a_i32_z_f16$(OBJ) \ test_a_i32_z_f32$(OBJ) \ test_a_i32_z_f64$(OBJ) \ test_a_i32_z_extF80$(OBJ) \ test_a_i32_z_f128$(OBJ) \ + test_a_i64_z_f16$(OBJ) \ test_a_i64_z_f32$(OBJ) \ test_a_i64_z_f64$(OBJ) \ test_a_i64_z_extF80$(OBJ) \ test_a_i64_z_f128$(OBJ) \ + test_a_f16_z_ui32_rx$(OBJ) \ + test_a_f16_z_ui64_rx$(OBJ) \ + test_a_f16_z_i32_rx$(OBJ) \ + test_a_f16_z_i64_rx$(OBJ) \ + test_a_f16_z_ui32_x$(OBJ) \ + test_a_f16_z_ui64_x$(OBJ) \ + test_a_f16_z_i32_x$(OBJ) \ + test_a_f16_z_i64_x$(OBJ) \ + test_a_f16_z_f32$(OBJ) \ + test_a_f16_z_f64$(OBJ) \ + test_a_f16_z_extF80$(OBJ) \ + test_a_f16_z_f128$(OBJ) \ + test_az_f16$(OBJ) \ + test_az_f16_rx$(OBJ) \ + test_abz_f16$(OBJ) \ + test_abcz_f16$(OBJ) \ + test_ab_f16_z_bool$(OBJ) \ test_a_f32_z_ui32_rx$(OBJ) \ test_a_f32_z_ui64_rx$(OBJ) \ test_a_f32_z_i32_rx$(OBJ) \ @@ -131,6 +158,7 @@ OBJS_TEST = \ test_a_f32_z_ui64_x$(OBJ) \ test_a_f32_z_i32_x$(OBJ) \ test_a_f32_z_i64_x$(OBJ) \ + test_a_f32_z_f16$(OBJ) \ test_a_f32_z_f64$(OBJ) \ test_a_f32_z_extF80$(OBJ) \ test_a_f32_z_f128$(OBJ) \ @@ -147,6 +175,7 @@ OBJS_TEST = \ test_a_f64_z_ui64_x$(OBJ) \ test_a_f64_z_i32_x$(OBJ) \ test_a_f64_z_i64_x$(OBJ) \ + test_a_f64_z_f16$(OBJ) \ test_a_f64_z_f32$(OBJ) \ test_a_f64_z_extF80$(OBJ) \ test_a_f64_z_f128$(OBJ) \ @@ -163,6 +192,7 @@ OBJS_TEST = \ test_a_extF80_z_ui64_x$(OBJ) \ test_a_extF80_z_i32_x$(OBJ) \ test_a_extF80_z_i64_x$(OBJ) \ + test_a_extF80_z_f16$(OBJ) \ test_a_extF80_z_f32$(OBJ) \ test_a_extF80_z_f64$(OBJ) \ test_a_extF80_z_f128$(OBJ) \ @@ -178,6 +208,7 @@ OBJS_TEST = \ test_a_f128_z_ui64_x$(OBJ) \ test_a_f128_z_i32_x$(OBJ) \ test_a_f128_z_i64_x$(OBJ) \ + test_a_f128_z_f16$(OBJ) \ test_a_f128_z_f32$(OBJ) \ test_a_f128_z_f64$(OBJ) \ test_a_f128_z_extF80$(OBJ) \ @@ -188,6 +219,7 @@ OBJS_TEST = \ test_ab_f128_z_bool$(OBJ) \ OBJS_LIB = \ + uint128_inline$(OBJ) \ uint128$(OBJ) \ fail$(OBJ) \ functions_common$(OBJ) \ @@ -197,6 +229,7 @@ OBJS_LIB = \ genCases_common$(OBJ) \ $(OBJS_GENCASES) \ genCases_writeTestsTotal$(OBJ) \ + verCases_inline$(OBJ) \ verCases_common$(OBJ) \ verCases_writeFunctionName$(OBJ) \ readHex$(OBJ) \ diff --git a/build/Win32-SSE2-MinGW/platform.h b/build/Win32-SSE2-MinGW/platform.h index 9d9edaf..5389f9a 100644 --- a/build/Win32-SSE2-MinGW/platform.h +++ b/build/Win32-SSE2-MinGW/platform.h @@ -1,12 +1,12 @@ /*============================================================================ -This C header file is part of TestFloat, Release 3a, a package of programs for +This C header file is part of TestFloat, Release 3b, a package of programs for testing the correctness of floating-point arithmetic complying with the IEEE Standard for Floating-Point, by John R. Hauser. -Copyright 2011, 2012, 2013, 2014 The Regents of the University of California. -All rights reserved. +Copyright 2011, 2012, 2013, 2014, 2015, 2016 The Regents of the University of +California. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: @@ -41,5 +41,9 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. /*---------------------------------------------------------------------------- *----------------------------------------------------------------------------*/ +#ifdef __GNUC_STDC_INLINE__ +#define INLINE inline +#else #define INLINE extern inline +#endif |