-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #230 from k-okada/fix_travis_error
run all test on arm/aarch64
- Loading branch information
Showing
27 changed files
with
525 additions
and
192 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,34 @@ | ||
|
||
all : test_foreign.so | ||
all : test | ||
|
||
MARCH=$(shell uname -m) | ||
|
||
test_foreign.so : test_foreign.c | ||
ifeq ($(ARCHDIR), Linux64) | ||
gcc -m64 -O2 -g -falign-functions=8 -Dx86_64 -DLinux -fPIC -c $< | ||
gcc -m64 -shared -fPIC -falign-functions=8 -o $@ test_foreign.o | ||
## | ||
gcc -O2 -g -falign-functions=8 -Dx86_64 -DLinux -fPIC -c $< | ||
gcc -shared -fPIC -falign-functions=8 -o $@ test_foreign.o | ||
else | ||
ifeq ($(ARCHDIR), LinuxARM) | ||
ifeq ($(MARCH), aarch64) | ||
## arm 64bit | ||
gcc -O2 -g -Wimplicit -falign-functions=8 -Daarch64 -Darmv8 -DARM -DLinux -fPIC -c $< | ||
gcc -shared -fPIC -falign-functions=8 -o $@ test_foreign.o | ||
else | ||
## arm 32bit | ||
gcc -O2 -g -falign-functions=4 -DARM -DLinux -fpic -c $< | ||
gcc -shared -fpic -falign-functions=4 -o $@ test_foreign.o | ||
endif | ||
else | ||
## Linux32 bit | ||
gcc -m32 -O2 -g -falign-functions=4 -Di386 -Di486 -DLinux -fpic -c $< | ||
gcc -m32 -shared -fpic -falign-functions=4 -o $@ test_foreign.o | ||
endif | ||
endif | ||
|
||
test: test_foreign.so | ||
irteusgl eus64-test.l | ||
|
||
clean : | ||
\rm -f *.o *.so | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
(unless (boundp '*testmod*) | ||
(setq *testmod* (load-foreign "test_foreign.so")) | ||
(defforeign float-test *testmod* "float_test" (:integer :float32 :float32 :float32 :float32) :integer) | ||
(defforeign float2-test *testmod* "float_test" (:integer :double :double :double :double) :integer) | ||
(defforeign float3-test *testmod* "float_test" () :integer) | ||
(defforeign double-test *testmod* "double_test" (:integer :double :double :double :double) :integer) | ||
(defforeign double2-test *testmod* "double_test" (:integer :float32 :float32 :float32 :float32) :integer) | ||
(defforeign double3-test *testmod* "double_test" () :integer) | ||
(defforeign iv-test *testmod* "iv_test" () :integer) | ||
(defforeign lv-test *testmod* "lv_test" () :integer) | ||
(defforeign fv-test *testmod* "fv_test" () :integer) | ||
(defforeign dv-test *testmod* "dv_test" () :integer) | ||
(defforeign str-test *testmod* "str_test" () :integer) | ||
(defforeign int-test *testmod* "int_test" () :integer) | ||
(defforeign ret-float *testmod* "ret_float" () :float32) | ||
(defforeign ret-double *testmod* "ret_double" () :float) | ||
(defforeign ret-long *testmod* "ret_long" () :integer) | ||
|
||
(defforeign set-ifunc *testmod* "set_ifunc" (:integer) :integer) | ||
(defforeign set-ffunc *testmod* "set_ffunc" (:integer) :integer) | ||
|
||
(defforeign test-testd *testmod* "test_testd" (:integer :integer :integer | ||
:integer :integer :integer | ||
:double :double :double :double | ||
:double :double :double :double | ||
:double :double | ||
:integer :integer) :float) | ||
(defforeign call-ifunc *testmod* "call_ifunc" () :integer) | ||
(defforeign call-ffunc *testmod* "call_ffunc" () :float) | ||
|
||
(defforeign get-size-pointer *testmod* "get_size_of_pointer" () :integer) | ||
(defforeign get-size-float32 *testmod* "get_size_of_float32" () :integer) | ||
(defforeign get-size-double *testmod* "get_size_of_double" () :integer) | ||
(defforeign get-size-long *testmod* "get_size_of_long" () :integer) | ||
(defforeign get-size-int *testmod* "get_size_of_int" () :integer) | ||
) | ||
|
||
|
Oops, something went wrong.