Implementation notes: amd64, hydra4, crypto_aead/colm0v1

Computer: hydra4
Microarchitecture: amd64; K10 32nm (300f10)
Architecture: amd64
CPU ID: AuthenticAMD-00300f10-178bfbff
SUPERCOP version: 20240625
Operation: crypto_aead
Primitive: colm0v1
TimeObject sizeTest sizeImplementationCompilerBenchmark dateSUPERCOP version
27120014878 0 50031255 828 1560T:refgcc_-march=native_-mtune=native_-O3_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062820240625
28847213709 0 48830486 844 1496T:refclang_-march=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062820240625
28877811858 0 48827774 844 1496T:refclang_-march=native_-O2_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062820240625
29006513669 0 48830422 844 1496T:refclang_-mcpu=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062820240625
3486364351 0 48818164 836 1496T:refclang_-march=native_-Os_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062820240625
3850156313 0 50021511 828 1560T:refgcc_-march=native_-mtune=native_-O2_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062820240625
4586153920 0 50017298 804 1560T:refgcc_-march=native_-mtune=native_-Os_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062820240625
4962795061 0 50019630 820 1560T:refgcc_-march=native_-mtune=native_-O_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062820240625
5216394608 0 48819036 836 1496T:refclang_-march=native_-O_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062820240625

Compiler output


encrypt-optpar4.c: encrypt-optpar4.c:293:3: error: always_inline function '_mm_aesenc_si128' requires target feature 'aes', but would be inlined into function 'mac' that is compiled without support for 'aes'
encrypt-optpar4.c:                 AES_ENCRYPT4(block1,block2,block3,block4, expkey);
encrypt-optpar4.c:                 ^
encrypt-optpar4.c: encrypt-optpar4.c:170:12: note: expanded from macro 'AES_ENCRYPT4'
encrypt-optpar4.c:                 block1 = _mm_aesenc_si128 (block1,expkey[r]); \
encrypt-optpar4.c:                          ^
encrypt-optpar4.c: encrypt-optpar4.c:293:3: error: always_inline function '_mm_aesenc_si128' requires target feature 'aes', but would be inlined into function 'mac' that is compiled without support for 'aes'
encrypt-optpar4.c: encrypt-optpar4.c:171:12: note: expanded from macro 'AES_ENCRYPT4'
encrypt-optpar4.c:                 block2 = _mm_aesenc_si128 (block2,expkey[r]); \
encrypt-optpar4.c:                          ^
encrypt-optpar4.c: encrypt-optpar4.c:293:3: error: always_inline function '_mm_aesenc_si128' requires target feature 'aes', but would be inlined into function 'mac' that is compiled without support for 'aes'
encrypt-optpar4.c: encrypt-optpar4.c:172:12: note: expanded from macro 'AES_ENCRYPT4'
encrypt-optpar4.c:                 block3 = _mm_aesenc_si128 (block3,expkey[r]); \
encrypt-optpar4.c:                          ^
encrypt-optpar4.c: encrypt-optpar4.c:293:3: error: always_inline function '_mm_aesenc_si128' requires target feature 'aes', but would be inlined into function 'mac' that is compiled without support for 'aes'
encrypt-optpar4.c: encrypt-optpar4.c:173:12: note: expanded from macro 'AES_ENCRYPT4'
encrypt-optpar4.c:                 block4 = _mm_aesenc_si128 (block4,expkey[r]); \
encrypt-optpar4.c:                          ^
encrypt-optpar4.c: encrypt-optpar4.c:293:3: error: always_inline function '_mm_aesenclast_si128' requires target feature 'aes', but would be inlined into function 'mac' that is compiled without support for 'aes'
encrypt-optpar4.c: encrypt-optpar4.c:175:11: note: expanded from macro 'AES_ENCRYPT4'
encrypt-optpar4.c:         block1 = _mm_aesenclast_si128 (block1,expkey[10]); \
encrypt-optpar4.c:                  ^
encrypt-optpar4.c: encrypt-optpar4.c:293:3: error: always_inline function '_mm_aesenclast_si128' requires target feature 'aes', but would be inlined into function 'mac' that is compiled without support for 'aes'
encrypt-optpar4.c: encrypt-optpar4.c:176:11: note: expanded from macro 'AES_ENCRYPT4'
encrypt-optpar4.c:         block2 = _mm_aesenclast_si128 (block2,expkey[10]); \
encrypt-optpar4.c: ...

