[med-svn] [Git][med-team/simde][upstream] New upstream version 0.0.0.git.20191212

Michael R. Crusoe gitlab at salsa.debian.org
Thu Dec 12 11:44:02 GMT 2019



Michael R. Crusoe pushed to branch upstream at Debian Med / simde


Commits:
dd8784a2 by Michael R. Crusoe at 2019-12-12T11:34:36Z
New upstream version 0.0.0.git.20191212
- - - - -


3 changed files:

- .travis.yml
- simde/x86/sse2.h
- test/CMakeLists.txt


Changes:

=====================================
.travis.yml
=====================================
@@ -5,20 +5,29 @@ branches:
     - /^(wip\/)?(appveyor|msvc|mingw|windows)(\-.+)?$/
 matrix:
   include:
-    - env: C_COMPILER=gcc
+    - env: C_COMPILER=gcc CFLAGS=-march=native
       addons:
         apt:
           packages:
           - cmake
           - cmake-data
-    - env: C_COMPILER=clang
+    - env: C_COMPILER=i686-linux-gnu-gcc-8 CFLAGS=-march=i686
+      dist: bionic
+      addons:
+        apt:
+          packages:
+          - gcc-8-i686-linux-gnu
+          - libc6-dev-i386-cross
+          - cmake
+          - cmake-data
+    - env: C_COMPILER=clang CFLAGS=-march=native
       addons:
         apt:
           packages:
           - clang
           - cmake
           - cmake-data
-    - env: C_COMPILER=gcc-4.4
+    - env: C_COMPILER=gcc-4.4 CFLAGS=-march=native
       dist: trusty
       addons:
         apt:
@@ -39,7 +48,7 @@ matrix:
           - qemu
           - cmake
           - cmake-data
-    - env: C_COMPILER=clang-3.5
+    - env: C_COMPILER=clang-3.5 CFLAGS=-march=native
       dist: trusty
       addons:
         apt:
@@ -82,6 +91,8 @@ before_install:
     SIMDE_CMAKE_ARGS="-DCMAKE_TOOLCHAIN_FILE=${TRAVIS_BUILD_DIR}/test/cmake/toolchain-arm-linux-gnueabihf.cmake";
   elif [ "${C_COMPILER}" = "aarch64-linux-gnu-gcc" ]; then
     SIMDE_CMAKE_ARGS="-DCMAKE_TOOLCHAIN_FILE=${TRAVIS_BUILD_DIR}/test/cmake/toolchain-aarch64-linux-gnu.cmake";
+  elif [ "${C_COMPILER}" = "i686-linux-gnu-gcc-8" ]; then
+    sudo dpkg --add-architecture i386 && sudo apt-get update && sudo apt install libc6:i386 ;
   fi
 - if [ -n "${C_COMPILER}" ]; then export CC="${C_COMPILER}"; fi
 - if [ -z "${BUILD_TYPE}" ]; then export BUILD_TYPE="Coverage"; fi
@@ -91,14 +102,14 @@ before_install:
 script:
 - if [ -n "${C_COMPILER}" ]; then export CC="${C_COMPILER}"; fi
 - cat /proc/cpuinfo || true
-- cmake .. -DCMAKE_BUILD_TYPE="${BUILD_TYPE}" -DCMAKE_C_FLAGS=-DTRAVIS_CI ${SIMDE_CMAKE_ARGS}
+- cmake .. -DCMAKE_BUILD_TYPE="${BUILD_TYPE}" -DCMAKE_C_FLAGS="-DTRAVIS_CI ${CFLAGS}" ${SIMDE_CMAKE_ARGS}
 - make VERBOSE=1
 - if [ "${C_COMPILER}" = "arm-linux-gnueabihf-gcc" ]; then
     qemu-arm ./run-tests;
   elif [ "${C_COMPILER}" = "aarch64-linux-gnu-gcc" ]; then
     qemu-aarch64 ./run-tests;
   else
-    ./run-tests;
+    ./run-tests ;
   fi
 
 after_success:


=====================================
simde/x86/sse2.h
=====================================
@@ -818,7 +818,7 @@ simde_mm_castps_si128 (simde__m128 a) {
 #elif defined(SIMDE_SSE2_NEON)
   r.neon_i32 = a.neon_i32;
 #else
-  r = HEDLEY_REINTERPRET_CAST(simde__m128i, a);
+  r = *((simde__m128i*) &a);
 #endif
 
   return r;
@@ -835,7 +835,7 @@ simde_mm_castsi128_pd (simde__m128i a) {
 #if defined(SIMDE_SSE2_NATIVE)
   return SIMDE__M128D_FROM_NATIVE(_mm_castsi128_pd(a.n));
 #else
-  r = HEDLEY_REINTERPRET_CAST(simde__m128d, a);
+  r = *((simde__m128d*) &a);
 #endif
 
   return r;
@@ -854,7 +854,7 @@ simde_mm_castsi128_ps (simde__m128i a) {
 #elif defined(SIMDE_SSE2_NEON)
   r.neon_f32 = a.neon_f32;
 #else
-  r = HEDLEY_REINTERPRET_CAST(simde__m128, a);
+  r = *((simde__m128*) &a);
 #endif
 
   return r;


=====================================
test/CMakeLists.txt
=====================================
@@ -102,11 +102,6 @@ set_compiler_specific_flags(
   VARIABLE extra_cflags
   INTEL -wd3179)
 
-check_c_compiler_flag("-march=native" CFLAG__march_native)
-if(CFLAG__march_native)
-  set(extra_cflags "${extra_cflags} -march=native")
-endif()
-
 check_c_compiler_flag("-fopenmp-simd" CFLAG__fopenmp_simd)
 check_c_compiler_flag("-qopenmp-simd" CFLAG__qopenmp_simd)
 if(CFLAG__fopenmp_simd)



View it on GitLab: https://salsa.debian.org/med-team/simde/commit/dd8784a22a22320b805522ae31025d0962fdcab4

-- 
View it on GitLab: https://salsa.debian.org/med-team/simde/commit/dd8784a22a22320b805522ae31025d0962fdcab4
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20191212/ddef6636/attachment-0001.html>


More information about the debian-med-commit mailing list