diff options
author | Andrew Geissler <geissonator@yahoo.com> | 2020-05-15 22:09:53 +0300 |
---|---|---|
committer | Andrew Geissler <geissonator@yahoo.com> | 2020-05-21 23:43:47 +0300 |
commit | 7f40b7168b897da48694d6e71fd3fd45861bfb19 (patch) | |
tree | fc7d9f02c5a2e0322b6aaac5cac6d12959fd26bb /meta-openembedded/meta-oe/recipes-test/testfloat | |
parent | dce5cf9dceda684d40fb0e9686ba884ed6b0751f (diff) | |
download | openbmc-7f40b7168b897da48694d6e71fd3fd45861bfb19.tar.xz |
meta-openembedded: subtree update:679bb49126..7c02c7d411
Adam Miartus (1):
toybox: allow user to provide own defconfig
Adrian Bunk (5):
uftrace: Fix PR
mraa: Replace -fcommon with fix
mozjs: Remove workaround for gcc < 4.9
flatbuffers: Remove workarounds for gcc < 6
protobuf-c: Remove workarounds for gcc < 6
Alejandro Enedino Hernandez Samaniego (2):
weechat: introduce weechat recipe providing a fully working IRC client
imapfilter: introduce imapfilter recipe providing a mailbox filter through the IMAP protocol
Alejandro Hernandez Samaniego (1):
remmina: Upgrade to version 1.4.3
Alexander Vickberg (2):
tcpdump: Fix PACKAGECONFIG for OpenSSL
iperf3: Add OpenSSL build option to PACKAGECONFIG
Alistair Francis (2):
geany-plugins: Support libgit2 version 1.0
libgit2: Update to v1.0.0
Andreas Müller (5):
xfce4-notifyd: upgrade 0.6.0 -> 0.6.1
xfconf: upgrade 4.14.1 -> 4.14.2
xfwm4: upgrade 4.14.1 -> 4.14.2
qpdf: upgrade 9.1.0 -> 10.0.1
qpdf: link libatomic explicitly on mips
Bartłomiej Burdukiewicz (2):
pugixml: generate pkgconfig files.
pugixml: add native and nativesdk BBCLASSEXTEND
Claude Bing (3):
php: fix PACKAGECONFIG for soap
php: fix opcache link error in 7.4
php: update fix for opcache link issue in 7.4.4
Emmanuel Roullit (1):
cockpit: fix metainfo.xml file ownership
Gianfranco Costamagna (1):
cpprest: Disable one more test requiring internet connection
Gregory Vimont (1):
opencv: 4.1.0 -> 4.3.0
Jonathan Liu (1):
x11vnc: fix xfc NULL pointer dereference
Jorge Solla (1):
Cockpit: Added missing dependency on udisks2 for package cockpit-storaged
Khem Raj (7):
remmina: Depend on avahi instead of Avahi-ui
libgit2: Enable pcre2 regexp backend
con2fbmap: Add recipe
xf86-input-void: Drop INC_PR
nodejs: Fix build with icu 67.1
nss: Remove mcpu to avoid march conflicts
pmdk: Update to 1.8
Konrad Weihmann (2):
php: fix zip package config
php: add multibyte string support config
Leon Anavi (1):
lirc: upgrade 0.9.4d -> 0.10.1
Michael Haener (1):
cockpit: Add recipe version 218
Mingli Yu (10):
python3-ntplib: add missing python3-io RDEPENDS
python3-pid: add the missing rdepends
python3-parallax: add the missing rdepends
python3-pkgconfig: add missing rdepends
python3-pathlib2: add the missing rdepends
python3-ptyprocess: add the missing rdepends
python3-pydbus: add the missing rdepends
python3-pyudev: add the missing rdepends
python3-zipp: add the missing rdepends
gnome-themes-extra: correct the recipe name
Pierre-Jean Texier (1):
ccid: upgrade 1.4.31 -> 1.4.32
Rasmus Villemoes (1):
libgpiod: split c++ library to its own package
Sean Nyekjaer (1):
gpsd: Upgrade 3.19 -> 3.20
Slater, Joseph (2):
python-pretty-table: add rdep's
python3-pyhamcrest: add rdep
Trevor Gamblin (7):
python3-py: add python3-netclient to RDEPENDS
python3-markdown: add logging and setuptools to RDEPENDS
python3-pyrsistent: add python3-numbers to RDEPENDS
python3-pytoml: add datetime and stringold to RDEPENDS
python3-dbusmock: re-add recipe and fix patch path
python3-pyyaml: add python3-netclient to RDEPENDS
python3-werkzeug: add python3-logging to RDEPENDS
Wang Mingyu (6):
mailcap: upgrade 2.1.48 -> 2.1.49
sanlock: upgrade 3.8.0 -> 3.8.1
libcgi-perl: upgrade 4.46 -> 4.47
libencode-perl: upgrade 3.05 -> 3.06
python3-idna: upgrade 2.8 -> 2.9
multipath-tools: upgrade 0.8.3 -> 0.8.4
Yi Zhao (1):
nginx: remove /var/log/nginx when do_install
Zang Ruochen (8):
python3-parse-type: Modify ptest output format
python3-pluggy: Modify ptest output format
python3-polyline: Modify ptest output format
python3-precise-runner: Modify ptest output format
python3-prettytable: Modify ptest output format
python3-ptyprocess: Modify ptest output format
python3-pyasn1: Modify ptest output format
python3-pyasn1-modules: Modify ptest output format
Zheng Ruoqin (4):
python3-pyserial: Modify ptest output format
python3-pyroute2: Modify ptest output format
v4l-utils: upgrade 1.18.0 -> 1.18.1
cpprest: upgrade 2.10.15 -> 2.10.16
Zong Li (1):
Upgrade testfloat to 3e version.
niko.mauno@vaisala.com (3):
python3-setuptools-scm: Cosmetic improvement
python3-setuptools-scm: Add nativesdk to BBCLASSEXTEND
python3-attrs: Add nativesdk to BBCLASSEXTEND
Change-Id: I696f29557eafda5f9f9d6e26525e1a5819982a4b
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
Diffstat (limited to 'meta-openembedded/meta-oe/recipes-test/testfloat')
-rw-r--r-- | meta-openembedded/meta-oe/recipes-test/testfloat/files/0001-Makefile-for-cross-compile-SoftFloat.patch | 135 | ||||
-rw-r--r-- | meta-openembedded/meta-oe/recipes-test/testfloat/files/0002-Makefile-for-cross-compile-TestFloat.patch | 117 | ||||
-rw-r--r-- | meta-openembedded/meta-oe/recipes-test/testfloat/testfloat_3e.bb (renamed from meta-openembedded/meta-oe/recipes-test/testfloat/testfloat_3a.bb) | 15 |
3 files changed, 183 insertions, 84 deletions
diff --git a/meta-openembedded/meta-oe/recipes-test/testfloat/files/0001-Makefile-for-cross-compile-SoftFloat.patch b/meta-openembedded/meta-oe/recipes-test/testfloat/files/0001-Makefile-for-cross-compile-SoftFloat.patch index 71782c5b9b..9f41bf2da0 100644 --- a/meta-openembedded/meta-oe/recipes-test/testfloat/files/0001-Makefile-for-cross-compile-SoftFloat.patch +++ b/meta-openembedded/meta-oe/recipes-test/testfloat/files/0001-Makefile-for-cross-compile-SoftFloat.patch @@ -1,32 +1,34 @@ -Upstream-Status: Inappropriate [configuration] +From 99b62670d01c6081d883303722726beb65699cbb Mon Sep 17 00:00:00 2001 +From: Zong Li <zong.li@sifive.com> +Date: Wed, 6 May 2020 01:23:22 -0700 +Subject: [PATCH] Makefile for cross compile SoftFloat 3e -From 07f2528d93f44fe1d8080a4225f29f4ada9f4663 Mon Sep 17 00:00:00 2001 -From: Fabio Berton <fabio.berton@ossystems.com.br> -Date: Thu, 4 Feb 2016 09:15:37 -0200 -Subject: [PATCH 1/2] Makefile for cross compile SoftFloat +This commit adds a Makefile for cross compile on SoftFloat +3e version. Almost implementation is based on meta-oe porting +from Fabio Berton <fabio.berton@ossystems.com.br>. -Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br> +Signed-off-by: Zong Li <zongbox@gmail.com> --- - SoftFloat-3a/build/Linux-Cross-Compile/Makefile | 274 ++++++++++++++++++++++ - SoftFloat-3a/build/Linux-Cross-Compile/platform.h | 44 ++++ - 2 files changed, 318 insertions(+) - create mode 100644 SoftFloat-3a/build/Linux-Cross-Compile/Makefile - create mode 100644 SoftFloat-3a/build/Linux-Cross-Compile/platform.h + SoftFloat-3e/build/Linux-Cross-Compile/Makefile | 325 ++++++++++++++++++++++ + SoftFloat-3e/build/Linux-Cross-Compile/platform.h | 52 ++++ + 2 files changed, 377 insertions(+) + create mode 100644 SoftFloat-3e/build/Linux-Cross-Compile/Makefile + create mode 100644 SoftFloat-3e/build/Linux-Cross-Compile/platform.h -diff --git a/SoftFloat-3a/build/Linux-Cross-Compile/Makefile b/SoftFloat-3a/build/Linux-Cross-Compile/Makefile +diff --git a/SoftFloat-3e/build/Linux-Cross-Compile/Makefile b/SoftFloat-3e/build/Linux-Cross-Compile/Makefile new file mode 100644 -index 0000000..c4d0a60 +index 0000000..4da4bc9 --- /dev/null -+++ b/SoftFloat-3a/build/Linux-Cross-Compile/Makefile -@@ -0,0 +1,274 @@ ++++ b/SoftFloat-3e/build/Linux-Cross-Compile/Makefile +@@ -0,0 +1,325 @@ + +#============================================================================= +# -+# This Makefile is part of the SoftFloat IEEE Floating-Point Arithmetic -+# Package, Release 3a, by John R. Hauser. ++# This Makefile template is part of the SoftFloat IEEE Floating-Point ++# Arithmetic Package, Release 3e, 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, 2017 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: @@ -55,21 +57,25 @@ index 0000000..c4d0a60 +# +#============================================================================= + -+SOURCE_DIR = ../../source -+SPECIALIZE_TYPE = 8086 ++SOURCE_DIR ?= ../../source ++SPECIALIZE_TYPE ?= 8086 + -+SOFTFLOAT_OPTS = -DINLINE_LEVEL=5 -DSOFTFLOAT_FAST_DIV64TO32 -fgnu89-inline ++SOFTFLOAT_OPTS ?= \ ++ -DSOFTFLOAT_ROUND_ODD -DINLINE_LEVEL=5 -DSOFTFLOAT_FAST_DIV32TO16 \ ++ -DSOFTFLOAT_FAST_DIV64TO32 + +DELETE = rm -f +C_INCLUDES = -I. -I$(SOURCE_DIR)/$(SPECIALIZE_TYPE) -I$(SOURCE_DIR)/include +COMPILE_C = \ + ${CC} -c -Werror-implicit-function-declaration $(SOFTFLOAT_OPTS) \ -+ $(C_INCLUDES) -O2 -o $@ ++ $(C_INCLUDES) -O2 -o $@ +MAKELIB = ${AR} crs $@ + +OBJ = .o +LIB = .a + ++OTHER_HEADERS = ++ +.PHONY: all +all: softfloat$(LIB) + @@ -87,6 +93,7 @@ index 0000000..c4d0a60 + s_shiftRightJamM$(OBJ) \ + s_shiftRightM$(OBJ) \ + s_countLeadingZeros8$(OBJ) \ ++ s_countLeadingZeros16$(OBJ) \ + s_countLeadingZeros32$(OBJ) \ + s_countLeadingZeros64$(OBJ) \ + s_addM$(OBJ) \ @@ -97,12 +104,17 @@ index 0000000..c4d0a60 + s_subM$(OBJ) \ + s_mul64To128M$(OBJ) \ + s_mul128MTo256M$(OBJ) \ ++ s_approxRecip_1Ks$(OBJ) \ + s_approxRecip32_1$(OBJ) \ ++ s_approxRecipSqrt_1Ks$(OBJ) \ + s_approxRecipSqrt32_1$(OBJ) \ + s_remStepMBy32$(OBJ) \ + +OBJS_SPECIALIZE = \ + softfloat_raiseFlags$(OBJ) \ ++ s_f16UIToCommonNaN$(OBJ) \ ++ s_commonNaNToF16UI$(OBJ) \ ++ s_propagateNaNF16UI$(OBJ) \ + s_f32UIToCommonNaN$(OBJ) \ + s_commonNaNToF32UI$(OBJ) \ + s_propagateNaNF32UI$(OBJ) \ @@ -119,10 +131,16 @@ index 0000000..c4d0a60 + s_propagateNaNF128M$(OBJ) \ + +OBJS_OTHERS = \ -+ s_roundPackToUI32$(OBJ) \ -+ s_roundPackMToUI64$(OBJ) \ -+ s_roundPackToI32$(OBJ) \ -+ s_roundPackMToI64$(OBJ) \ ++ s_roundToUI32$(OBJ) \ ++ s_roundMToUI64$(OBJ) \ ++ s_roundToI32$(OBJ) \ ++ s_roundMToI64$(OBJ) \ ++ s_normSubnormalF16Sig$(OBJ) \ ++ s_roundPackToF16$(OBJ) \ ++ s_normRoundPackToF16$(OBJ) \ ++ s_addMagsF16$(OBJ) \ ++ s_subMagsF16$(OBJ) \ ++ s_mulAddF16$(OBJ) \ + s_normSubnormalF32Sig$(OBJ) \ + s_roundPackToF32$(OBJ) \ + s_normRoundPackToF32$(OBJ) \ @@ -151,22 +169,53 @@ index 0000000..c4d0a60 + s_addF128M$(OBJ) \ + s_mulAddF128M$(OBJ) \ + softfloat_state$(OBJ) \ ++ ui32_to_f16$(OBJ) \ + ui32_to_f32$(OBJ) \ + ui32_to_f64$(OBJ) \ + ui32_to_extF80M$(OBJ) \ + ui32_to_f128M$(OBJ) \ ++ ui64_to_f16$(OBJ) \ + ui64_to_f32$(OBJ) \ + ui64_to_f64$(OBJ) \ + ui64_to_extF80M$(OBJ) \ + ui64_to_f128M$(OBJ) \ ++ i32_to_f16$(OBJ) \ + i32_to_f32$(OBJ) \ + i32_to_f64$(OBJ) \ + i32_to_extF80M$(OBJ) \ + i32_to_f128M$(OBJ) \ ++ i64_to_f16$(OBJ) \ + i64_to_f32$(OBJ) \ + i64_to_f64$(OBJ) \ + i64_to_extF80M$(OBJ) \ + i64_to_f128M$(OBJ) \ ++ f16_to_ui32$(OBJ) \ ++ f16_to_ui64$(OBJ) \ ++ f16_to_i32$(OBJ) \ ++ f16_to_i64$(OBJ) \ ++ f16_to_ui32_r_minMag$(OBJ) \ ++ f16_to_ui64_r_minMag$(OBJ) \ ++ f16_to_i32_r_minMag$(OBJ) \ ++ f16_to_i64_r_minMag$(OBJ) \ ++ f16_to_f32$(OBJ) \ ++ f16_to_f64$(OBJ) \ ++ f16_to_extF80M$(OBJ) \ ++ f16_to_f128M$(OBJ) \ ++ f16_roundToInt$(OBJ) \ ++ f16_add$(OBJ) \ ++ f16_sub$(OBJ) \ ++ f16_mul$(OBJ) \ ++ f16_mulAdd$(OBJ) \ ++ f16_div$(OBJ) \ ++ f16_rem$(OBJ) \ ++ f16_sqrt$(OBJ) \ ++ f16_eq$(OBJ) \ ++ f16_le$(OBJ) \ ++ f16_lt$(OBJ) \ ++ f16_eq_signaling$(OBJ) \ ++ f16_le_quiet$(OBJ) \ ++ f16_lt_quiet$(OBJ) \ ++ f16_isSignalingNaN$(OBJ) \ + f32_to_ui32$(OBJ) \ + f32_to_ui64$(OBJ) \ + f32_to_i32$(OBJ) \ @@ -175,6 +224,7 @@ index 0000000..c4d0a60 + f32_to_ui64_r_minMag$(OBJ) \ + f32_to_i32_r_minMag$(OBJ) \ + f32_to_i64_r_minMag$(OBJ) \ ++ f32_to_f16$(OBJ) \ + f32_to_f64$(OBJ) \ + f32_to_extF80M$(OBJ) \ + f32_to_f128M$(OBJ) \ @@ -201,6 +251,7 @@ index 0000000..c4d0a60 + f64_to_ui64_r_minMag$(OBJ) \ + f64_to_i32_r_minMag$(OBJ) \ + f64_to_i64_r_minMag$(OBJ) \ ++ f64_to_f16$(OBJ) \ + f64_to_f32$(OBJ) \ + f64_to_extF80M$(OBJ) \ + f64_to_f128M$(OBJ) \ @@ -227,6 +278,7 @@ index 0000000..c4d0a60 + extF80M_to_ui64_r_minMag$(OBJ) \ + extF80M_to_i32_r_minMag$(OBJ) \ + extF80M_to_i64_r_minMag$(OBJ) \ ++ extF80M_to_f16$(OBJ) \ + extF80M_to_f32$(OBJ) \ + extF80M_to_f64$(OBJ) \ + extF80M_to_f128M$(OBJ) \ @@ -251,6 +303,7 @@ index 0000000..c4d0a60 + f128M_to_ui64_r_minMag$(OBJ) \ + f128M_to_i32_r_minMag$(OBJ) \ + f128M_to_i64_r_minMag$(OBJ) \ ++ f128M_to_f16$(OBJ) \ + f128M_to_f32$(OBJ) \ + f128M_to_f64$(OBJ) \ + f128M_to_extF80M$(OBJ) \ @@ -272,7 +325,7 @@ index 0000000..c4d0a60 +OBJS_ALL = $(OBJS_PRIMITIVES) $(OBJS_SPECIALIZE) $(OBJS_OTHERS) + +$(OBJS_ALL): \ -+ platform.h $(SOURCE_DIR)/include/primitiveTypes.h \ ++ $(OTHER_HEADERS) platform.h $(SOURCE_DIR)/include/primitiveTypes.h \ + $(SOURCE_DIR)/include/primitives.h +$(OBJS_SPECIALIZE) $(OBJS_OTHERS): \ + $(SOURCE_DIR)/include/softfloat_types.h $(SOURCE_DIR)/include/internals.h \ @@ -293,20 +346,20 @@ index 0000000..c4d0a60 +clean: + $(DELETE) $(OBJS_ALL) softfloat$(LIB) + -diff --git a/SoftFloat-3a/build/Linux-Cross-Compile/platform.h b/SoftFloat-3a/build/Linux-Cross-Compile/platform.h +diff --git a/SoftFloat-3e/build/Linux-Cross-Compile/platform.h b/SoftFloat-3e/build/Linux-Cross-Compile/platform.h new file mode 100644 -index 0000000..5e566fc +index 0000000..1728c15 --- /dev/null -+++ b/SoftFloat-3a/build/Linux-Cross-Compile/platform.h -@@ -0,0 +1,44 @@ ++++ b/SoftFloat-3e/build/Linux-Cross-Compile/platform.h +@@ -0,0 +1,52 @@ + +/*============================================================================ + -+This C header file is part of the SoftFloat IEEE Floating-Point Arithmetic -+Package, Release 3a, by John R. Hauser. ++This C header template is part of the SoftFloat IEEE Floating-Point Arithmetic ++Package, Release 3e, 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: @@ -341,8 +394,16 @@ index 0000000..5e566fc + +/*---------------------------------------------------------------------------- +*----------------------------------------------------------------------------*/ ++#ifdef __GNUC_STDC_INLINE__ ++#define INLINE inline ++#else +#define INLINE extern inline ++#endif + ++/*---------------------------------------------------------------------------- ++*----------------------------------------------------------------------------*/ ++#define SOFTFLOAT_BUILTIN_CLZ 1 ++#include "opts-GCC.h" -- -2.1.4 +2.7.4 diff --git a/meta-openembedded/meta-oe/recipes-test/testfloat/files/0002-Makefile-for-cross-compile-TestFloat.patch b/meta-openembedded/meta-oe/recipes-test/testfloat/files/0002-Makefile-for-cross-compile-TestFloat.patch index 71ca343cc0..b7d861f8fc 100644 --- a/meta-openembedded/meta-oe/recipes-test/testfloat/files/0002-Makefile-for-cross-compile-TestFloat.patch +++ b/meta-openembedded/meta-oe/recipes-test/testfloat/files/0002-Makefile-for-cross-compile-TestFloat.patch @@ -1,33 +1,35 @@ -Upstream-Status: Inappropriate [configuration] +From 3503f7f3845caba454949fdf8408e85ca4fdb943 Mon Sep 17 00:00:00 2001 +From: Zong Li <zong.li@sifive.com> +Date: Wed, 6 May 2020 01:25:55 -0700 +Subject: [PATCH] Makefile for cross compile TestFloat 3e -From 9aa4a416f05967320c1aa52bdccfe105a3bf3269 Mon Sep 17 00:00:00 2001 -From: Fabio Berton <fabio.berton@ossystems.com.br> -Date: Thu, 4 Feb 2016 09:16:09 -0200 -Subject: [PATCH 2/2] Makefile for cross compile TestFloat +This commit adds a Makefile for cross compile on TestFloat +3e version. Almost implementation is based on meta-oe porting +from Fabio Berton <fabio.berton@ossystems.com.br>. -Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br> +Signed-off-by: Zong Li <zongbox@gmail.com> --- - TestFloat-3a/build/Linux-Cross-Compile/Makefile | 321 ++++++++++++++++++++++ - TestFloat-3a/build/Linux-Cross-Compile/platform.h | 45 +++ - 2 files changed, 366 insertions(+) - create mode 100644 TestFloat-3a/build/Linux-Cross-Compile/Makefile - create mode 100644 TestFloat-3a/build/Linux-Cross-Compile/platform.h + TestFloat-3e/build/Linux-Cross-Compile/Makefile | 353 ++++++++++++++++++++++ + TestFloat-3e/build/Linux-Cross-Compile/platform.h | 48 +++ + 2 files changed, 401 insertions(+) + create mode 100644 TestFloat-3e/build/Linux-Cross-Compile/Makefile + create mode 100644 TestFloat-3e/build/Linux-Cross-Compile/platform.h -diff --git a/TestFloat-3a/build/Linux-Cross-Compile/Makefile b/TestFloat-3a/build/Linux-Cross-Compile/Makefile +diff --git a/TestFloat-3e/build/Linux-Cross-Compile/Makefile b/TestFloat-3e/build/Linux-Cross-Compile/Makefile new file mode 100644 -index 0000000..a89326a +index 0000000..d82b9ed --- /dev/null -+++ b/TestFloat-3a/build/Linux-Cross-Compile/Makefile -@@ -0,0 +1,321 @@ ++++ b/TestFloat-3e/build/Linux-Cross-Compile/Makefile +@@ -0,0 +1,353 @@ + +#============================================================================= +# -+# This Makefile is part of TestFloat, Release 3a, a package of programs for -+# testing the correctness of floating-point arithmetic complying with the IEEE -+# Standard for Floating-Point, by John R. Hauser. ++# This Makefile template 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: @@ -56,28 +58,29 @@ index 0000000..a89326a +# +#============================================================================= + -+SOURCE_DIR = ../../source ++SOURCE_DIR ?= ../../source ++SOFTFLOAT_DIR ?= ../../../SoftFloat-3e ++PLATFORM ?= Linux-Cross-Compile ++ +SUBJ_SOURCE_DIR = $(SOURCE_DIR)/subj-C -+SOFTFLOAT_DIR = ../../../SoftFloat-3a +SOFTFLOAT_INCLUDE_DIR = $(SOFTFLOAT_DIR)/source/include -+PLATFORM = Linux-Cross-Compile + +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 -fgnu89-inline ++TESTFLOAT_OPTS ?= -DFLOAT16 -DFLOAT64 -DEXTFLOAT80 -DFLOAT128 -DFLOAT_ROUND_ODD + +DELETE = rm -f +C_INCLUDES = \ + -I. -I$(SUBJ_SOURCE_DIR) -I$(SOURCE_DIR) -I$(SOFTFLOAT_INCLUDE_DIR) +COMPILE_C = \ -+ ${CC} -c -Werror-implicit-function-declaration $(TESTFLOAT_OPTS) \ -+ $(C_INCLUDES) -O2 -o $@ ++ ${CC} -c -Werror-implicit-function-declaration \ ++ $(TESTFLOAT_OPTS) $(C_INCLUDES) -O2 -o $@ +COMPILE_SLOWFLOAT_C = \ -+ ${CC} -c -Werror-implicit-function-declaration $(TESTFLOAT_OPTS) \ -+ $(C_INCLUDES) -O3 -o $@ ++ ${CC} -c -Werror-implicit-function-declaration \ ++ $(TESTFLOAT_OPTS) $(C_INCLUDES) -O3 -o $@ +MAKELIB = ${AR} crs $@ +LINK = ${CC} -o $@ ${LDFLAGS} +OTHER_LIBS = -lm @@ -99,6 +102,7 @@ index 0000000..a89326a + genCases_ui64$(OBJ) \ + genCases_i32$(OBJ) \ + genCases_i64$(OBJ) \ ++ genCases_f16$(OBJ) \ + genCases_f32$(OBJ) \ + genCases_f64$(OBJ) \ + genCases_extF80$(OBJ) \ @@ -107,6 +111,9 @@ index 0000000..a89326a +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) \ @@ -115,35 +122,56 @@ index 0000000..a89326a + writeCase_abc_f64$(OBJ) \ + writeCase_a_extF80M$(OBJ) \ + writeCase_ab_extF80M$(OBJ) \ -+ writeCase_abc_extF80M$(OBJ) \ + writeCase_a_f128M$(OBJ) \ + writeCase_ab_f128M$(OBJ) \ + writeCase_abc_f128M$(OBJ) \ + 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) \ @@ -152,6 +180,7 @@ index 0000000..a89326a + 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) \ @@ -168,6 +197,7 @@ index 0000000..a89326a + 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) \ @@ -184,6 +214,7 @@ index 0000000..a89326a + 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) \ @@ -199,6 +230,7 @@ index 0000000..a89326a + 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) \ @@ -209,6 +241,7 @@ index 0000000..a89326a + test_ab_f128_z_bool$(OBJ) \ + +OBJS_LIB = \ ++ uint128_inline$(OBJ) \ + uint128$(OBJ) \ + fail$(OBJ) \ + functions_common$(OBJ) \ @@ -218,6 +251,7 @@ index 0000000..a89326a + genCases_common$(OBJ) \ + $(OBJS_GENCASES) \ + genCases_writeTestsTotal$(OBJ) \ ++ verCases_inline$(OBJ) \ + verCases_common$(OBJ) \ + verCases_writeFunctionName$(OBJ) \ + readHex$(OBJ) \ @@ -340,21 +374,21 @@ index 0000000..a89326a + $(DELETE) $(OBJS_TESTFLOAT_VER) testfloat_ver$(EXE) + $(DELETE) $(OBJS_TESTFLOAT) testfloat$(EXE) + -diff --git a/TestFloat-3a/build/Linux-Cross-Compile/platform.h b/TestFloat-3a/build/Linux-Cross-Compile/platform.h +diff --git a/TestFloat-3e/build/Linux-Cross-Compile/platform.h b/TestFloat-3e/build/Linux-Cross-Compile/platform.h new file mode 100644 -index 0000000..09e63a0 +index 0000000..487a43b --- /dev/null -+++ b/TestFloat-3a/build/Linux-Cross-Compile/platform.h -@@ -0,0 +1,45 @@ ++++ b/TestFloat-3e/build/Linux-Cross-Compile/platform.h +@@ -0,0 +1,48 @@ + +/*============================================================================ + -+This C header file is part of TestFloat, Release 3a, a package of programs for -+testing the correctness of floating-point arithmetic complying with the IEEE -+Standard for Floating-Point, by John R. Hauser. ++This C header template is part of TestFloat, Release 3e, 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: @@ -389,8 +423,11 @@ index 0000000..09e63a0 + +/*---------------------------------------------------------------------------- +*----------------------------------------------------------------------------*/ ++#ifdef __GNUC_STDC_INLINE__ ++#define INLINE inline ++#else +#define INLINE extern inline -+ ++#endif -- -2.1.4 +2.7.4 diff --git a/meta-openembedded/meta-oe/recipes-test/testfloat/testfloat_3a.bb b/meta-openembedded/meta-oe/recipes-test/testfloat/testfloat_3e.bb index ace376ef27..48f50d8274 100644 --- a/meta-openembedded/meta-oe/recipes-test/testfloat/testfloat_3a.bb +++ b/meta-openembedded/meta-oe/recipes-test/testfloat/testfloat_3e.bb @@ -1,3 +1,4 @@ +SUMMARY = "Berkeley TestFloat 3e" DESCRIPTION = "Berkeley TestFloat is a small collection of programs for \ testing that an implementation of binary floating-point conforms to the \ IEEE Standard for Floating-Point Arithmetic." @@ -5,18 +6,18 @@ DESCRIPTION = "Berkeley TestFloat is a small collection of programs for \ HOMEPAGE = "http://www.jhauser.us/arithmetic/TestFloat.html" LICENSE = "BSD-3-Clause" -LIC_FILES_CHKSUM = "file://TestFloat-${PV}/COPYING.txt;md5=e45c175a323b5727777fb6bd4b26eafc" +LIC_FILES_CHKSUM = "file://TestFloat-${PV}/COPYING.txt;md5=d467c2d231054347e8fd885ac06e7b2b" SRC_URI = "\ - http://www.jhauser.us/arithmetic/TestFloat-3a.zip;name=TestFloat \ - http://www.jhauser.us/arithmetic/SoftFloat-3a.zip;name=SoftFloat \ + http://www.jhauser.us/arithmetic/TestFloat-3e.zip;name=TestFloat \ + http://www.jhauser.us/arithmetic/SoftFloat-3e.zip;name=SoftFloat \ file://0001-Makefile-for-cross-compile-SoftFloat.patch \ file://0002-Makefile-for-cross-compile-TestFloat.patch \ " -SRC_URI[TestFloat.md5sum] = "5a124e85ab74c5e52da27d401cea6cc3" -SRC_URI[TestFloat.sha256sum] = "fa258b5b3c751656a372051adee4183e19ad4763032322eb7a87dfb9e2c22c75" -SRC_URI[SoftFloat.md5sum] = "e53bd4550cf99690642c41374d188517" -SRC_URI[SoftFloat.sha256sum] = "946fd23180559d60eb6683dda1cf8b142f5426dedfefb97b03c6afdfd70ee9e0" +SRC_URI[TestFloat.md5sum] = "e70a1e6c6732abf79645a6dcca69a654" +SRC_URI[TestFloat.sha256sum] = "6d4bdf0096b48a653aa59fc203a9e5fe18b5a58d7a1b715107c7146776a0aad6" +SRC_URI[SoftFloat.md5sum] = "7dac954ea4aed0697cbfee800ba4f492" +SRC_URI[SoftFloat.sha256sum] = "21130ce885d35c1fe73fc1e1bf2244178167e05c6747cad5f450cc991714c746" S = "${WORKDIR}" |