Implementation notes: amd64, raptor, crypto_aead/xoodyakv1

Computer: raptor
Microarchitecture: amd64; Raptor Cove (b06a2)
Architecture: amd64
CPU ID: GenuineIntel-000b06a2-40-bfebfbff
SUPERCOP version: 20231107
Operation: crypto_aead
Primitive: xoodyakv1
TimeObject sizeTest sizeImplementationCompilerBenchmark dateSUPERCOP version
5023221862 0 036682 772 1064T:xkcp/SSE2clang_-march=native_-O2_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023110820230530
5073418019 0 031706 764 1096T:xkcp/SSE2gcc_-march=native_-mtune=native_-O2_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023110820230530
5081521494 0 032570 772 1032T:xkcp/SSE2clang_-march=native_-O_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023110820230530
5089918827 0 034610 764 1096T:xkcp/SSE2gcc_-march=native_-mtune=native_-O3_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023110820230530
5218416765 0 030186 764 1096T:xkcp/SSE2gcc_-march=native_-mtune=native_-O_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023110820230530
5257621019 0 032780 764 1096T:xkcp/SSE2clang_-march=native_-Os_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023110820230530
5269822398 0 037346 772 1064T:xkcp/SSE2clang_-march=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023110820230530
5467716483 0 028529 740 1064T:xkcp/SSE2gcc_-march=native_-mtune=native_-Os_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023110820230530
5987412096 0 025946 780 1032T:xkcp/plain-uaclang_-march=native_-O_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023110820230530
6232512037 0 025746 772 1096T:xkcp/plain-uagcc_-march=native_-mtune=native_-O_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023110820230530
6413513514 0 029570 772 1096T:xkcp/plain-uagcc_-march=native_-mtune=native_-O3_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023110820230530
649076226 0 023914 780 1064T:refclang_-march=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023110820230530
6513612934 0 029162 780 1032T:xkcp/plain-uaclang_-mcpu=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023110820230530
6517810805 0 023161 748 1064T:xkcp/plain-uagcc_-march=native_-mtune=native_-Os_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023110820230530
6585512722 0 026714 772 1096T:xkcp/plain-uagcc_-march=native_-mtune=native_-O2_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023110820230530
6772213306 0 030834 780 1064T:xkcp/plain-uaclang_-march=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023110820230530
6778212770 0 030154 780 1064T:xkcp/plain-uaclang_-march=native_-O2_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023110820230530
6803511820 0 026132 772 1096T:xkcp/plain-uaclang_-march=native_-Os_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023110820230530
693996526 0 022730 780 1032T:refclang_-mcpu=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023110820230530
1096806330 0 023906 780 1064T:refclang_-march=native_-O2_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023110820230530
3104178847 0 024930 772 1096T:refgcc_-march=native_-mtune=native_-O3_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023110820230530
4129575063 0 019042 772 1096T:refgcc_-march=native_-mtune=native_-O2_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023110820230530
4754744835 0 019324 772 1096T:refclang_-march=native_-Os_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023110820230530
5117565322 0 019138 780 1032T:refclang_-march=native_-O_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023110820230530
5204334982 0 018682 772 1096T:refgcc_-march=native_-mtune=native_-O_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023110820230530
5576604267 0 016641 748 1064T:refgcc_-march=native_-mtune=native_-Os_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023110820230530
210338340843 144 12061655 1156 1160T:refcppclang++_-march=native_-O2_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023110820230530
211183342192 144 12063115 1156 1160T:refcppclang++_-march=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023110820230530
302613448168 144 12069474 1732 1288T:refcppg++_-march=native_-mtune=native_-O3_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023110820230530
311236439535 168 12056676 1180 1160T:refcppclang++_-march=native_-O_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023110820230530
327603032977 144 12051257 1172 1224T:refcppclang++_-march=native_-Os_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023110820230530
365798840083 144 12059295 1732 1288T:refcppg++_-march=native_-mtune=native_-O2_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023110820230530
431424032723 144 12051011 1724 1288T:refcppg++_-march=native_-mtune=native_-O_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023110820230530
451536027549 144 12044807 1212 1256T:refcppg++_-march=native_-mtune=native_-Os_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023110820230530

Compiler output

