Implementation notes: amd64, cel02, crypto_kem/lightsaber2

Computer: cel02
Architecture: amd64
CPU ID: GenuineIntel-00050657-bfebfbff
SUPERCOP version: 20201130
Operation: crypto_kem
Primitive: lightsaber2
TimeObject sizeTest sizeImplementationCompilerBenchmark dateSUPERCOP version
15539228075 32 054317 872 2144T:avx2gcc_-march=native_-mtune=native_-O_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2020121120201130
23117883601 32 0113325 872 2176T:avx2gcc_-march=native_-mtune=native_-O3_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2020121120201130
23508829823 0 056757 816 1624T:refclang_-mcpu=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2020121120201130
27140626283 32 051301 864 2112T:avx2gcc_-march=native_-mtune=native_-Os_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2020121120201130
27371427646 32 054309 872 2144T:avx2gcc_-march=native_-mtune=native_-O2_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2020121120201130
60829666462 0 096196 840 1688T:refgcc_-march=native_-mtune=native_-O3_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2020121120201130
141187013901 0 040564 840 1656T:refgcc_-march=native_-mtune=native_-O2_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2020121120201130
144816212861 0 039100 840 1656T:refgcc_-march=native_-mtune=native_-O_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2020121120201130
160425412217 0 037228 832 1624T:refgcc_-march=native_-mtune=native_-Os_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2020121120201130

Checksum failure

Implementation: T:avx2
Security model: timingleaks
Compiler: clang -march=native -Os -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
b2cdcdb467ce6d66ae32862aa603c285bffe8fb2b59c1cbf76b9a7385d08519e
Number of similar (compiler,implementation) pairs: 1, namely:
CompilerImplementations
clang -march=native -Os -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:avx2

Compiler output

Implementation: T:avx2
Security model: timingleaks
Compiler: clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
verify.c: fatal error: error in backend: Cannot select: 0x55dd7c3e57e0: v64i8 = X86ISD::VBROADCAST 0x55dd7c3f71a0
verify.c: 0x55dd7c3f71a0: i8,ch = CopyFromReg 0x55dd7c338e80, Register:i8 %vreg0
verify.c: 0x55dd7c3f6e10: i8 = Register %vreg0
verify.c: In function: cmov
verify.c: clang: error: clang frontend command failed with exit code 70 (use -v to see invocation)
verify.c: clang version 3.8.1-24 (tags/RELEASE_381/final)
verify.c: Target: x86_64-pc-linux-gnu
verify.c: Thread model: posix
verify.c: InstalledDir: /usr/bin
verify.c: clang: note: diagnostic msg: PLEASE submit a bug report to http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and associated run script.
verify.c: clang: note: diagnostic msg:
verify.c: ********************
verify.c:
verify.c: PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
verify.c: Preprocessed source(s) and associated run script(s) are located at:
verify.c: clang: note: diagnostic msg: /tmp/verify-2c3312.c
verify.c: clang: note: diagnostic msg: /tmp/verify-2c3312.sh
verify.c: clang: note: diagnostic msg:
verify.c:
verify.c: ********************

Number of similar (compiler,implementation) pairs: 1, namely:
CompilerImplementations
clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:avx2

Compiler output

Implementation: T:avx2
Security model: timingleaks
Compiler: clang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
verify.c: fatal error: error in backend: Cannot select: 0x55641bb88920: v64i8 = X86ISD::VBROADCAST 0x55641bb9af00
verify.c: 0x55641bb9af00: i8,ch = CopyFromReg 0x55641badcfb0, Register:i8 %vreg0
verify.c: 0x55641bb9ab70: i8 = Register %vreg0
verify.c: In function: cmov
verify.c: clang: error: clang frontend command failed with exit code 70 (use -v to see invocation)
verify.c: clang version 3.8.1-24 (tags/RELEASE_381/final)
verify.c: Target: x86_64-pc-linux-gnu
verify.c: Thread model: posix
verify.c: InstalledDir: /usr/bin
verify.c: clang: note: diagnostic msg: PLEASE submit a bug report to http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and associated run script.
verify.c: clang: note: diagnostic msg:
verify.c: ********************
verify.c:
verify.c: PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
verify.c: Preprocessed source(s) and associated run script(s) are located at:
verify.c: clang: note: diagnostic msg: /tmp/verify-938196.c
verify.c: clang: note: diagnostic msg: /tmp/verify-938196.sh
verify.c: clang: note: diagnostic msg:
verify.c:
verify.c: ********************

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