Number of similar (implementation,compiler) pairs: 5, namely:
ImplementationCompiler
T:aesni4clang -march=native -O2 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_11.0.1)
T:aesni4clang -march=native -O3 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_11.0.1)
T:aesni4clang -march=native -O -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_11.0.1)
T:aesni4clang -march=native -Os -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_11.0.1)
T:aesni4clang -mcpu=native -O3 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_11.0.1)

Compiler output


encrypt-optpar4.c: encrypt-optpar4.c:23:13: warning: 'printblock' defined but not used [-Wunused-function]
encrypt-optpar4.c:    23 | static void printblock(const char* caption, unsigned char* block, unsigned char nbytes, int reg)
encrypt-optpar4.c:       |             ^~~~~~~~~~
encrypt-optpar4.c: In file included from /usr/lib/gcc/x86_64-linux-gnu/10/include/immintrin.h:35,
encrypt-optpar4.c:                  from encrypt-optpar4.c:15:
encrypt-optpar4.c: encrypt-optpar4.c: In function 'byte_swap':
encrypt-optpar4.c: /usr/lib/gcc/x86_64-linux-gnu/10/include/tmmintrin.h:136:1: error: inlining failed in call to 'always_inline' '_mm_shuffle_epi8': target specific option mismatch
encrypt-optpar4.c:   136 | _mm_shuffle_epi8 (__m128i __X, __m128i __Y)
encrypt-optpar4.c:       | ^~~~~~~~~~~~~~~~
encrypt-optpar4.c: encrypt-optpar4.c:47:9: note: called from here
encrypt-optpar4.c:    47 |  return _mm_shuffle_epi8(x, BSWAP_MASK);
encrypt-optpar4.c:       |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
encrypt-optpar4.c: In file included from /usr/lib/gcc/x86_64-linux-gnu/10/include/immintrin.h:35,
encrypt-optpar4.c:                  from encrypt-optpar4.c:15:
encrypt-optpar4.c: /usr/lib/gcc/x86_64-linux-gnu/10/include/tmmintrin.h:136:1: error: inlining failed in call to 'always_inline' '_mm_shuffle_epi8': target specific option mismatch
encrypt-optpar4.c:   136 | _mm_shuffle_epi8 (__m128i __X, __m128i __Y)
encrypt-optpar4.c:       | ^~~~~~~~~~~~~~~~
encrypt-optpar4.c: encrypt-optpar4.c:47:9: note: called from here
encrypt-optpar4.c:    47 |  return _mm_shuffle_epi8(x, BSWAP_MASK);
encrypt-optpar4.c:       |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Number of similar (implementation,compiler) pairs: 4, namely:
ImplementationCompiler
T:aesni4gcc -march=native -mtune=native -O2 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (10.2.1_20210110)
T:aesni4gcc -march=native -mtune=native -O3 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (10.2.1_20210110)
T:aesni4gcc -march=native -mtune=native -O -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (10.2.1_20210110)
T:aesni4gcc -march=native -mtune=native -Os -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (10.2.1_20210110)

Compiler output