Implementation: T:xkcp/AVR8
Security model: timingleaks
Compiler: clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
Xoodoo-avr8-u1.s: Xoodoo-avr8-u1.s:2:16: error: unexpected token in argument list
Xoodoo-avr8-u1.s: ; The eXtended Keccak Code Package (XKCP)
Xoodoo-avr8-u1.s: ^
Xoodoo-avr8-u1.s: Xoodoo-avr8-u1.s:5:14: error: unexpected token in argument list
Xoodoo-avr8-u1.s: ; The Xoodoo permutation, designed by Joan Daemen, Seth Hoffert, Gilles Van Assche and Ronny Van Keer.
Xoodoo-avr8-u1.s: ^
Xoodoo-avr8-u1.s: Xoodoo-avr8-u1.s:7:21: error: unexpected token in argument list
Xoodoo-avr8-u1.s: ; Implementation by Ronny Van Keer, hereby denoted as "the implementer".
Xoodoo-avr8-u1.s: ^
Xoodoo-avr8-u1.s: Xoodoo-avr8-u1.s:9:12: error: unexpected token in argument list
Xoodoo-avr8-u1.s: ; For more information, feedback or questions, please refer to the Keccak Team website:
Xoodoo-avr8-u1.s: ^
Xoodoo-avr8-u1.s: Xoodoo-avr8-u1.s:10:3: error: symbol 'https' is already defined
Xoodoo-avr8-u1.s: ; https://keccak.team/
Xoodoo-avr8-u1.s: ^
Xoodoo-avr8-u1.s: Xoodoo-avr8-u1.s:12:10: error: unexpected token in argument list
Xoodoo-avr8-u1.s: ; To the extent possible under law, the implementer has waived all copyright
Xoodoo-avr8-u1.s: ^
Xoodoo-avr8-u1.s: Xoodoo-avr8-u1.s:13:15: error: unexpected token in argument list
Xoodoo-avr8-u1.s: ; and related or neighboring rights to the source code in this file.
Xoodoo-avr8-u1.s: ^
Xoodoo-avr8-u1.s: Xoodoo-avr8-u1.s:16:3: error: unexpected token at start of statement
Xoodoo-avr8-u1.s: ; ---
Xoodoo-avr8-u1.s: ^
Xoodoo-avr8-u1.s: Xoodoo-avr8-u1.s:18:13: error: unexpected token in argument list
Xoodoo-avr8-u1.s: ...

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

Compiler output

Implementation: T:xkcp/AVR8
Security model: timingleaks
Compiler: gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE
Xoodoo-avr8-u1.s: Xoodoo-avr8-u1.s: Assembler messages:
Xoodoo-avr8-u1.s: Xoodoo-avr8-u1.s:2: Error: no such instruction: `the eXtended Keccak Code Package (XKCP)'
Xoodoo-avr8-u1.s: Xoodoo-avr8-u1.s:5: Error: no such instruction: `the Xoodoo permutation,designed by Joan Daemen,Seth Hoffert,Gilles Van Assche and Ronny Van Keer.'
Xoodoo-avr8-u1.s: Xoodoo-avr8-u1.s:7: Error: no such instruction: `implementation by Ronny Van Keer,hereby denoted as "the implementer".'
Xoodoo-avr8-u1.s: Xoodoo-avr8-u1.s:9: Error: no such instruction: `for more information,feedback or questions,please refer to the Keccak Team website:'
Xoodoo-avr8-u1.s: Xoodoo-avr8-u1.s:12: Error: no such instruction: `to the extent possible under law,the implementer has waived all copyright'
Xoodoo-avr8-u1.s: Xoodoo-avr8-u1.s:13: Error: junk `or neighboring rights to the source code in this file.' after expression
Xoodoo-avr8-u1.s: Xoodoo-avr8-u1.s:13: Error: number of operands mismatch for `and'
Xoodoo-avr8-u1.s: Xoodoo-avr8-u1.s:16: Error: junk at end of line, first unrecognized character is `-'
Xoodoo-avr8-u1.s: Xoodoo-avr8-u1.s:18: Error: no such instruction: `this file implements Xoodoo in a SnP-compatible way.'
Xoodoo-avr8-u1.s: Xoodoo-avr8-u1.s:19: Error: no such instruction: `please refer to SnP-documentation.h for more details.'
Xoodoo-avr8-u1.s: Xoodoo-avr8-u1.s:21: Error: no such instruction: `this implementation comes with Xoodoo-SnP.h in the same folder.'
Xoodoo-avr8-u1.s: Xoodoo-avr8-u1.s:22: Error: no such instruction: `please refer to LowLevel.build for the exact list of other files it must be combined with.'
Xoodoo-avr8-u1.s: Xoodoo-avr8-u1.s:25: Error: no such instruction: `tested on ATmega1280 simulator'
Xoodoo-avr8-u1.s: Xoodoo-avr8-u1.s:27: Error: no such instruction: `registers used in all routines'
Xoodoo-avr8-u1.s: Xoodoo-avr8-u1.s:35: Error: junk at end of line, first unrecognized character is `-'
Xoodoo-avr8-u1.s: Xoodoo-avr8-u1.s:37: Error: no such instruction: `void Xoodoo_StaticInitialize( void)'
Xoodoo-avr8-u1.s: Xoodoo-avr8-u1.s:41: Error: junk at end of line, first unrecognized character is `-'
Xoodoo-avr8-u1.s: Xoodoo-avr8-u1.s:43: Error: no such instruction: `void Xoodoo_Initialize(void *state)'
Xoodoo-avr8-u1.s: Xoodoo-avr8-u1.s:45: Error: no such instruction: `argument state is passed in r24:r25'
Xoodoo-avr8-u1.s: Xoodoo-avr8-u1.s:49: Error: too many memory references for `mov'
Xoodoo-avr8-u1.s: Xoodoo-avr8-u1.s:50: Error: no such instruction: `ldi r23,3*4/2'
Xoodoo-avr8-u1.s: Xoodoo-avr8-u1.s:50: Error: no such instruction: `clear state (8 bytes/2 lanes)per iteration'
Xoodoo-avr8-u1.s: Xoodoo-avr8-u1.s:52: Error: no such instruction: `st z+,zero'
Xoodoo-avr8-u1.s: Xoodoo-avr8-u1.s:53: Error: no such instruction: `st z+,zero'
Xoodoo-avr8-u1.s: ...

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

