Implementation notes: armeabi, cubox, crypto_aead/acorn128v3

Computer: cubox
Architecture: armeabi
CPU ID: unknown CPU ID
SUPERCOP version: 20161026
Operation: crypto_aead
Primitive: acorn128v3
TimeImplementationCompilerBenchmark dateSUPERCOP version
330256opt1gcc -funroll-loops -mcpu=marvell-pj4 -Os2016121020161026
344088opt1gcc -mcpu=marvell-pj4 -Os2016121020161026
450033opt1gcc -funroll-loops -mcpu=marvell-pj4 -O22016121020161026
463550opt1gcc -funroll-loops -mcpu=marvell-pj4 -O32016121020161026
471976opt1gcc -mcpu=marvell-pj4 -O22016121020161026
489670opt1gcc -mcpu=marvell-pj4 -O32016121020161026
10054118bitfast2gcc -funroll-loops -mcpu=marvell-pj4 -O32016121020161026
10169828bitfast2gcc -mcpu=marvell-pj4 -O32016121020161026
10182238bitfast2gcc -funroll-loops -mcpu=marvell-pj4 -O22016121020161026
10604788bitfastgcc -funroll-loops -mcpu=marvell-pj4 -O32016121020161026
10921078bitfast2gcc -mcpu=marvell-pj4 -O22016121020161026
11200268bitfastgcc -mcpu=marvell-pj4 -O32016121020161026
11391218bitfastgcc -funroll-loops -mcpu=marvell-pj4 -O22016121020161026
11968548bitfast2gcc -funroll-loops -mcpu=marvell-pj4 -Os2016121020161026
12629858bitfastgcc -mcpu=marvell-pj4 -O22016121020161026
13565268bitfastgcc -funroll-loops -mcpu=marvell-pj4 -Os2016121020161026
14584608bitfast2gcc -mcpu=marvell-pj4 -Os2016121020161026
16172218bitfastgcc -mcpu=marvell-pj4 -Os2016121020161026
21794010refgcc -mcpu=marvell-pj4 -O32016121020161026
21958474refgcc -funroll-loops -mcpu=marvell-pj4 -O32016121020161026
55438662refgcc -funroll-loops -mcpu=marvell-pj4 -O22016121020161026
88035109refgcc -mcpu=marvell-pj4 -O22016121020161026
88724793refgcc -funroll-loops -mcpu=marvell-pj4 -Os2016121020161026
89179265refgcc -mcpu=marvell-pj4 -Os2016121020161026

Test failure

Implementation: crypto_aead/acorn128v3/8bitcompact
Compiler: gcc -funroll-loops -mcpu=marvell-pj4 -O2
error 111
crypto_aead_decrypt returns nonzero

Number of similar (compiler,implementation) pairs: 6, namely:
CompilerImplementations
gcc -funroll-loops -mcpu=marvell-pj4 -O2 8bitcompact
gcc -funroll-loops -mcpu=marvell-pj4 -O3 8bitcompact
gcc -funroll-loops -mcpu=marvell-pj4 -Os 8bitcompact
gcc -mcpu=marvell-pj4 -O2 8bitcompact
gcc -mcpu=marvell-pj4 -O3 8bitcompact
gcc -mcpu=marvell-pj4 -Os 8bitcompact

Compiler output

