Implementation notes: amd64, hydra4, crypto_aead/scream12v2

Computer: hydra4
Microarchitecture: amd64; K10 32nm (300f10)
Architecture: amd64
CPU ID: AuthenticAMD-00300f10-178bfbff
SUPERCOP version: 20240625
Operation: crypto_aead
Primitive: scream12v2
TimeObject sizeTest sizeImplementationCompilerBenchmark dateSUPERCOP version
48439211721 0 034160 780 1080T:refgcc_-march=native_-mtune=native_-O3_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062920240625
6455077307 0 029624 812 1016T:refclang_-mcpu=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062920240625
6457357154 0 028632 812 1016T:refclang_-march=native_-O2_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062920240625
6457767307 0 029624 812 1016T:refclang_-march=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062920240625
11275805330 0 024694 804 1016T:refclang_-march=native_-Os_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062920240625
11338367056 0 028320 780 1080T:refgcc_-march=native_-mtune=native_-O2_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062920240625
11757975729 0 025542 804 1016T:refclang_-march=native_-O_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062920240625
11947276259 0 026728 780 1080T:refgcc_-march=native_-mtune=native_-O_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062920240625
12488585590 0 024435 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)