Implementation notes: aarch64, gcc185, crypto_sign/sphincsf128sha256simple

Computer: gcc185
Microarchitecture: aarch64; Skylark (503f0002)
Architecture: aarch64
CPU ID: 503f0002
SUPERCOP version: 20240107
Operation: crypto_sign
Primitive: sphincsf128sha256simple
TimeObject sizeTest sizeImplementationCompilerBenchmark dateSUPERCOP version
21659767518624 0 036936 856 1648T:refgcc_-march=native_-mtune=native_-O3_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023123120231212
23910697517476 0 034696 856 1632T:refgcc_-march=native_-mtune=native_-O2_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023123120231212
27956115017176 0 034248 856 1632T:refgcc_-march=native_-mtune=native_-O_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023123120231212
28417725016336 0 032408 840 1616T:refgcc_-march=native_-mtune=native_-Os_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023123120231212

Compiler output

Implementation: T:avx2
Security model: timingleaks
Compiler: clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
hash_sha256x8.c: In file included from hash_sha256x8.c:10:
hash_sha256x8.c: In file included from ./sha256avx.h:3:
hash_sha256x8.c: /usr/bin/../lib/clang/17/include/immintrin.h:14:2: error: "This header is only meant to be used on x86 and x64 architecture"
hash_sha256x8.c: 14 | #error "This header is only meant to be used on x86 and x64 architecture"
hash_sha256x8.c: | ^
hash_sha256x8.c: In file included from hash_sha256x8.c:10:
hash_sha256x8.c: In file included from ./sha256avx.h:3:
hash_sha256x8.c: In file included from /usr/bin/../lib/clang/17/include/immintrin.h:17:
hash_sha256x8.c: In file included from /usr/bin/../lib/clang/17/include/x86gprintrin.h:15:
hash_sha256x8.c: /usr/bin/../lib/clang/17/include/hresetintrin.h:42:27: error: invalid input constraint 'a' in asm
hash_sha256x8.c: 42 | __asm__ ("hreset $0" :: "a"(__eax));
hash_sha256x8.c: | ^
hash_sha256x8.c: In file included from hash_sha256x8.c:10:
hash_sha256x8.c: In file included from ./sha256avx.h:3:
hash_sha256x8.c: In file included from /usr/bin/../lib/clang/17/include/immintrin.h:21:
hash_sha256x8.c: /usr/bin/../lib/clang/17/include/mmintrin.h:14:2: error: "This header is only meant to be used on x86 and x64 architecture"
hash_sha256x8.c: 14 | #error "This header is only meant to be used on x86 and x64 architecture"
hash_sha256x8.c: | ^
hash_sha256x8.c: /usr/bin/../lib/clang/17/include/mmintrin.h:54:12: error: invalid conversion between vector type '__m64' (vector of 1 'long long' value) and integer type 'int' of different size
hash_sha256x8.c: 54 | return (__m64)__builtin_ia32_vec_init_v2si(__i, 0);
hash_sha256x8.c: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
hash_sha256x8.c: /usr/bin/../lib/clang/17/include/mmintrin.h:133:12: error: invalid conversion between vector type '__m64' (vector of 1 'long long' value) and integer type 'int' of different size
hash_sha256x8.c: 133 | return (__m64)__builtin_ia32_packsswb((__v4hi)__m1, (__v4hi)__m2);
hash_sha256x8.c: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
hash_sha256x8.c: /usr/bin/../lib/clang/17/include/mmintrin.h:163:12: error: invalid conversion between vector type '__m64' (vector of 1 'long long' value) and integer type 'int' of different size
hash_sha256x8.c: ...

Number of similar (compiler,implementation) pairs: 5, namely:
CompilerImplementations
clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:avx2
clang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:avx2
clang -march=native -O -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:avx2
clang -march=native -Os -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:avx2
clang -mcpu=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:avx2

Compiler output

Implementation: T:avx2
Security model: timingleaks
Compiler: gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE
hash_sha256x8.c: In file included from hash_sha256x8.c:10:
hash_sha256x8.c: sha256avx.h:3:10: fatal error: immintrin.h: No such file or directory
hash_sha256x8.c: #include "immintrin.h"
hash_sha256x8.c: ^~~~~~~~~~~~~
hash_sha256x8.c: compilation terminated.

Number of similar (compiler,implementation) pairs: 4, namely:
CompilerImplementations
gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE T:avx2
gcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv -fPIC -fPIE T:avx2
gcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv -fPIC -fPIE T:avx2
gcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv -fPIC -fPIE T:avx2

Compiler output

Implementation: T:ref
Security model: timingleaks
Compiler: clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
try.c: libcrypto_sign_sphincsf128sha256simple.a(hash_sha256.o):(.bss+0x0): multiple definition of `state_seeded'
try.c: libcrypto_sign_sphincsf128sha256simple.a(thash_sha256_simple.o):(.bss+0x0): first defined here
try.c: libcrypto_sign_sphincsf128sha256simple.a(sha256.o):(.bss+0x0): multiple definition of `state_seeded'
try.c: libcrypto_sign_sphincsf128sha256simple.a(thash_sha256_simple.o):(.bss+0x0): first defined here
try.c: clang: error: linker command failed with exit code 1 (use -v to see invocation)

Number of similar (compiler,implementation) pairs: 5, namely:
CompilerImplementations
clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:ref
clang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:ref
clang -march=native -O -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:ref
clang -march=native -Os -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:ref
clang -mcpu=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:ref