Compiler output

Implementation: T:xkcp/AVX512
Security model: timingleaks
Compiler: clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
Xoodoo-SIMD512.c: Xoodoo-SIMD512.c:379:9: error: '__builtin_ia32_pternlogd128_mask' needs target feature avx512vl
Xoodoo-SIMD512.c: Round(RC[i]);
Xoodoo-SIMD512.c: ^
Xoodoo-SIMD512.c: Xoodoo-SIMD512.c:328:29: note: expanded from macro 'Round'
Xoodoo-SIMD512.c: p = XOR3( a0, a1, a2 ); \
Xoodoo-SIMD512.c: ^
Xoodoo-SIMD512.c: Xoodoo-SIMD512.c:311:33: note: expanded from macro 'XOR3'
Xoodoo-SIMD512.c: #define XOR3(a,b,c) _mm_ternarylogic_epi32(a,b,c,0x96)
Xoodoo-SIMD512.c: ^
Xoodoo-SIMD512.c: /usr/lib64/clang/16/include/avx512vlintrin.h:6529:13: note: expanded from macro '_mm_ternarylogic_epi32'
Xoodoo-SIMD512.c: ((__m128i)__builtin_ia32_pternlogd128_mask( \
Xoodoo-SIMD512.c: ^
Xoodoo-SIMD512.c: Xoodoo-SIMD512.c:379:9: error: '__builtin_ia32_prold128' needs target feature avx512vl
Xoodoo-SIMD512.c: Xoodoo-SIMD512.c:330:29: note: expanded from macro 'Round'
Xoodoo-SIMD512.c: e = ROL32( p, 5 ); \
Xoodoo-SIMD512.c: ^
Xoodoo-SIMD512.c: Xoodoo-SIMD512.c:305:33: note: expanded from macro 'ROL32'
Xoodoo-SIMD512.c: #define ROL32(a, o) _mm_rol_epi32(a, o)
Xoodoo-SIMD512.c: ^
Xoodoo-SIMD512.c: /usr/lib64/clang/16/include/avx512vlintrin.h:4301:13: note: expanded from macro '_mm_rol_epi32'
Xoodoo-SIMD512.c: ((__m128i)__builtin_ia32_prold128((__v4si)(__m128i)(a), (int)(b)))
Xoodoo-SIMD512.c: ^
Xoodoo-SIMD512.c: Xoodoo-SIMD512.c:379:9: error: '__builtin_ia32_prold128' needs target feature avx512vl
Xoodoo-SIMD512.c: Xoodoo-SIMD512.c:331:29: note: expanded from macro 'Round'
Xoodoo-SIMD512.c: p = ROL32( p, 14 ); \
Xoodoo-SIMD512.c: ...

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

Compiler output

Implementation: T:xkcp/AVX512
Security model: timingleaks
Compiler: gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE
Xoodoo-SIMD512.c: Xoodoo-SIMD512.c: In function 'Xoofff_AddIs':
Xoodoo-SIMD512.c: Xoodoo-SIMD512.c:429:16: warning: AVX512F vector return without AVX512F enabled changes the ABI [-Wpsabi]
Xoodoo-SIMD512.c: 429 | lanes1 = LOAD512u(input[ 0]);
Xoodoo-SIMD512.c: | ^
Xoodoo-SIMD512.c: In file included from /usr/lib/gcc/x86_64-redhat-linux/13/include/immintrin.h:61,
Xoodoo-SIMD512.c: from Xoodoo-SIMD512.c:24:
Xoodoo-SIMD512.c: /usr/lib/gcc/x86_64-redhat-linux/13/include/avx512vlintrin.h: In function 'Xoodoo_Permute_Nrounds':
Xoodoo-SIMD512.c: /usr/lib/gcc/x86_64-redhat-linux/13/include/avx512vlintrin.h:11603:1: error: inlining failed in call to 'always_inline' '_mm_rol_epi32': target specific option mismatch
Xoodoo-SIMD512.c: 11603 | _mm_rol_epi32 (__m128i __A, const int __B)
Xoodoo-SIMD512.c: | ^~~~~~~~~~~~~
Xoodoo-SIMD512.c: Xoodoo-SIMD512.c:305:33: note: called from here
Xoodoo-SIMD512.c: 305 | #define ROL32(a, o) _mm_rol_epi32(a, o)
Xoodoo-SIMD512.c: | ^~~~~~~~~~~~~~~~~~~
Xoodoo-SIMD512.c: Xoodoo-SIMD512.c:353:30: note: in expansion of macro 'ROL32'
Xoodoo-SIMD512.c: 353 | a1 = ROL32(a1, 1); \
Xoodoo-SIMD512.c: | ^~~~~
Xoodoo-SIMD512.c: Xoodoo-SIMD512.c:379:9: note: in expansion of macro 'Round'
Xoodoo-SIMD512.c: 379 | Round(RC[i]);
Xoodoo-SIMD512.c: | ^~~~~
Xoodoo-SIMD512.c: /usr/lib/gcc/x86_64-redhat-linux/13/include/avx512vlintrin.h:10698:1: error: inlining failed in call to 'always_inline' '_mm_ternarylogic_epi32': target specific option mismatch
Xoodoo-SIMD512.c: 10698 | _mm_ternarylogic_epi32 (__m128i __A, __m128i __B, __m128i __C,
Xoodoo-SIMD512.c: | ^~~~~~~~~~~~~~~~~~~~~~
Xoodoo-SIMD512.c: Xoodoo-SIMD512.c:312:33: note: called from here
Xoodoo-SIMD512.c: 312 | #define Chi(a,b,c) _mm_ternarylogic_epi32(a,b,c,0xD2)
Xoodoo-SIMD512.c: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Xoodoo-SIMD512.c: ...

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

Compiler output

Implementation: T:xkcp/SSE2
Security model: timingleaks
Compiler: clang -mcpu=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
Xoodoo-SIMD128.c: Xoodoo-SIMD128.c:288:9: error: always_inline function '_mm_shuffle_epi8' requires target feature 'ssse3', but would be inlined into function 'Xoodoo_Permute_Nrounds' that is compiled without support for 'ssse3'
Xoodoo-SIMD128.c: Round(RC[i]);
Xoodoo-SIMD128.c: ^
Xoodoo-SIMD128.c: Xoodoo-SIMD128.c:263:25: note: expanded from macro 'Round'
Xoodoo-SIMD128.c: Rho_east(); \
Xoodoo-SIMD128.c: ^
Xoodoo-SIMD128.c: Xoodoo-SIMD128.c:251:30: note: expanded from macro 'Rho_east'
Xoodoo-SIMD128.c: a2 = _mm_shuffle_epi8( a2, rhoEast2);
Xoodoo-SIMD128.c: ^
Xoodoo-SIMD128.c: 1 error generated.

Number of similar (compiler,implementation) pairs: 1, namely:
CompilerImplementations
clang -mcpu=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:xkcp/SSE2