Implementation: crypto_aead/acorn128v3/8bitcompact
Compiler: gcc -funroll-loops -mcpu=marvell-pj4 -O2
encrypt.c: encrypt.c: In function 'acorn128_initialization':
encrypt.c: encrypt.c:105:32: warning: passing argument 2 of 'acorn128_8steps' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
encrypt.c: acorn128_8steps(state, &(key[j]), &tem, 0xff, 0xff, 1);
encrypt.c: ^
encrypt.c: encrypt.c:24:6: note: expected 'unsigned char *' but argument is of type 'const unsigned char *'
encrypt.c: void acorn128_8steps(unsigned char *state, unsigned char *plaintextbyte, unsigned char *ciphertextbyte, unsigned char cabyte, unsigned char cbbyte, unsigned char enc_dec_flag)
encrypt.c: ^~~~~~~~~~~~~~~
encrypt.c: encrypt.c:111:32: warning: passing argument 2 of 'acorn128_8steps' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
encrypt.c: acorn128_8steps(state, &(iv[j-16]), &tem, 0xff, 0xff, 1);
encrypt.c: ^
encrypt.c: ...
encrypt.c: ^
encrypt.c: encrypt.c:24:6: note: expected 'unsigned char *' but argument is of type 'const unsigned char *'
encrypt.c: void acorn128_8steps(unsigned char *state, unsigned char *plaintextbyte, unsigned char *ciphertextbyte, unsigned char cabyte, unsigned char cbbyte, unsigned char enc_dec_flag)
encrypt.c: ^~~~~~~~~~~~~~~
encrypt.c: encrypt.c:257:41: warning: passing argument 3 of 'acorn128_8steps' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
encrypt.c: acorn128_8steps(state, &(m[i]), &(c[i]), ca, cb,0);
encrypt.c: ^
encrypt.c: encrypt.c:24:6: note: expected 'unsigned char *' but argument is of type 'const unsigned char *'
encrypt.c: void acorn128_8steps(unsigned char *state, unsigned char *plaintextbyte, unsigned char *ciphertextbyte, unsigned char cabyte, unsigned char cbbyte, unsigned char enc_dec_flag)
encrypt.c: ^~~~~~~~~~~~~~~

Number of similar (compiler,implementation) pairs: 6, namely:
CompilerImplementations
gcc -funroll-loops -mcpu=marvell-pj4 -O2 8bitcompact
gcc -funroll-loops -mcpu=marvell-pj4 -O3 8bitcompact
gcc -funroll-loops -mcpu=marvell-pj4 -Os 8bitcompact
gcc -mcpu=marvell-pj4 -O2 8bitcompact
gcc -mcpu=marvell-pj4 -O3 8bitcompact
gcc -mcpu=marvell-pj4 -Os 8bitcompact

Compiler output

Implementation: crypto_aead/acorn128v3/8bitfast2
Compiler: gcc -funroll-loops -mcpu=marvell-pj4 -O2
encrypt.c: encrypt.c: In function 'acorn128_initialization':
encrypt.c: encrypt.c:189:33: warning: passing argument 2 of 'acorn128_64steps' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
encrypt.c: acorn128_64steps(state, &(key[j]), tem, 0xff, 0xff, 1);
encrypt.c: ^
encrypt.c: encrypt.c:27:6: note: expected 'unsigned char *' but argument is of type 'const unsigned char *'
encrypt.c: void acorn128_64steps(unsigned char *state, unsigned char *plaintextbyte, unsigned char *ciphertextbyte, unsigned char cabyte, unsigned char cbbyte, unsigned char enc_dec_flag)
encrypt.c: ^~~~~~~~~~~~~~~~
encrypt.c: encrypt.c:195:33: warning: passing argument 2 of 'acorn128_64steps' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
encrypt.c: acorn128_64steps(state, &(iv[j-16]), tem, 0xff, 0xff, 1);
encrypt.c: ^
encrypt.c: ...
encrypt.c: ^
encrypt.c: encrypt.c:27:6: note: expected 'unsigned char *' but argument is of type 'const unsigned char *'
encrypt.c: void acorn128_64steps(unsigned char *state, unsigned char *plaintextbyte, unsigned char *ciphertextbyte, unsigned char cabyte, unsigned char cbbyte, unsigned char enc_dec_flag)
encrypt.c: ^~~~~~~~~~~~~~~~
encrypt.c: encrypt.c:374:41: warning: passing argument 3 of 'acorn128_8steps' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
encrypt.c: acorn128_8steps(state, &(m[i]), &c[i], ca, cb,0);
encrypt.c: ^
encrypt.c: encrypt.c:107:6: note: expected 'unsigned char *' but argument is of type 'const unsigned char *'
encrypt.c: void acorn128_8steps(unsigned char *state, unsigned char *plaintextbyte, unsigned char *ciphertextbyte, unsigned char cabyte, unsigned char cbbyte, unsigned char enc_dec_flag)
encrypt.c: ^~~~~~~~~~~~~~~