encrypt-optpar8.c: encrypt-optpar8.c:339:3: error: always_inline function '_mm_aesenc_si128' requires target feature 'aes', but would be inlined into function 'mac' that is compiled without support for 'aes'
encrypt-optpar8.c:                 AES_ENCRYPT8(block1,block2,block3,block4,block5,block6,block7,block8, expkey);
encrypt-optpar8.c:                 ^
encrypt-optpar8.c: encrypt-optpar8.c:195:12: note: expanded from macro 'AES_ENCRYPT8'
encrypt-optpar8.c:                 block1 = _mm_aesenc_si128 (block1,expkey[r]); \
encrypt-optpar8.c:                          ^
encrypt-optpar8.c: encrypt-optpar8.c:339:3: error: always_inline function '_mm_aesenc_si128' requires target feature 'aes', but would be inlined into function 'mac' that is compiled without support for 'aes'
encrypt-optpar8.c: encrypt-optpar8.c:196:12: note: expanded from macro 'AES_ENCRYPT8'
encrypt-optpar8.c:                 block2 = _mm_aesenc_si128 (block2,expkey[r]); \
encrypt-optpar8.c:                          ^
encrypt-optpar8.c: encrypt-optpar8.c:339:3: error: always_inline function '_mm_aesenc_si128' requires target feature 'aes', but would be inlined into function 'mac' that is compiled without support for 'aes'
encrypt-optpar8.c: encrypt-optpar8.c:197:12: note: expanded from macro 'AES_ENCRYPT8'
encrypt-optpar8.c:                 block3 = _mm_aesenc_si128 (block3,expkey[r]); \
encrypt-optpar8.c:                          ^
encrypt-optpar8.c: encrypt-optpar8.c:339:3: error: always_inline function '_mm_aesenc_si128' requires target feature 'aes', but would be inlined into function 'mac' that is compiled without support for 'aes'
encrypt-optpar8.c: encrypt-optpar8.c:198:12: note: expanded from macro 'AES_ENCRYPT8'
encrypt-optpar8.c:                 block4 = _mm_aesenc_si128 (block4,expkey[r]); \
encrypt-optpar8.c:                          ^
encrypt-optpar8.c: encrypt-optpar8.c:339:3: error: always_inline function '_mm_aesenc_si128' requires target feature 'aes', but would be inlined into function 'mac' that is compiled without support for 'aes'
encrypt-optpar8.c: encrypt-optpar8.c:199:12: note: expanded from macro 'AES_ENCRYPT8'
encrypt-optpar8.c:                 block5 = _mm_aesenc_si128 (block5, expkey[r]); \
encrypt-optpar8.c:                          ^
encrypt-optpar8.c: encrypt-optpar8.c:339:3: error: always_inline function '_mm_aesenc_si128' requires target feature 'aes', but would be inlined into function 'mac' that is compiled without support for 'aes'
encrypt-optpar8.c: encrypt-optpar8.c:200:12: note: expanded from macro 'AES_ENCRYPT8'
encrypt-optpar8.c:                 block6 = _mm_aesenc_si128 (block6, expkey[r]); \
encrypt-optpar8.c: ...

Number of similar (implementation,compiler) pairs: 5, namely:
ImplementationCompiler
T:aesni8clang -march=native -O2 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_11.0.1)
T:aesni8clang -march=native -O3 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_11.0.1)
T:aesni8clang -march=native -O -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_11.0.1)
T:aesni8clang -march=native -Os -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_11.0.1)
T:aesni8clang -mcpu=native -O3 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_11.0.1)

Compiler output


encrypt-optpar8.c: encrypt-optpar8.c:23:13: warning: 'printblock' defined but not used [-Wunused-function]
encrypt-optpar8.c:    23 | static void printblock(const char* caption, unsigned char* block, unsigned char nbytes, int reg)
encrypt-optpar8.c:       |             ^~~~~~~~~~
encrypt-optpar8.c: In file included from /usr/lib/gcc/x86_64-linux-gnu/10/include/immintrin.h:35,
encrypt-optpar8.c:                  from encrypt-optpar8.c:15:
encrypt-optpar8.c: encrypt-optpar8.c: In function 'byte_swap':
encrypt-optpar8.c: /usr/lib/gcc/x86_64-linux-gnu/10/include/tmmintrin.h:136:1: error: inlining failed in call to 'always_inline' '_mm_shuffle_epi8': target specific option mismatch
encrypt-optpar8.c:   136 | _mm_shuffle_epi8 (__m128i __X, __m128i __Y)
encrypt-optpar8.c:       | ^~~~~~~~~~~~~~~~
encrypt-optpar8.c: encrypt-optpar8.c:48:9: note: called from here
encrypt-optpar8.c:    48 |  return _mm_shuffle_epi8(x, BSWAP_MASK);
encrypt-optpar8.c:       |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
encrypt-optpar8.c: In file included from /usr/lib/gcc/x86_64-linux-gnu/10/include/immintrin.h:35,
encrypt-optpar8.c:                  from encrypt-optpar8.c:15:
encrypt-optpar8.c: /usr/lib/gcc/x86_64-linux-gnu/10/include/tmmintrin.h:136:1: error: inlining failed in call to 'always_inline' '_mm_shuffle_epi8': target specific option mismatch
encrypt-optpar8.c:   136 | _mm_shuffle_epi8 (__m128i __X, __m128i __Y)
encrypt-optpar8.c:       | ^~~~~~~~~~~~~~~~
encrypt-optpar8.c: encrypt-optpar8.c:48:9: note: called from here
encrypt-optpar8.c:    48 |  return _mm_shuffle_epi8(x, BSWAP_MASK);
encrypt-optpar8.c:       |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Number of similar (implementation,compiler) pairs: 4, namely:
ImplementationCompiler
T:aesni8gcc -march=native -mtune=native -O2 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (10.2.1_20210110)
T:aesni8gcc -march=native -mtune=native -O3 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (10.2.1_20210110)
T:aesni8gcc -march=native -mtune=native -O -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (10.2.1_20210110)
T:aesni8gcc -march=native -mtune=native -Os -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (10.2.1_20210110)

