Implementation notes: amd64, hydra5, crypto_sign/sphincss256sha256simple
Computer: hydra5
Microarchitecture: amd64; K10 32nm (300f10)
Architecture: amd64
CPU ID: AuthenticAMD-00300f10-178bfbff
SUPERCOP version: 20240808
Operation: crypto_sign
Primitive: sphincss256sha256simple
Compiler output
sha256avx.c: sha256avx.c:11:15: error: always_inline function '_mm256_unpacklo_epi32' requires target feature 'avx2', but would be inlined into function 'transpose' that is compiled without support for 'avx2'
sha256avx.c: tmp0[0] = _mm256_unpacklo_epi32(s[0], s[1]);
sha256avx.c: ^
sha256avx.c: sha256avx.c:11:15: error: AVX vector argument of type '__m256i' (vector of 4 'long long' values) without 'avx' enabled changes the ABI
sha256avx.c: sha256avx.c:12:15: error: always_inline function '_mm256_unpackhi_epi32' requires target feature 'avx2', but would be inlined into function 'transpose' that is compiled without support for 'avx2'
sha256avx.c: tmp0[1] = _mm256_unpackhi_epi32(s[0], s[1]);
sha256avx.c: ^
sha256avx.c: sha256avx.c:12:15: error: AVX vector argument of type '__m256i' (vector of 4 'long long' values) without 'avx' enabled changes the ABI
sha256avx.c: sha256avx.c:13:15: error: always_inline function '_mm256_unpacklo_epi32' requires target feature 'avx2', but would be inlined into function 'transpose' that is compiled without support for 'avx2'
sha256avx.c: tmp0[2] = _mm256_unpacklo_epi32(s[2], s[3]);
sha256avx.c: ^
sha256avx.c: sha256avx.c:13:15: error: AVX vector argument of type '__m256i' (vector of 4 'long long' values) without 'avx' enabled changes the ABI
sha256avx.c: sha256avx.c:14:15: error: always_inline function '_mm256_unpackhi_epi32' requires target feature 'avx2', but would be inlined into function 'transpose' that is compiled without support for 'avx2'
sha256avx.c: tmp0[3] = _mm256_unpackhi_epi32(s[2], s[3]);
sha256avx.c: ^
sha256avx.c: sha256avx.c:14:15: error: AVX vector argument of type '__m256i' (vector of 4 'long long' values) without 'avx' enabled changes the ABI
sha256avx.c: sha256avx.c:15:15: error: always_inline function '_mm256_unpacklo_epi32' requires target feature 'avx2', but would be inlined into function 'transpose' that is compiled without support for 'avx2'
sha256avx.c: tmp0[4] = _mm256_unpacklo_epi32(s[4], s[5]);
sha256avx.c: ^
sha256avx.c: sha256avx.c:15:15: error: AVX vector argument of type '__m256i' (vector of 4 'long long' values) without 'avx' enabled changes the ABI
sha256avx.c: sha256avx.c:16:15: error: always_inline function '_mm256_unpackhi_epi32' requires target feature 'avx2', but would be inlined into function 'transpose' that is compiled without support for 'avx2'
sha256avx.c: tmp0[5] = _mm256_unpackhi_epi32(s[4], s[5]);
sha256avx.c: ^
sha256avx.c: sha256avx.c:16:15: error: AVX vector argument of type '__m256i' (vector of 4 'long long' values) without 'avx' enabled changes the ABI
sha256avx.c: sha256avx.c:17:15: error: always_inline function '_mm256_unpacklo_epi32' requires target feature 'avx2', but would be inlined into function 'transpose' that is compiled without support for 'avx2'
sha256avx.c: ...
Number of similar (implementation,compiler) pairs: 5, namely:
Implementation | Compiler |
T:avx2 | clang -march=native -O2 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_14.0.0) |
T:avx2 | clang -march=native -O3 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_14.0.0) |
T:avx2 | clang -march=native -O -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_14.0.0) |
T:avx2 | clang -march=native -Os -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_14.0.0) |
T:avx2 | clang -mcpu=native -O3 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_14.0.0) |
Compiler output
sha256avx.c: sha256avx.c: In function 'transpose':
sha256avx.c: sha256avx.c:11:13: warning: AVX vector return without AVX enabled changes the ABI [-Wpsabi]
sha256avx.c: 11 | tmp0[0] = _mm256_unpacklo_epi32(s[0], s[1]);
sha256avx.c: | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
sha256avx.c: In file included from /usr/lib/gcc/x86_64-linux-gnu/11/include/immintrin.h:47,
sha256avx.c: from sha256avx.h:3,
sha256avx.c: from sha256avx.c:5:
sha256avx.c: /usr/lib/gcc/x86_64-linux-gnu/11/include/avx2intrin.h:1084:1: error: inlining failed in call to 'always_inline' '_mm256_permute2x128_si256': target specific option mismatch
sha256avx.c: 1084 | _mm256_permute2x128_si256 (__m256i __X, __m256i __Y, const int __M)
sha256avx.c: | ^~~~~~~~~~~~~~~~~~~~~~~~~
sha256avx.c: sha256avx.c:34:12: note: called from here
sha256avx.c: 34 | s[7] = _mm256_permute2x128_si256(tmp1[3], tmp1[7], 0x31);
sha256avx.c: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
sha256avx.c: In file included from /usr/lib/gcc/x86_64-linux-gnu/11/include/immintrin.h:47,
sha256avx.c: from sha256avx.h:3,
sha256avx.c: from sha256avx.c:5:
sha256avx.c: /usr/lib/gcc/x86_64-linux-gnu/11/include/avx2intrin.h:1084:1: error: inlining failed in call to 'always_inline' '_mm256_permute2x128_si256': target specific option mismatch
sha256avx.c: 1084 | _mm256_permute2x128_si256 (__m256i __X, __m256i __Y, const int __M)
sha256avx.c: | ^~~~~~~~~~~~~~~~~~~~~~~~~
sha256avx.c: sha256avx.c:33:12: note: called from here
sha256avx.c: 33 | s[6] = _mm256_permute2x128_si256(tmp1[2], tmp1[6], 0x31);
sha256avx.c: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
sha256avx.c: In file included from /usr/lib/gcc/x86_64-linux-gnu/11/include/immintrin.h:47,
sha256avx.c: from sha256avx.h:3,
sha256avx.c: from sha256avx.c:5:
sha256avx.c: ...
Number of similar (implementation,compiler) pairs: 4, namely:
Implementation | Compiler |
T:avx2 | gcc -march=native -mtune=native -O2 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (11.4.0) |
T:avx2 | gcc -march=native -mtune=native -O3 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (11.4.0) |
T:avx2 | gcc -march=native -mtune=native -O -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (11.4.0) |
T:avx2 | gcc -march=native -mtune=native -Os -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (11.4.0) |
Compiler output
try.c: /usr/bin/ld: libcrypto_sign_sphincss256sha256simple.a(hash_sha256.o):.../supercop-data/hydra5/amd64/try/c/clang_-march=native_-O2_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_sign/sphincss256sha256simple/ref/work/./sha256.h:26: multiple definition of `state_seeded'; libcrypto_sign_sphincss256sha256simple.a(thash_sha256_simple.o):.../supercop-data/hydra5/amd64/try/c/clang_-march=native_-O2_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_sign/sphincss256sha256simple/ref/work/./sha256.h:26: first defined here
try.c: /usr/bin/ld: libcrypto_sign_sphincss256sha256simple.a(sha256.o):.../supercop-data/hydra5/amd64/try/c/clang_-march=native_-O2_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_sign/sphincss256sha256simple/ref/work/sha256.c:376: multiple definition of `state_seeded'; libcrypto_sign_sphincss256sha256simple.a(thash_sha256_simple.o):.../supercop-data/hydra5/amd64/try/c/clang_-march=native_-O2_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_sign/sphincss256sha256simple/ref/work/./sha256.h:26: first defined here
try.c: clang: error: linker command failed with exit code 1 (use -v to see invocation)
Number of similar (implementation,compiler) pairs: 1, namely:
Implementation | Compiler |
T:ref | clang -march=native -O2 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_14.0.0) |
Compiler output
try.c: /usr/bin/ld: libcrypto_sign_sphincss256sha256simple.a(hash_sha256.o):.../supercop-data/hydra5/amd64/try/c/clang_-march=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_sign/sphincss256sha256simple/ref/work/./sha256.h:26: multiple definition of `state_seeded'; libcrypto_sign_sphincss256sha256simple.a(thash_sha256_simple.o):.../supercop-data/hydra5/amd64/try/c/clang_-march=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_sign/sphincss256sha256simple/ref/work/./sha256.h:26: first defined here
try.c: /usr/bin/ld: libcrypto_sign_sphincss256sha256simple.a(sha256.o):.../supercop-data/hydra5/amd64/try/c/clang_-march=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_sign/sphincss256sha256simple/ref/work/sha256.c:376: multiple definition of `state_seeded'; libcrypto_sign_sphincss256sha256simple.a(thash_sha256_simple.o):.../supercop-data/hydra5/amd64/try/c/clang_-march=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_sign/sphincss256sha256simple/ref/work/./sha256.h:26: first defined here
try.c: clang: error: linker command failed with exit code 1 (use -v to see invocation)
Number of similar (implementation,compiler) pairs: 1, namely:
Implementation | Compiler |
T:ref | clang -march=native -O3 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_14.0.0) |
Compiler output
try.c: /usr/bin/ld: libcrypto_sign_sphincss256sha256simple.a(hash_sha256.o):.../supercop-data/hydra5/amd64/try/c/clang_-march=native_-O_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_sign/sphincss256sha256simple/ref/work/./sha256.h:26: multiple definition of `state_seeded'; libcrypto_sign_sphincss256sha256simple.a(thash_sha256_simple.o):.../supercop-data/hydra5/amd64/try/c/clang_-march=native_-O_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_sign/sphincss256sha256simple/ref/work/./sha256.h:26: first defined here
try.c: /usr/bin/ld: libcrypto_sign_sphincss256sha256simple.a(sha256.o):.../supercop-data/hydra5/amd64/try/c/clang_-march=native_-O_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_sign/sphincss256sha256simple/ref/work/sha256.c:376: multiple definition of `state_seeded'; libcrypto_sign_sphincss256sha256simple.a(thash_sha256_simple.o):.../supercop-data/hydra5/amd64/try/c/clang_-march=native_-O_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_sign/sphincss256sha256simple/ref/work/./sha256.h:26: first defined here
try.c: clang: error: linker command failed with exit code 1 (use -v to see invocation)
Number of similar (implementation,compiler) pairs: 1, namely:
Implementation | Compiler |
T:ref | clang -march=native -O -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_14.0.0) |
Compiler output
try.c: /usr/bin/ld: libcrypto_sign_sphincss256sha256simple.a(hash_sha256.o):.../supercop-data/hydra5/amd64/try/c/clang_-march=native_-Os_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_sign/sphincss256sha256simple/ref/work/./sha256.h:26: multiple definition of `state_seeded'; libcrypto_sign_sphincss256sha256simple.a(thash_sha256_simple.o):.../supercop-data/hydra5/amd64/try/c/clang_-march=native_-Os_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_sign/sphincss256sha256simple/ref/work/./sha256.h:26: first defined here
try.c: /usr/bin/ld: libcrypto_sign_sphincss256sha256simple.a(sha256.o):.../supercop-data/hydra5/amd64/try/c/clang_-march=native_-Os_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_sign/sphincss256sha256simple/ref/work/sha256.c:376: multiple definition of `state_seeded'; libcrypto_sign_sphincss256sha256simple.a(thash_sha256_simple.o):.../supercop-data/hydra5/amd64/try/c/clang_-march=native_-Os_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_sign/sphincss256sha256simple/ref/work/./sha256.h:26: first defined here
try.c: clang: error: linker command failed with exit code 1 (use -v to see invocation)
Number of similar (implementation,compiler) pairs: 1, namely:
Implementation | Compiler |
T:ref | clang -march=native -Os -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_14.0.0) |
Compiler output
try.c: /usr/bin/ld: libcrypto_sign_sphincss256sha256simple.a(hash_sha256.o):.../supercop-data/hydra5/amd64/try/c/clang_-mcpu=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_sign/sphincss256sha256simple/ref/work/./sha256.h:26: multiple definition of `state_seeded'; libcrypto_sign_sphincss256sha256simple.a(thash_sha256_simple.o):.../supercop-data/hydra5/amd64/try/c/clang_-mcpu=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_sign/sphincss256sha256simple/ref/work/./sha256.h:26: first defined here
try.c: /usr/bin/ld: libcrypto_sign_sphincss256sha256simple.a(sha256.o):.../supercop-data/hydra5/amd64/try/c/clang_-mcpu=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_sign/sphincss256sha256simple/ref/work/sha256.c:376: multiple definition of `state_seeded'; libcrypto_sign_sphincss256sha256simple.a(thash_sha256_simple.o):.../supercop-data/hydra5/amd64/try/c/clang_-mcpu=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_sign/sphincss256sha256simple/ref/work/./sha256.h:26: first defined here
try.c: clang: error: linker command failed with exit code 1 (use -v to see invocation)
Number of similar (implementation,compiler) pairs: 1, namely:
Implementation | Compiler |
T:ref | clang -mcpu=native -O3 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_14.0.0) |
Compiler output
try.c: /usr/bin/ld: libcrypto_sign_sphincss256sha256simple.a(hash_sha256.o):.../supercop-data/hydra5/amd64/try/c/gcc_-march=native_-mtune=native_-O2_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_sign/sphincss256sha256simple/ref/work/sha256.h:26: multiple definition of `state_seeded'; libcrypto_sign_sphincss256sha256simple.a(thash_sha256_simple.o):.../supercop-data/hydra5/amd64/try/c/gcc_-march=native_-mtune=native_-O2_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_sign/sphincss256sha256simple/ref/work/sha256.h:26: first defined here
try.c: /usr/bin/ld: libcrypto_sign_sphincss256sha256simple.a(sha256.o):.../supercop-data/hydra5/amd64/try/c/gcc_-march=native_-mtune=native_-O2_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_sign/sphincss256sha256simple/ref/work/sha256.h:26: multiple definition of `state_seeded'; libcrypto_sign_sphincss256sha256simple.a(thash_sha256_simple.o):.../supercop-data/hydra5/amd64/try/c/gcc_-march=native_-mtune=native_-O2_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_sign/sphincss256sha256simple/ref/work/sha256.h:26: first defined here
try.c: collect2: error: ld returned 1 exit status
Number of similar (implementation,compiler) pairs: 1, namely:
Implementation | Compiler |
T:ref | gcc -march=native -mtune=native -O2 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (11.4.0) |
Compiler output
try.c: /usr/bin/ld: libcrypto_sign_sphincss256sha256simple.a(hash_sha256.o):.../supercop-data/hydra5/amd64/try/c/gcc_-march=native_-mtune=native_-O3_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_sign/sphincss256sha256simple/ref/work/sha256.h:26: multiple definition of `state_seeded'; libcrypto_sign_sphincss256sha256simple.a(thash_sha256_simple.o):.../supercop-data/hydra5/amd64/try/c/gcc_-march=native_-mtune=native_-O3_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_sign/sphincss256sha256simple/ref/work/sha256.h:26: first defined here
try.c: /usr/bin/ld: libcrypto_sign_sphincss256sha256simple.a(sha256.o):.../supercop-data/hydra5/amd64/try/c/gcc_-march=native_-mtune=native_-O3_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_sign/sphincss256sha256simple/ref/work/sha256.h:26: multiple definition of `state_seeded'; libcrypto_sign_sphincss256sha256simple.a(thash_sha256_simple.o):.../supercop-data/hydra5/amd64/try/c/gcc_-march=native_-mtune=native_-O3_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_sign/sphincss256sha256simple/ref/work/sha256.h:26: first defined here
try.c: collect2: error: ld returned 1 exit status
Number of similar (implementation,compiler) pairs: 1, namely:
Implementation | Compiler |
T:ref | gcc -march=native -mtune=native -O3 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (11.4.0) |
Compiler output
try.c: /usr/bin/ld: libcrypto_sign_sphincss256sha256simple.a(hash_sha256.o):.../supercop-data/hydra5/amd64/try/c/gcc_-march=native_-mtune=native_-O_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_sign/sphincss256sha256simple/ref/work/sha256.h:26: multiple definition of `state_seeded'; libcrypto_sign_sphincss256sha256simple.a(thash_sha256_simple.o):.../supercop-data/hydra5/amd64/try/c/gcc_-march=native_-mtune=native_-O_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_sign/sphincss256sha256simple/ref/work/sha256.h:26: first defined here
try.c: /usr/bin/ld: libcrypto_sign_sphincss256sha256simple.a(sha256.o):.../supercop-data/hydra5/amd64/try/c/gcc_-march=native_-mtune=native_-O_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_sign/sphincss256sha256simple/ref/work/sha256.h:26: multiple definition of `state_seeded'; libcrypto_sign_sphincss256sha256simple.a(thash_sha256_simple.o):.../supercop-data/hydra5/amd64/try/c/gcc_-march=native_-mtune=native_-O_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_sign/sphincss256sha256simple/ref/work/sha256.h:26: first defined here
try.c: collect2: error: ld returned 1 exit status
Number of similar (implementation,compiler) pairs: 1, namely:
Implementation | Compiler |
T:ref | gcc -march=native -mtune=native -O -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (11.4.0) |
Compiler output
try.c: /usr/bin/ld: libcrypto_sign_sphincss256sha256simple.a(hash_sha256.o):.../supercop-data/hydra5/amd64/try/c/gcc_-march=native_-mtune=native_-Os_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_sign/sphincss256sha256simple/ref/work/sha256.h:26: multiple definition of `state_seeded'; libcrypto_sign_sphincss256sha256simple.a(thash_sha256_simple.o):.../supercop-data/hydra5/amd64/try/c/gcc_-march=native_-mtune=native_-Os_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_sign/sphincss256sha256simple/ref/work/sha256.h:26: first defined here
try.c: /usr/bin/ld: libcrypto_sign_sphincss256sha256simple.a(sha256.o):.../supercop-data/hydra5/amd64/try/c/gcc_-march=native_-mtune=native_-Os_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_sign/sphincss256sha256simple/ref/work/sha256.h:26: multiple definition of `state_seeded'; libcrypto_sign_sphincss256sha256simple.a(thash_sha256_simple.o):.../supercop-data/hydra5/amd64/try/c/gcc_-march=native_-mtune=native_-Os_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_sign/sphincss256sha256simple/ref/work/sha256.h:26: first defined here
try.c: collect2: error: ld returned 1 exit status
Number of similar (implementation,compiler) pairs: 1, namely:
Implementation | Compiler |
T:ref | gcc -march=native -mtune=native -Os -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (11.4.0) |