Implementation notes: ppc64, power9, crypto_aead/paeq128tnm

Computer: power9
Architecture: ppc64
CPU ID: unknown CPU ID
SUPERCOP version: 20210326
Operation: crypto_aead
Primitive: paeq128tnm
TimeObject sizeTest sizeImplementationCompilerBenchmark dateSUPERCOP version
405078017032 28 6553639054 744 66736T:refclang++_-march=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2021042220210326
433103615944 28 6553635806 744 66728T:refclang++_-march=native_-O2_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2021042220210326
97731817544 28 6553623600 736 66728T:refclang++_-march=native_-Os_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2021042220210326
98716167224 28 6553623896 736 66728T:refclang++_-march=native_-O_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2021042220210326

Compiler output

Implementation: T:aesni
Security model: timingleaks
Compiler: clang++ -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
encrypt.cpp: In file included from encrypt.cpp:13:
encrypt.cpp: In file included from /usr/lib/llvm-11/lib/clang/11.0.0/include/wmmintrin.h:13:
encrypt.cpp: /usr/lib/llvm-11/lib/clang/11.0.0/include/ppc_wrappers/emmintrin.h:32:2: error: "Please read comment above. Use -DNO_WARN_X86_INTRINSICS to disable this error."
encrypt.cpp: #error "Please read comment above. Use -DNO_WARN_X86_INTRINSICS to disable this error."
encrypt.cpp: ^
encrypt.cpp: In file included from encrypt.cpp:13:
encrypt.cpp: In file included from /usr/lib/llvm-11/lib/clang/11.0.0/include/wmmintrin.h:13:
encrypt.cpp: In file included from /usr/lib/llvm-11/lib/clang/11.0.0/include/ppc_wrappers/emmintrin.h:43:
encrypt.cpp: /usr/lib/llvm-11/lib/clang/11.0.0/include/ppc_wrappers/xmmintrin.h:31:2: error: "Please read comment above. Use -DNO_WARN_X86_INTRINSICS to disable this error."
encrypt.cpp: #error "Please read comment above. Use -DNO_WARN_X86_INTRINSICS to disable this error."
encrypt.cpp: ^
encrypt.cpp: In file included from encrypt.cpp:13:
encrypt.cpp: In file included from /usr/lib/llvm-11/lib/clang/11.0.0/include/wmmintrin.h:13:
encrypt.cpp: In file included from /usr/lib/llvm-11/lib/clang/11.0.0/include/ppc_wrappers/emmintrin.h:43:
encrypt.cpp: In file included from /usr/lib/llvm-11/lib/clang/11.0.0/include/ppc_wrappers/xmmintrin.h:56:
encrypt.cpp: /usr/lib/llvm-11/lib/clang/11.0.0/include/ppc_wrappers/mmintrin.h:31:2: error: "Please read comment above. Use -DNO_WARN_X86_INTRINSICS to disable this error."
encrypt.cpp: #error \
encrypt.cpp: ^
encrypt.cpp: In file included from encrypt.cpp:13:
encrypt.cpp: In file included from /usr/lib/llvm-11/lib/clang/11.0.0/include/wmmintrin.h:13:
encrypt.cpp: In file included from /usr/lib/llvm-11/lib/clang/11.0.0/include/ppc_wrappers/emmintrin.h:43:
encrypt.cpp: /usr/lib/llvm-11/lib/clang/11.0.0/include/ppc_wrappers/xmmintrin.h:978:42: error: controlling expression type '__v4sf' (vector of 4 'float' values) not compatible with any generic association type
encrypt.cpp: result = (__vector unsigned long long) vec_cts (rounded, 0);
encrypt.cpp: ^~~~~~~~~~~~~~~~~~~~
encrypt.cpp: /usr/lib/llvm-11/lib/clang/11.0.0/include/altivec.h:2970:12: note: expanded from macro 'vec_cts'
encrypt.cpp: ...

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

Compiler output

