Implementation notes: aarch64, pi3aplus, crypto_aead/iscream12v2

Computer: pi3aplus
Microarchitecture: aarch64; Cortex-A53 (410fd034)
Architecture: aarch64
CPU ID: 410fd034
SUPERCOP version: 20240716
Operation: crypto_aead
Primitive: iscream12v2
TimeObject sizeTest sizeImplementationCompilerBenchmark dateSUPERCOP version
5932064920 1024 023381 1792 856T:refclang_-mcpu=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024072120240716
7508497936 1024 026208 1896 864T:refgcc_-march=native_-mtune=native_-O3_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024072120240716
22598373416 1024 020416 1888 848T:refgcc_-march=native_-mtune=native_-O2_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024072120240716
23221322900 1024 019240 1872 840T:refgcc_-march=native_-mtune=native_-Os_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024072120240716
25411753496 1024 020760 1888 848T:refgcc_-march=native_-mtune=native_-O_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024072120240716

Compiler output


iscream.c: iscream.c:181:10: error: use of unknown builtin '__builtin_ia32_psrldi128' [-Wimplicit-function-declaration]
iscream.c:     t0 = shift_right(in[0]) & V(0xf);
iscream.c:          ^
iscream.c: iscream.c:16:32: note: expanded from macro 'shift_right'
iscream.c: #define shift_right(x) ((v16qi)__builtin_ia32_psrldi128((v4si)x, 4))
iscream.c:                                ^
iscream.c: iscream.c:181:10: error: invalid conversion between vector type 'v16qi' (vector of 16 'char' values) and integer type 'int' of different size
iscream.c:     t0 = shift_right(in[0]) & V(0xf);
iscream.c:          ^~~~~~~~~~~~~~~~~~
iscream.c: iscream.c:16:25: note: expanded from macro 'shift_right'
iscream.c: #define shift_right(x) ((v16qi)__builtin_ia32_psrldi128((v4si)x, 4))
iscream.c:                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
iscream.c: iscream.c:182:10: error: invalid conversion between vector type 'v16qi' (vector of 16 'char' values) and integer type 'int' of different size
iscream.c:     t1 = shift_right(in[2]) & V(0xf);
iscream.c:          ^~~~~~~~~~~~~~~~~~
iscream.c: iscream.c:16:25: note: expanded from macro 'shift_right'
iscream.c: #define shift_right(x) ((v16qi)__builtin_ia32_psrldi128((v4si)x, 4))
iscream.c:                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
iscream.c: iscream.c:184:10: error: use of unknown builtin '__builtin_ia32_pshufb128' [-Wimplicit-function-declaration]
iscream.c:     A  = __builtin_ia32_pshufb128(table, t0);
iscream.c:          ^
iscream.c: iscream.c:184:10: note: did you mean '__builtin_ia32_psrldi128'?
iscream.c: iscream.c:181:10: note: '__builtin_ia32_psrldi128' declared here
iscream.c:     t0 = shift_right(in[0]) & V(0xf);
iscream.c:          ^
iscream.c: ...

Number of similar (implementation,compiler) pairs: 1, namely:
ImplementationCompiler
T:sseclang -mcpu=native -O3 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (4.2.1_Compatible_Clang_7.0.1_(tags/RELEASE_701/final))

Compiler output


iscream.c: iscream.c: In function 'LBox16P':
iscream.c: iscream.c:16:32: warning: implicit declaration of function '__builtin_ia32_psrldi128'; did you mean '__builtin_fabsd128'? [-Wimplicit-function-declaration]
iscream.c:  #define shift_right(x) ((v16qi)__builtin_ia32_psrldi128((v4si)x, 4))
iscream.c:                                 ^~~~~~~~~~~~~~~~~~~~~~~~
iscream.c: iscream.c:181:10: note: in expansion of macro 'shift_right'
iscream.c:      t0 = shift_right(in[0]) & V(0xf);
iscream.c:           ^~~~~~~~~~~
iscream.c: iscream.c:181:5: error: can't convert a value of type 'int' to vector type '__vector(16) char' which has different size
iscream.c:      t0 = shift_right(in[0]) & V(0xf);
iscream.c:      ^~
iscream.c: iscream.c:182:5: error: can't convert a value of type 'int' to vector type '__vector(16) char' which has different size
iscream.c:      t1 = shift_right(in[2]) & V(0xf);
iscream.c:      ^~
iscream.c: iscream.c:184:10: warning: implicit declaration of function '__builtin_ia32_pshufb128'; did you mean '__builtin_fabsf128'? [-Wimplicit-function-declaration]
iscream.c:      A  = __builtin_ia32_pshufb128(table, t0);
iscream.c:           ^~~~~~~~~~~~~~~~~~~~~~~~
iscream.c:           __builtin_fabsf128
iscream.c: iscream.c:184:8: error: incompatible types when assigning to type 'v16qi' {aka '__vector(16) char'} from type 'int'
iscream.c:      A  = __builtin_ia32_pshufb128(table, t0);
iscream.c:         ^
iscream.c: iscream.c:185:8: error: incompatible types when assigning to type 'v16qi' {aka '__vector(16) char'} from type 'int'
iscream.c:      C  = __builtin_ia32_pshufb128(table, t1);
iscream.c:         ^
iscream.c: iscream.c:189:8: error: incompatible types when assigning to type 'v16qi' {aka '__vector(16) char'} from type 'int'
iscream.c:      B  = __builtin_ia32_pshufb128(table, t0);
iscream.c: ...

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

Namespace violations


iscream_cipher.o Class13 T
iscream_cipher.o LBox1 D
iscream_cipher.o LBox2 D
iscream_cipher.o LS_decrypt T
iscream_cipher.o LS_encrypt T

Number of similar (implementation,compiler) pairs: 5, namely:
ImplementationCompiler
T:refclang -mcpu=native -O3 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (4.2.1_Compatible_Clang_7.0.1_(tags/RELEASE_701/final))
T:refgcc -march=native -mtune=native -O2 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (8.3.0)
T:refgcc -march=native -mtune=native -O3 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (8.3.0)
T:refgcc -march=native -mtune=native -O -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (8.3.0)
T:refgcc -march=native -mtune=native -Os -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (8.3.0)