Compiler output


encrypt.c: In file included from encrypt.c:10:
encrypt.c: ./module.h:112:6: warning: unused variable 'i' [-Wunused-variable]
encrypt.c:         int i;
encrypt.c:             ^
encrypt.c: encrypt.c:136:33: warning: unused variable 'blen' [-Wunused-variable]
encrypt.c:         int i; u8 zeroes[16], ozs[16], blen = 16, Is_Final = 0, Is_complete =1;
encrypt.c:                                        ^
encrypt.c: encrypt.c:136:58: warning: unused variable 'Is_complete' [-Wunused-variable]
encrypt.c:         int i; u8 zeroes[16], ozs[16], blen = 16, Is_Final = 0, Is_complete =1;
encrypt.c:                                                                 ^
encrypt.c: encrypt.c:137:21: warning: unused variable 'tlen' [-Wunused-variable]
encrypt.c:         unsigned long long tlen, blk_ctr=0, blk_ctr1=0;
encrypt.c:                            ^
encrypt.c: encrypt.c:137:27: warning: unused variable 'blk_ctr' [-Wunused-variable]
encrypt.c:         unsigned long long tlen, blk_ctr=0, blk_ctr1=0;
encrypt.c:                                  ^
encrypt.c: encrypt.c:137:38: warning: unused variable 'blk_ctr1' [-Wunused-variable]
encrypt.c:         unsigned long long tlen, blk_ctr=0, blk_ctr1=0;
encrypt.c:                                             ^
encrypt.c: 6 warnings generated.

Number of similar (implementation,compiler) pairs: 5, namely:
ImplementationCompiler
T:refclang -march=native -O2 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_11.0.1)
T:refclang -march=native -O3 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_11.0.1)
T:refclang -march=native -O -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_11.0.1)
T:refclang -march=native -Os -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_11.0.1)
T:refclang -mcpu=native -O3 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_11.0.1)

Compiler output


encrypt.c: In file included from encrypt.c:10:
encrypt.c: module.h: In function 'process_block':
encrypt.c: module.h:112:6: warning: unused variable 'i' [-Wunused-variable]
encrypt.c:   112 |  int i;
encrypt.c:       |      ^
encrypt.c: encrypt.c: In function 'crypto_aead_colm0v1_ref_timingleaks_decrypt':
encrypt.c: encrypt.c:137:38: warning: unused variable 'blk_ctr1' [-Wunused-variable]
encrypt.c:   137 |  unsigned long long tlen, blk_ctr=0, blk_ctr1=0;
encrypt.c:       |                                      ^~~~~~~~
encrypt.c: encrypt.c:137:27: warning: unused variable 'blk_ctr' [-Wunused-variable]
encrypt.c:   137 |  unsigned long long tlen, blk_ctr=0, blk_ctr1=0;
encrypt.c:       |                           ^~~~~~~
encrypt.c: encrypt.c:137:21: warning: unused variable 'tlen' [-Wunused-variable]
encrypt.c:   137 |  unsigned long long tlen, blk_ctr=0, blk_ctr1=0;
encrypt.c:       |                     ^~~~
encrypt.c: encrypt.c:136:58: warning: unused variable 'Is_complete' [-Wunused-variable]
encrypt.c:   136 |  int i; u8 zeroes[16], ozs[16], blen = 16, Is_Final = 0, Is_complete =1;
encrypt.c:       |                                                          ^~~~~~~~~~~
encrypt.c: encrypt.c:136:33: warning: unused variable 'blen' [-Wunused-variable]
encrypt.c:   136 |  int i; u8 zeroes[16], ozs[16], blen = 16, Is_Final = 0, Is_complete =1;
encrypt.c:       |                                 ^~~~
encrypt.c: encrypt.c:136:24: warning: variable 'ozs' set but not used [-Wunused-but-set-variable]
encrypt.c:   136 |  int i; u8 zeroes[16], ozs[16], blen = 16, Is_Final = 0, Is_complete =1;
encrypt.c:       |                        ^~~

Number of similar (implementation,compiler) pairs: 4, namely:
ImplementationCompiler
T:refgcc -march=native -mtune=native -O2 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (10.2.1_20210110)
T:refgcc -march=native -mtune=native -O3 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (10.2.1_20210110)
T:refgcc -march=native -mtune=native -O -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (10.2.1_20210110)
T:refgcc -march=native -mtune=native -Os -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (10.2.1_20210110)