Compiler output

Implementation: T:avx2
Security model: timingleaks
Compiler: clang -march=native -O -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
verify.c: fatal error: error in backend: Cannot select: 0x56437a2777d0: v64i8 = X86ISD::VBROADCAST 0x56437a289da0
verify.c: 0x56437a289da0: i8,ch = CopyFromReg 0x56437a1cbec0, Register:i8 %vreg0
verify.c: 0x56437a289a10: i8 = Register %vreg0
verify.c: In function: cmov
verify.c: clang: error: clang frontend command failed with exit code 70 (use -v to see invocation)
verify.c: clang version 3.8.1-24 (tags/RELEASE_381/final)
verify.c: Target: x86_64-pc-linux-gnu
verify.c: Thread model: posix
verify.c: InstalledDir: /usr/bin
verify.c: clang: note: diagnostic msg: PLEASE submit a bug report to http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and associated run script.
verify.c: clang: note: diagnostic msg:
verify.c: ********************
verify.c:
verify.c: PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
verify.c: Preprocessed source(s) and associated run script(s) are located at:
verify.c: clang: note: diagnostic msg: /tmp/verify-2958bb.c
verify.c: clang: note: diagnostic msg: /tmp/verify-2958bb.sh
verify.c: clang: note: diagnostic msg:
verify.c:
verify.c: ********************

Number of similar (compiler,implementation) pairs: 1, namely:
CompilerImplementations
clang -march=native -O -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:avx2

Compiler output

Implementation: T:avx2
Security model: timingleaks
Compiler: clang -mcpu=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
SABER_indcpa.c: In file included from SABER_indcpa.c:9:
SABER_indcpa.c: In file included from ././polymul/toom-cook_4way.c:6:
SABER_indcpa.c: ././polymul/scm_avx.c:43:9: error: always_inline function '_mm256_mullo_epi16' requires target feature 'sse4.2', but would be inlined into function 'schoolbook_avx_new3_acc' that is compiled without support for 'sse4.2'
SABER_indcpa.c: temp = _mm256_mullo_epi16 (a0, b1);
SABER_indcpa.c: ^
SABER_indcpa.c: ././polymul/scm_avx.c:45:13: error: always_inline function '_mm256_add_epi16' requires target feature 'sse4.2', but would be inlined into function 'schoolbook_avx_new3_acc' that is compiled without support for 'sse4.2'
SABER_indcpa.c: c_avx[1] = _mm256_add_epi16(temp, c_avx[1]);
SABER_indcpa.c: ^
SABER_indcpa.c: ././polymul/scm_avx.c:48:9: error: always_inline function '_mm256_mullo_epi16' requires target feature 'sse4.2', but would be inlined into function 'schoolbook_avx_new3_acc' that is compiled without support for 'sse4.2'
SABER_indcpa.c: temp = _mm256_mullo_epi16 (a0, b2);
SABER_indcpa.c: ^
SABER_indcpa.c: ././polymul/scm_avx.c:51:13: error: always_inline function '_mm256_add_epi16' requires target feature 'sse4.2', but would be inlined into function 'schoolbook_avx_new3_acc' that is compiled without support for 'sse4.2'
SABER_indcpa.c: c_avx[2] = _mm256_add_epi16(temp, c_avx[2]);
SABER_indcpa.c: ^
SABER_indcpa.c: ././polymul/scm_avx.c:54:9: error: always_inline function '_mm256_mullo_epi16' requires target feature 'sse4.2', but would be inlined into function 'schoolbook_avx_new3_acc' that is compiled without support for 'sse4.2'
SABER_indcpa.c: temp = _mm256_mullo_epi16 (a0, b3);
SABER_indcpa.c: ^
SABER_indcpa.c: ././polymul/scm_avx.c:58:13: error: always_inline function '_mm256_add_epi16' requires target feature 'sse4.2', but would be inlined into function 'schoolbook_avx_new3_acc' that is compiled without support for 'sse4.2'
SABER_indcpa.c: c_avx[3] = _mm256_add_epi16(temp, c_avx[3]);
SABER_indcpa.c: ^
SABER_indcpa.c: ././polymul/scm_avx.c:60:9: error: always_inline function '_mm256_mullo_epi16' requires target feature 'sse4.2', but would be inlined into function 'schoolbook_avx_new3_acc' that is compiled without support for 'sse4.2'
SABER_indcpa.c: temp = _mm256_mullo_epi16 (a0, b4);
SABER_indcpa.c: ^
SABER_indcpa.c: ././polymul/scm_avx.c:65:13: error: always_inline function '_mm256_add_epi16' requires target feature 'sse4.2', but would be inlined into function 'schoolbook_avx_new3_acc' that is compiled without support for 'sse4.2'
SABER_indcpa.c: c_avx[4] = _mm256_add_epi16(temp, c_avx[4]);
SABER_indcpa.c: ...

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