Implementation: T:opt-win-aes
Security model: timingleaks
Compiler: clang++ -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
encrypt.cpp: In file included from encrypt.cpp:12:
encrypt.cpp: In file included from /usr/lib/llvm-11/lib/clang/11.0.0/include/wmmintrin.h:13:
encrypt.cpp: /usr/lib/llvm-11/lib/clang/11.0.0/include/ppc_wrappers/emmintrin.h:32:2: error: "Please read comment above. Use -DNO_WARN_X86_INTRINSICS to disable this error."
encrypt.cpp: #error "Please read comment above. Use -DNO_WARN_X86_INTRINSICS to disable this error."
encrypt.cpp: ^
encrypt.cpp: In file included from encrypt.cpp:12:
encrypt.cpp: In file included from /usr/lib/llvm-11/lib/clang/11.0.0/include/wmmintrin.h:13:
encrypt.cpp: In file included from /usr/lib/llvm-11/lib/clang/11.0.0/include/ppc_wrappers/emmintrin.h:43:
encrypt.cpp: /usr/lib/llvm-11/lib/clang/11.0.0/include/ppc_wrappers/xmmintrin.h:31:2: error: "Please read comment above. Use -DNO_WARN_X86_INTRINSICS to disable this error."
encrypt.cpp: #error "Please read comment above. Use -DNO_WARN_X86_INTRINSICS to disable this error."
encrypt.cpp: ^
encrypt.cpp: In file included from encrypt.cpp:12:
encrypt.cpp: In file included from /usr/lib/llvm-11/lib/clang/11.0.0/include/wmmintrin.h:13:
encrypt.cpp: In file included from /usr/lib/llvm-11/lib/clang/11.0.0/include/ppc_wrappers/emmintrin.h:43:
encrypt.cpp: In file included from /usr/lib/llvm-11/lib/clang/11.0.0/include/ppc_wrappers/xmmintrin.h:56:
encrypt.cpp: /usr/lib/llvm-11/lib/clang/11.0.0/include/ppc_wrappers/mmintrin.h:31:2: error: "Please read comment above. Use -DNO_WARN_X86_INTRINSICS to disable this error."
encrypt.cpp: #error \
encrypt.cpp: ^
encrypt.cpp: In file included from encrypt.cpp:12:
encrypt.cpp: In file included from /usr/lib/llvm-11/lib/clang/11.0.0/include/wmmintrin.h:13:
encrypt.cpp: In file included from /usr/lib/llvm-11/lib/clang/11.0.0/include/ppc_wrappers/emmintrin.h:43:
encrypt.cpp: /usr/lib/llvm-11/lib/clang/11.0.0/include/ppc_wrappers/xmmintrin.h:978:42: error: controlling expression type '__v4sf' (vector of 4 'float' values) not compatible with any generic association type
encrypt.cpp: result = (__vector unsigned long long) vec_cts (rounded, 0);
encrypt.cpp: ^~~~~~~~~~~~~~~~~~~~
encrypt.cpp: /usr/lib/llvm-11/lib/clang/11.0.0/include/altivec.h:2970:12: note: expanded from macro 'vec_cts'
encrypt.cpp: ...

Number of similar (compiler,implementation) pairs: 4, namely:
CompilerImplementations
clang++ -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:opt-win-aes
clang++ -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:opt-win-aes
clang++ -march=native -O -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:opt-win-aes
clang++ -march=native -Os -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:opt-win-aes

Compiler output

Implementation: T:ref
Security model: timingleaks
Compiler: clang++ -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
encrypt.cpp: encrypt.cpp:355:27: warning: implicit conversion from 'int' to 'unsigned char' changes value from 256 to 0 [-Wconstant-conversion]
encrypt.cpp: D0[0] = CRYPTO_NPUBBYTES*8; //nonce length in bits, zero for 256-bit nonce
encrypt.cpp: ~ ~~~~~~~~~~~~~~~~^~
encrypt.cpp: encrypt.cpp:610:27: warning: implicit conversion from 'int' to 'unsigned char' changes value from 256 to 0 [-Wconstant-conversion]
encrypt.cpp: D0[0] = CRYPTO_NPUBBYTES*8; //nonce length in bits, zero for 256-bit nonce
encrypt.cpp: ~ ~~~~~~~~~~~~~~~~^~
encrypt.cpp: encrypt.cpp:864:27: warning: implicit conversion from 'int' to 'unsigned char' changes value from 256 to 0 [-Wconstant-conversion]
encrypt.cpp: D0[0] = CRYPTO_NPUBBYTES*8; //nonce length in bits
encrypt.cpp: ~ ~~~~~~~~~~~~~~~~^~
encrypt.cpp: 3 warnings generated.

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