test all
This commit is contained in:
parent
304e5d63c5
commit
e537d927a1
5
Makefile
5
Makefile
|
@ -1,3 +1,4 @@
|
||||||
|
test: test_asm c_test/encode_decode c_test/creole
|
||||||
asm/libcreole.so: creole.c creole.h
|
asm/libcreole.so: creole.c creole.h
|
||||||
$(CC) -Wall -fPIC -c creole.c -o c_test/creole.o
|
$(CC) -Wall -fPIC -c creole.c -o c_test/creole.o
|
||||||
$(CC) -shared -o asm/libcreole.so c_test/creole.o
|
$(CC) -shared -o asm/libcreole.so c_test/creole.o
|
||||||
|
@ -6,5 +7,7 @@ test_asm: asm/libcreole.so
|
||||||
cd asm && python3 test.py
|
cd asm && python3 test.py
|
||||||
c_test/encode_decode: c_test/encode_decode.c creole.c creole.h
|
c_test/encode_decode: c_test/encode_decode.c creole.c creole.h
|
||||||
$(CC) c_test/encode_decode.c -Wall -pedantic -std=c89 -g -fopenmp -o c_test/encode_decode
|
$(CC) c_test/encode_decode.c -Wall -pedantic -std=c89 -g -fopenmp -o c_test/encode_decode
|
||||||
c_test/creole: c_test/creole.c creole.c creole.h greatest.h
|
# c_test/encode_decode
|
||||||
|
c_test/creole: c_test/creole.c creole.c creole.h c_test/greatest.h
|
||||||
$(CC) -g c_test/creole.c -Wall -pedantic -std=c89 -o c_test/creole
|
$(CC) -g c_test/creole.c -Wall -pedantic -std=c89 -o c_test/creole
|
||||||
|
c_test/creole
|
||||||
|
|
8
creole.c
8
creole.c
|
@ -525,10 +525,10 @@ check_label(struct creole_env *env, creole_word label)
|
||||||
}
|
}
|
||||||
|
|
||||||
enum argument_signed {
|
enum argument_signed {
|
||||||
ALL_UNSIGNED = 0, // 0b00
|
ALL_UNSIGNED = 0, /* 0b00 */
|
||||||
FIRST_SIGNED = 2, // 0b10
|
FIRST_SIGNED = 2, /* 0b10 */
|
||||||
SECOND_SIGNED = 1, // 0b01
|
SECOND_SIGNED = 1, /* 0b01 */
|
||||||
ALL_SIGNED = 3 // 0b11
|
ALL_SIGNED = 3 /* 0b11 */
|
||||||
};
|
};
|
||||||
|
|
||||||
static enum argument_signed check_sign_bits(unsigned flags1, unsigned flags2)
|
static enum argument_signed check_sign_bits(unsigned flags1, unsigned flags2)
|
||||||
|
|
Loading…
Reference in New Issue