Hello community, here is the log from the commit of package openblas for openSUSE:Factory checked in at 2019-02-24 18:03:23 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/openblas (Old) and /work/SRC/openSUSE:Factory/.openblas.new.28833 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "openblas" Sun Feb 24 18:03:23 2019 rev:24 rq:677358 version:0.3.5 Changes: -------- --- /work/SRC/openSUSE:Factory/openblas/openblas.changes 2019-02-01 11:43:34.180668086 +0100 +++ /work/SRC/openSUSE:Factory/.openblas.new.28833/openblas.changes 2019-02-24 18:03:26.559773720 +0100 @@ -1,0 +2,11 @@ +Thu Feb 14 18:22:49 UTC 2019 - Egbert Eich <eich@suse.com> + +- Add OPENBLAS_INC and OPENBLAS_DIR to HPC environment (bsc#1125547). + +------------------------------------------------------------------- +Tue Feb 12 19:33:00 UTC 2019 - Stefan Brüns <stefan.bruens@rwth-aachen.de> + +- Fix https://github.com/xianyi/OpenBLAS/issues/2014 + Add 0001-Add-a-register-to-the-clobber-list-for-the-mul-instr.patch + +------------------------------------------------------------------- New: ---- 0001-Add-a-register-to-the-clobber-list-for-the-mul-instr.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ openblas.spec ++++++ --- /var/tmp/diff_new_pack.sU0JrM/_old 2019-02-24 18:03:27.503773398 +0100 +++ /var/tmp/diff_new_pack.sU0JrM/_new 2019-02-24 18:03:27.507773397 +0100 @@ -131,6 +131,8 @@ Patch2: fix-arm64-cpuid-return.patch # PATCH port Patch3: openblas-s390.patch +# PATCH-FIX-OPENSUSE 0001-Add-a-register-to-the-clobber-list-for-the-mul-instr.patch +Patch4: 0001-Add-a-register-to-the-clobber-list-for-the-mul-instr.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -240,6 +242,7 @@ %ifarch s390 sed -i -e "s@m32@m31@" Makefile.system %endif +%patch4 -p1 %if %{without hpc} cp %{SOURCE1} . @@ -366,14 +369,17 @@ setenv %{hpc_upcase %pname}_DIR %{hpc_prefix} if {[file isdirectory %{hpc_includedir}]} { -prepend-path LIBRARY_PATH %{hpc_libdir} -prepend-path CPATH %{hpc_includedir} -prepend-path C_INCLUDE_PATH %{hpc_includedir} -prepend-path CPLUS_INCLUDE_PATH %{hpc_includedir} -prepend-path INCLUDE %{hpc_includedir} +prepend-path LIBRARY_PATH %{p_libdir} +prepend-path CPATH %{p_includedir} +prepend-path C_INCLUDE_PATH %{p_includedir} +prepend-path CPLUS_INCLUDE_PATH %{p_includedir} +prepend-path INCLUDE %{p_includedir} %hpc_modulefile_add_pkgconfig_path -setenv %{hpc_upcase %pname}_LIB %{hpc_libdir} +setenv %{hpc_upcase %pname}_DIR %{hpc_prefix} +setenv %{hpc_upcase %pname}_LIB %{p_libdir} +setenv %{hpc_upcase %pname}_INC %{p_includedir} + } family "openblas" ++++++ 0001-Add-a-register-to-the-clobber-list-for-the-mul-instr.patch ++++++
From 13ee3335e4d4cf797ec5fe3226ab7fcb77d43654 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20Br=C3=BCns?= <stefan.bruens@rwth-aachen.de> Date: Tue, 12 Feb 2019 20:31:54 +0100 Subject: [PATCH] Add "a" register to the clobber list for the "mul" instruction
eax stores the low part of the mul instruction, so its value has to be restored afterwards. --- common_x86.h | 2 +- common_x86_64.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/common_x86.h b/common_x86.h index 4f538c9..fb56f6e 100644 --- a/common_x86.h +++ b/common_x86.h @@ -187,7 +187,7 @@ static __inline int blas_quickdivide(unsigned int x, unsigned int y){ y = blas_quick_divide_table[y]; - __asm__ __volatile__ ("mull %0" :"=d" (result) :"a"(x), "0" (y)); + __asm__ __volatile__ ("mull %0" :"=d" (result), "+a"(x) : "0" (y)); return result; #endif diff --git a/common_x86_64.h b/common_x86_64.h index 62e138e..4d5d36d 100644 --- a/common_x86_64.h +++ b/common_x86_64.h @@ -210,7 +210,7 @@ static __inline int blas_quickdivide(unsigned int x, unsigned int y){ y = blas_quick_divide_table[y]; - __asm__ __volatile__ ("mull %0" :"=d" (result) :"a"(x), "0" (y)); + __asm__ __volatile__ ("mull %0" :"=d" (result), "+a"(x) : "0" (y)); return result; } -- 2.20.1