Implementation notes: amd64, cubi10, crypto_aead/colm0v1

Computer: cubi10
Microarchitecture: amd64; Comet Lake (806ec)
Architecture: amd64
CPU ID: GenuineIntel-000806ec-bfebfbff
SUPERCOP version: 20240625
Operation: crypto_aead
Primitive: colm0v1
TimeObject sizeTest sizeImplementationCompilerBenchmark dateSUPERCOP version
822612256 0 028688 780 1080T:aesni4gcc_-march=native_-mtune=native_-O3_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062720240625
82647306 0 021808 780 1080T:aesni4gcc_-march=native_-mtune=native_-O2_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062720240625
83126865 0 020342 804 1016T:aesni4clang_-march=native_-Os_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062720240625
86999871 0 026808 812 1048T:aesni4clang_-march=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062720240625
87073561 0 016475 756 1048T:aesni4gcc_-march=native_-mtune=native_-Os_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062720240625
87199871 0 026712 812 1048T:aesni4clang_-march=native_-O2_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062720240625
94725332 0 019415 772 1080T:aesni4gcc_-march=native_-mtune=native_-O_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062720240625
95389206 0 022678 804 1016T:aesni8clang_-march=native_-Os_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062720240625
961215265 0 031696 780 1080T:aesni8gcc_-march=native_-mtune=native_-O3_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062720240625
974610019 0 024512 780 1080T:aesni8gcc_-march=native_-mtune=native_-O2_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062720240625
981213858 0 030808 812 1048T:aesni8clang_-march=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062720240625
983613858 0 030712 812 1048T:aesni8clang_-march=native_-O2_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062720240625
106715088 0 018011 756 1048T:aesni8gcc_-march=native_-mtune=native_-Os_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062720240625
113527299 0 021383 772 1080T:aesni8gcc_-march=native_-mtune=native_-O_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062720240625
176046045 0 019934 804 1016T:aesni4clang_-march=native_-O_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062720240625
187399197 0 023086 804 1016T:aesni8clang_-march=native_-O_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062720240625
19369713917 0 50030783 828 1560T:refgcc_-march=native_-mtune=native_-O3_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062720240625
20754513669 0 48830374 844 1496T:refclang_-mcpu=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062720240625
21038511804 0 48829158 844 1528T:refclang_-march=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062720240625
21473810572 0 48827878 844 1528T:refclang_-march=native_-O2_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062720240625
2160294409 0 48818372 836 1496T:refclang_-march=native_-Os_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062720240625
2218315597 0 50020503 828 1560T:refgcc_-march=native_-mtune=native_-O2_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062720240625
2410904592 0 48818876 836 1496T:refclang_-march=native_-O_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062720240625
2573884978 0 50019486 820 1560T:refgcc_-march=native_-mtune=native_-O_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062720240625
2577043875 0 50017194 804 1560T:refgcc_-march=native_-mtune=native_-Os_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062720240625

Compiler output


encrypt-optpar4.c: encrypt-optpar4.c:23:13: warning: unused function 'printblock' [-Wunused-function]
encrypt-optpar4.c: static void printblock(const char* caption, unsigned char* block, unsigned char nbytes, int reg)
encrypt-optpar4.c:             ^
encrypt-optpar4.c: 1 warning generated.

Number of similar (implementation,compiler) pairs: 4, 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)

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: 1, namely:
ImplementationCompiler
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:       |             ^~~~~~~~~~

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:23:13: warning: unused function 'printblock' [-Wunused-function]
encrypt-optpar8.c: static void printblock(const char* caption, unsigned char* block, unsigned char nbytes, int reg)
encrypt-optpar8.c:             ^
encrypt-optpar8.c: 1 warning generated.

Number of similar (implementation,compiler) pairs: 4, 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)

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: 1, namely:
ImplementationCompiler
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:       |             ^~~~~~~~~~

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)