Number of similar (compiler,implementation) pairs: 6, namely:
CompilerImplementations
gcc -funroll-loops -mcpu=marvell-pj4 -O2 8bitfast2
gcc -funroll-loops -mcpu=marvell-pj4 -O3 8bitfast2
gcc -funroll-loops -mcpu=marvell-pj4 -Os 8bitfast2
gcc -mcpu=marvell-pj4 -O2 8bitfast2
gcc -mcpu=marvell-pj4 -O3 8bitfast2
gcc -mcpu=marvell-pj4 -Os 8bitfast2

Compiler output

Implementation: crypto_aead/acorn128v3/8bitfast
Compiler: gcc -funroll-loops -mcpu=marvell-pj4 -O2
encrypt.c: encrypt.c: In function 'acorn128_initialization':
encrypt.c: encrypt.c:190:33: warning: passing argument 2 of 'acorn128_32steps' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
encrypt.c: acorn128_32steps(state, &(key[j]), tem, 0xff, 0xff, 1);
encrypt.c: ^
encrypt.c: encrypt.c:27:6: note: expected 'unsigned char *' but argument is of type 'const unsigned char *'
encrypt.c: void acorn128_32steps(unsigned char *state, unsigned char *plaintextbyte, unsigned char *ciphertextbyte, unsigned char cabyte, unsigned char cbbyte, unsigned char enc_dec_flag)
encrypt.c: ^~~~~~~~~~~~~~~~
encrypt.c: encrypt.c:196:33: warning: passing argument 2 of 'acorn128_32steps' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
encrypt.c: acorn128_32steps(state, &(iv[j-16]), tem, 0xff, 0xff, 1);
encrypt.c: ^
encrypt.c: ...
encrypt.c: ^
encrypt.c: encrypt.c:27:6: note: expected 'unsigned char *' but argument is of type 'const unsigned char *'
encrypt.c: void acorn128_32steps(unsigned char *state, unsigned char *plaintextbyte, unsigned char *ciphertextbyte, unsigned char cabyte, unsigned char cbbyte, unsigned char enc_dec_flag)
encrypt.c: ^~~~~~~~~~~~~~~~
encrypt.c: encrypt.c:375:41: warning: passing argument 3 of 'acorn128_8steps' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
encrypt.c: acorn128_8steps(state, &(m[i]), &c[i], ca, cb,0);
encrypt.c: ^
encrypt.c: encrypt.c:108:6: note: expected 'unsigned char *' but argument is of type 'const unsigned char *'
encrypt.c: void acorn128_8steps(unsigned char *state, unsigned char *plaintextbyte, unsigned char *ciphertextbyte, unsigned char cabyte, unsigned char cbbyte, unsigned char enc_dec_flag)
encrypt.c: ^~~~~~~~~~~~~~~

Number of similar (compiler,implementation) pairs: 6, namely:
CompilerImplementations
gcc -funroll-loops -mcpu=marvell-pj4 -O2 8bitfast
gcc -funroll-loops -mcpu=marvell-pj4 -O3 8bitfast
gcc -funroll-loops -mcpu=marvell-pj4 -Os 8bitfast
gcc -mcpu=marvell-pj4 -O2 8bitfast
gcc -mcpu=marvell-pj4 -O3 8bitfast
gcc -mcpu=marvell-pj4 -Os 8bitfast