Compiler output

Implementation: T:ref
Security model: timingleaks
Compiler: clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
SABER_indcpa.c: fatal error: error in backend: Cannot select: 0x55a79d538fe0: v32i16 = X86ISD::VBROADCAST 0x55a79d57e700
SABER_indcpa.c: 0x55a79d57e700: i16,ch = CopyFromReg 0x55a79d458f10, Register:i16 %vreg0
SABER_indcpa.c: 0x55a79d54a920: i16 = Register %vreg0
SABER_indcpa.c: In function: pol_mul
SABER_indcpa.c: clang: error: clang frontend command failed with exit code 70 (use -v to see invocation)
SABER_indcpa.c: clang version 3.8.1-24 (tags/RELEASE_381/final)
SABER_indcpa.c: Target: x86_64-pc-linux-gnu
SABER_indcpa.c: Thread model: posix
SABER_indcpa.c: InstalledDir: /usr/bin
SABER_indcpa.c: clang: note: diagnostic msg: PLEASE submit a bug report to http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and associated run script.
SABER_indcpa.c: clang: note: diagnostic msg:
SABER_indcpa.c: ********************
SABER_indcpa.c:
SABER_indcpa.c: PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
SABER_indcpa.c: Preprocessed source(s) and associated run script(s) are located at:
SABER_indcpa.c: clang: note: diagnostic msg: /tmp/SABER_indcpa-6db4e9.c
SABER_indcpa.c: clang: note: diagnostic msg: /tmp/SABER_indcpa-6db4e9.sh
SABER_indcpa.c: clang: note: diagnostic msg:
SABER_indcpa.c:
SABER_indcpa.c: ********************

Number of similar (compiler,implementation) pairs: 1, namely:
CompilerImplementations
clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:ref

Compiler output

Implementation: T:ref
Security model: timingleaks
Compiler: clang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
SABER_indcpa.c: fatal error: error in backend: Cannot select: 0x564564ee9f30: v32i16 = X86ISD::VBROADCAST 0x564564f729f0
SABER_indcpa.c: 0x564564f729f0: i16,ch = CopyFromReg 0x564564e4d010, Register:i16 %vreg0
SABER_indcpa.c: 0x564564f63850: i16 = Register %vreg0
SABER_indcpa.c: In function: pol_mul
SABER_indcpa.c: clang: error: clang frontend command failed with exit code 70 (use -v to see invocation)
SABER_indcpa.c: clang version 3.8.1-24 (tags/RELEASE_381/final)
SABER_indcpa.c: Target: x86_64-pc-linux-gnu
SABER_indcpa.c: Thread model: posix
SABER_indcpa.c: InstalledDir: /usr/bin
SABER_indcpa.c: clang: note: diagnostic msg: PLEASE submit a bug report to http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and associated run script.
SABER_indcpa.c: clang: note: diagnostic msg:
SABER_indcpa.c: ********************
SABER_indcpa.c:
SABER_indcpa.c: PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
SABER_indcpa.c: Preprocessed source(s) and associated run script(s) are located at:
SABER_indcpa.c: clang: note: diagnostic msg: /tmp/SABER_indcpa-731c2e.c
SABER_indcpa.c: clang: note: diagnostic msg: /tmp/SABER_indcpa-731c2e.sh
SABER_indcpa.c: clang: note: diagnostic msg:
SABER_indcpa.c:
SABER_indcpa.c: ********************

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

