Implementation notes: amd64, h6sandy, crypto_aead/aezv3

Computer: h6sandy
Microarchitecture: amd64; Sandy Bridge (206a7)
Architecture: amd64
CPU ID: GenuineIntel-000206a7-bfebfbff
SUPERCOP version: 20240808
Operation: crypto_aead
Primitive: aezv3
TimeObject sizeTest sizeImplementationCompilerBenchmark dateSUPERCOP version
87395033822 0 057707 860 1024T:refclang_-march=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024071820240716
89042831255 0 053187 860 1024T:refclang_-march=native_-O2_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024071820240716
98426338063 0 060587 860 1024T:refclang_-mcpu=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024071820240716
117600955172 0 078396 828 1088T:refgcc_-march=native_-mtune=native_-O3_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024071820240716
120795322187 0 041941 852 1024T:refclang_-march=native_-Os_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024071820240716
128468523460 0 043483 860 1024T:refclang_-march=native_-O_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024071820240716
136319525972 0 047908 828 1088T:refgcc_-march=native_-mtune=native_-O2_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024071820240716
151958025395 0 046892 828 1088T:refgcc_-march=native_-mtune=native_-O_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024071820240716
171866322875 0 042599 804 1056T:refgcc_-march=native_-mtune=native_-Os_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024071820240716

Compiler output


aez_ni.c: aez_ni.c:104:10: error: always_inline function '_mm_aesenc_si128' requires target feature 'aes', but would be inlined into function 'aes4' that is compiled without support for 'aes'
aez_ni.c:     in = _mm_aesenc_si128(in,a);
aez_ni.c:          ^
aez_ni.c: aez_ni.c:105:10: error: always_inline function '_mm_aesenc_si128' requires target feature 'aes', but would be inlined into function 'aes4' that is compiled without support for 'aes'
aez_ni.c:     in = _mm_aesenc_si128(in,b);
aez_ni.c:          ^
aez_ni.c: aez_ni.c:106:10: error: always_inline function '_mm_aesenc_si128' requires target feature 'aes', but would be inlined into function 'aes4' that is compiled without support for 'aes'
aez_ni.c:     in = _mm_aesenc_si128(in,c);
aez_ni.c:          ^
aez_ni.c: aez_ni.c:107:12: error: always_inline function '_mm_aesenc_si128' requires target feature 'aes', but would be inlined into function 'aes4' that is compiled without support for 'aes'
aez_ni.c:     return _mm_aesenc_si128 (in,d);
aez_ni.c:            ^
aez_ni.c: aez_ni.c:91:10: error: always_inline function '_mm_aesenc_si128' requires target feature 'aes', but would be inlined into function 'aes' that is compiled without support for 'aes'
aez_ni.c:     in = _mm_aesenc_si128 (in,key[0]);
aez_ni.c:          ^
aez_ni.c: aez_ni.c:92:10: error: always_inline function '_mm_aesenc_si128' requires target feature 'aes', but would be inlined into function 'aes' that is compiled without support for 'aes'
aez_ni.c:     in = _mm_aesenc_si128 (in,key[1]);
aez_ni.c:          ^
aez_ni.c: aez_ni.c:93:10: error: always_inline function '_mm_aesenc_si128' requires target feature 'aes', but would be inlined into function 'aes' that is compiled without support for 'aes'
aez_ni.c:     in = _mm_aesenc_si128 (in,key[2]);
aez_ni.c:          ^
aez_ni.c: aez_ni.c:94:10: error: always_inline function '_mm_aesenc_si128' requires target feature 'aes', but would be inlined into function 'aes' that is compiled without support for 'aes'
aez_ni.c:     in = _mm_aesenc_si128 (in,key[0]);
aez_ni.c:          ^
aez_ni.c: aez_ni.c:95:10: error: always_inline function '_mm_aesenc_si128' requires target feature 'aes', but would be inlined into function 'aes' that is compiled without support for 'aes'
aez_ni.c: ...

Number of similar (implementation,compiler) pairs: 4, namely:
ImplementationCompiler
T:aesniclang -march=native -O2 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_14.0.0)
T:aesniclang -march=native -O3 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_14.0.0)
T:aesniclang -march=native -O -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_14.0.0)
T:aesniclang -march=native -Os -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_14.0.0)

Compiler output


