Implementation notes: amd64, hydra4, crypto_aead/scream12v1

Computer: hydra4
Microarchitecture: amd64; K10 32nm (300f10)
Architecture: amd64
CPU ID: AuthenticAMD-00300f10-178bfbff
SUPERCOP version: 20240625
Operation: crypto_aead
Primitive: scream12v1
TimeObject sizeTest sizeImplementationCompilerBenchmark dateSUPERCOP version
48450911972 0 034384 780 1080T:refgcc_-march=native_-mtune=native_-O3_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062920240625
6482788140 0 029624 812 1016T:refclang_-march=native_-O2_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062920240625
6484328364 0 030680 812 1016T:refclang_-mcpu=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062920240625
6484358364 0 030680 812 1016T:refclang_-march=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062920240625
11343857097 0 028320 780 1080T:refgcc_-march=native_-mtune=native_-O2_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062920240625
11481505361 0 024726 804 1016T:refclang_-march=native_-Os_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062920240625
11709225778 0 025606 804 1016T:refclang_-march=native_-O_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062920240625
12036276346 0 026760 780 1080T:refgcc_-march=native_-mtune=native_-O_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062920240625
12311355690 0 024531 756 1048T:refgcc_-march=native_-mtune=native_-Os_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062920240625

Compiler output


scream.c: scream.c:185:10: error: '__builtin_ia32_pshufb128' needs target feature ssse3
scream.c:     A  = __builtin_ia32_pshufb128(table, t0);
scream.c:          ^
scream.c: scream.c:186:10: error: '__builtin_ia32_pshufb128' needs target feature ssse3
scream.c:     C  = __builtin_ia32_pshufb128(table, t1);
scream.c:          ^
scream.c: scream.c:190:10: error: '__builtin_ia32_pshufb128' needs target feature ssse3
scream.c:     B  = __builtin_ia32_pshufb128(table, t0);
scream.c:          ^
scream.c: scream.c:191:10: error: '__builtin_ia32_pshufb128' needs target feature ssse3
scream.c:     D  = __builtin_ia32_pshufb128(table, t1);
scream.c:          ^
scream.c: scream.c:198:10: error: '__builtin_ia32_pshufb128' needs target feature ssse3
scream.c:     A ^= __builtin_ia32_pshufb128(table, in[0]);
scream.c:          ^
scream.c: scream.c:199:10: error: '__builtin_ia32_pshufb128' needs target feature ssse3
scream.c:     C ^= __builtin_ia32_pshufb128(table, in[2]);
scream.c:          ^
scream.c: scream.c:203:10: error: '__builtin_ia32_pshufb128' needs target feature ssse3
scream.c:     B ^= __builtin_ia32_pshufb128(table, in[0]);
scream.c:          ^
scream.c: scream.c:204:10: error: '__builtin_ia32_pshufb128' needs target feature ssse3
scream.c:     D ^= __builtin_ia32_pshufb128(table, in[2]);
scream.c:          ^
scream.c: scream.c:211:10: error: '__builtin_ia32_pshufb128' needs target feature ssse3
scream.c: ...

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

Compiler output


scream.c: scream.c: In function 'LBox16P':
scream.c: scream.c:185:10: warning: implicit declaration of function '__builtin_ia32_pshufb128'; did you mean '__builtin_ia32_psubb128'? [-Wimplicit-function-declaration]
scream.c:   185 |     A  = __builtin_ia32_pshufb128(table, t0);
scream.c:       |          ^~~~~~~~~~~~~~~~~~~~~~~~
scream.c:       |          __builtin_ia32_psubb128
scream.c: scream.c:185:10: error: incompatible types when assigning to type 'v16qi' {aka '__vector(16) char'} from type 'int'
scream.c: scream.c:186:10: error: incompatible types when assigning to type 'v16qi' {aka '__vector(16) char'} from type 'int'
scream.c:   186 |     C  = __builtin_ia32_pshufb128(table, t1);
scream.c:       |          ^~~~~~~~~~~~~~~~~~~~~~~~
scream.c: scream.c:190:10: error: incompatible types when assigning to type 'v16qi' {aka '__vector(16) char'} from type 'int'
scream.c:   190 |     B  = __builtin_ia32_pshufb128(table, t0);
scream.c:       |          ^~~~~~~~~~~~~~~~~~~~~~~~
scream.c: scream.c:191:10: error: incompatible types when assigning to type 'v16qi' {aka '__vector(16) char'} from type 'int'
scream.c:   191 |     D  = __builtin_ia32_pshufb128(table, t1);
scream.c:       |          ^~~~~~~~~~~~~~~~~~~~~~~~
scream.c: scream.c:198:7: error: conversion of scalar 'int' to vector 'v16qi' {aka '__vector(16) char'} involves truncation
scream.c:   198 |     A ^= __builtin_ia32_pshufb128(table, in[0]);
scream.c:       |       ^~
scream.c: scream.c:199:7: error: conversion of scalar 'int' to vector 'v16qi' {aka '__vector(16) char'} involves truncation
scream.c:   199 |     C ^= __builtin_ia32_pshufb128(table, in[2]);
scream.c:       |       ^~
scream.c: scream.c:203:7: error: conversion of scalar 'int' to vector 'v16qi' {aka '__vector(16) char'} involves truncation
scream.c:   203 |     B ^= __builtin_ia32_pshufb128(table, in[0]);
scream.c:       |       ^~
scream.c: scream.c:204:7: error: conversion of scalar 'int' to vector 'v16qi' {aka '__vector(16) char'} involves truncation
scream.c: ...

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