Compiler output

Implementation: T:ref
Security model: timingleaks
Compiler: clang -march=native -O -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
SABER_indcpa.c: fatal error: error in backend: Cannot select: 0x56431d8c9080: v32i16 = X86ISD::VBROADCAST 0x56431d94f8a0
SABER_indcpa.c: 0x56431d94f8a0: i16,ch = CopyFromReg 0x56431d830f10, Register:i16 %vreg0
SABER_indcpa.c: 0x56431d91a340: i16 = Register %vreg0
SABER_indcpa.c: In function: pol_mul
SABER_indcpa.c: clang: error: clang frontend command failed with exit code 70 (use -v to see invocation)
SABER_indcpa.c: clang version 3.8.1-24 (tags/RELEASE_381/final)
SABER_indcpa.c: Target: x86_64-pc-linux-gnu
SABER_indcpa.c: Thread model: posix
SABER_indcpa.c: InstalledDir: /usr/bin
SABER_indcpa.c: clang: note: diagnostic msg: PLEASE submit a bug report to http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and associated run script.
SABER_indcpa.c: clang: note: diagnostic msg:
SABER_indcpa.c: ********************
SABER_indcpa.c:
SABER_indcpa.c: PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
SABER_indcpa.c: Preprocessed source(s) and associated run script(s) are located at:
SABER_indcpa.c: clang: note: diagnostic msg: /tmp/SABER_indcpa-f7d2e8.c
SABER_indcpa.c: clang: note: diagnostic msg: /tmp/SABER_indcpa-f7d2e8.sh
SABER_indcpa.c: clang: note: diagnostic msg:
SABER_indcpa.c:
SABER_indcpa.c: ********************

Number of similar (compiler,implementation) pairs: 1, namely:
CompilerImplementations
clang -march=native -O -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:ref

Compiler output

Implementation: T:ref
Security model: timingleaks
Compiler: clang -march=native -Os -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
SABER_indcpa.c: fatal error: error in backend: Cannot select: 0x555fb8d681a0: v32i16 = X86ISD::VBROADCAST 0x555fb8d58210
SABER_indcpa.c: 0x555fb8d58210: i16,ch = CopyFromReg 0x555fb8c95870, Register:i16 %vreg27
SABER_indcpa.c: 0x555fb8d52520: i16 = Register %vreg27
SABER_indcpa.c: In function: MatrixVectorMul
SABER_indcpa.c: clang: error: clang frontend command failed with exit code 70 (use -v to see invocation)
SABER_indcpa.c: clang version 3.8.1-24 (tags/RELEASE_381/final)
SABER_indcpa.c: Target: x86_64-pc-linux-gnu
SABER_indcpa.c: Thread model: posix
SABER_indcpa.c: InstalledDir: /usr/bin
SABER_indcpa.c: clang: note: diagnostic msg: PLEASE submit a bug report to http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and associated run script.
SABER_indcpa.c: clang: note: diagnostic msg:
SABER_indcpa.c: ********************
SABER_indcpa.c:
SABER_indcpa.c: PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
SABER_indcpa.c: Preprocessed source(s) and associated run script(s) are located at:
SABER_indcpa.c: clang: note: diagnostic msg: /tmp/SABER_indcpa-241c3e.c
SABER_indcpa.c: clang: note: diagnostic msg: /tmp/SABER_indcpa-241c3e.sh
SABER_indcpa.c: clang: note: diagnostic msg:
SABER_indcpa.c:
SABER_indcpa.c: ********************

Number of similar (compiler,implementation) pairs: 1, namely:
CompilerImplementations
clang -march=native -Os -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:ref