aez_ni.c: aez_ni.c:146:22: error: '__builtin_ia32_vec_set_v16qi' needs target feature sse4.1
aez_ni.c:         __m128i i1 = _mm_insert_epi8(zero, 1, 7);
aez_ni.c:                      ^
aez_ni.c: /usr/lib/llvm-14/lib/clang/14.0.0/include/smmintrin.h:930:13: note: expanded from macro '_mm_insert_epi8'
aez_ni.c:   ((__m128i)__builtin_ia32_vec_set_v16qi((__v16qi)(__m128i)(X), \
aez_ni.c:             ^
aez_ni.c: aez_ni.c:147:22: error: '__builtin_ia32_vec_set_v16qi' needs target feature sse4.1
aez_ni.c:         __m128i i2 = _mm_insert_epi8(zero, 2, 7);
aez_ni.c:                      ^
aez_ni.c: /usr/lib/llvm-14/lib/clang/14.0.0/include/smmintrin.h:930:13: note: expanded from macro '_mm_insert_epi8'
aez_ni.c:   ((__m128i)__builtin_ia32_vec_set_v16qi((__v16qi)(__m128i)(X), \
aez_ni.c:             ^
aez_ni.c: aez_ni.c:148:22: error: '__builtin_ia32_vec_set_v16qi' needs target feature sse4.1
aez_ni.c:         __m128i i3 = _mm_insert_epi8(zero, 3, 7);
aez_ni.c:                      ^
aez_ni.c: /usr/lib/llvm-14/lib/clang/14.0.0/include/smmintrin.h:930:13: note: expanded from macro '_mm_insert_epi8'
aez_ni.c:   ((__m128i)__builtin_ia32_vec_set_v16qi((__v16qi)(__m128i)(X), \
aez_ni.c:             ^
aez_ni.c: aez_ni.c:149:26: error: '__builtin_ia32_vec_set_v16qi' needs target feature sse4.1
aez_ni.c:         __m128i j, one = _mm_insert_epi8(zero, 1, 15);
aez_ni.c:                          ^
aez_ni.c: /usr/lib/llvm-14/lib/clang/14.0.0/include/smmintrin.h:930:13: note: expanded from macro '_mm_insert_epi8'
aez_ni.c:   ((__m128i)__builtin_ia32_vec_set_v16qi((__v16qi)(__m128i)(X), \
aez_ni.c:             ^
aez_ni.c: 4 errors generated.

Number of similar (implementation,compiler) pairs: 1, namely:
ImplementationCompiler
T:aesniclang -mcpu=native -O3 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_14.0.0)

Compiler output


aez_ni.c: In file included from aez_ni.c:39:
aez_ni.c: aez_ni.c: In function 'aes':
aez_ni.c: /usr/lib/gcc/x86_64-linux-gnu/11/include/wmmintrin.h:61:1: error: inlining failed in call to 'always_inline' '_mm_aesenc_si128': target specific option mismatch
aez_ni.c:    61 | _mm_aesenc_si128 (__m128i __X, __m128i __Y)
aez_ni.c:       | ^~~~~~~~~~~~~~~~
aez_ni.c: aez_ni.c:100:12: note: called from here
aez_ni.c:   100 |     return _mm_aesenc_si128 (in,key[0]);
aez_ni.c:       |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
aez_ni.c: In file included from aez_ni.c:39:
aez_ni.c: /usr/lib/gcc/x86_64-linux-gnu/11/include/wmmintrin.h:61:1: error: inlining failed in call to 'always_inline' '_mm_aesenc_si128': target specific option mismatch
aez_ni.c:    61 | _mm_aesenc_si128 (__m128i __X, __m128i __Y)
aez_ni.c:       | ^~~~~~~~~~~~~~~~
aez_ni.c: aez_ni.c:99:10: note: called from here
aez_ni.c:    99 |     in = _mm_aesenc_si128 (in,key[2]);
aez_ni.c:       |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
aez_ni.c: In file included from aez_ni.c:39:
aez_ni.c: /usr/lib/gcc/x86_64-linux-gnu/11/include/wmmintrin.h:61:1: error: inlining failed in call to 'always_inline' '_mm_aesenc_si128': target specific option mismatch
aez_ni.c:    61 | _mm_aesenc_si128 (__m128i __X, __m128i __Y)
aez_ni.c:       | ^~~~~~~~~~~~~~~~
aez_ni.c: aez_ni.c:98:10: note: called from here
aez_ni.c:    98 |     in = _mm_aesenc_si128 (in,key[1]);
aez_ni.c:       |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
aez_ni.c: In file included from aez_ni.c:39:
aez_ni.c: /usr/lib/gcc/x86_64-linux-gnu/11/include/wmmintrin.h:61:1: error: inlining failed in call to 'always_inline' '_mm_aesenc_si128': target specific option mismatch
aez_ni.c:    61 | _mm_aesenc_si128 (__m128i __X, __m128i __Y)
aez_ni.c: ...

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

Namespace violations


aez_ref.o Decrypt T
aez_ref.o Encrypt T
rijndael-alg-fst.o rijndaelDecrypt T
rijndael-alg-fst.o rijndaelDecryptRound T
rijndael-alg-fst.o rijndaelEncrypt T
rijndael-alg-fst.o rijndaelEncryptRound T
rijndael-alg-fst.o rijndaelKeySetupDec T
rijndael-alg-fst.o rijndaelKeySetupEnc T

Number of similar (implementation,compiler) pairs: 9, namely:
ImplementationCompiler
T:refclang -march=native -O2 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_14.0.0)
T:refclang -march=native -O3 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_14.0.0)
T:refclang -march=native -O -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_14.0.0)
T:refclang -march=native -Os -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_14.0.0)
T:refclang -mcpu=native -O3 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_14.0.0)
T:refgcc -march=native -mtune=native -O2 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (11.4.0)
T:refgcc -march=native -mtune=native -O3 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (11.4.0)
T:refgcc -march=native -mtune=native -O -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (11.4.0)
T:refgcc -march=native -mtune=native -Os -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (11.4.0)