Squashed 'externals/xbyak/' changes from d512551e..2794cde7
2794cde7 add xword, yword, etc. in Xbyak::util
fb9c04e4 fix document for vfpclassps
a51be78b fix test dependency
04fdfb1e update version
e6354f8b add vgf2p8mulb
09a12642 add gf2p8affineqb
d171ba0e add gf2p8affineinvqb
457f4fd0 add vpshufbitqmb
5af0ba39 add vpexpand{b,w}
e450f965 vpopcnt{d,q} supports ptr_b
48499eb1 add vpdpbusd(s), vpdpwssd(s)
9c745109 add vpdpbusd, vpdpbusds
0e1a11b4 add vpopcnt{b,w,d,q}
9acfc132 add vpshrd(v){w,d,q}
ac8de850 add vpshld(v){w,d,q}
f181c259 add vcompressb, vcompressw
5a402477 vpclmulqdq supports AVX-512
9e16b40b vaes* supports AVX-512
7fde08e0 add flags for intel's manual 319433-030.pdf
c5da3778 add test of v4fmaddps, vp4dpwssd, etc.
e4fc9d8a fix mpx encoding
d0b2fb62 add bnd(0xf2) prefix for MPX
f12b5678 use db for array
cd74ab44 remove bat file
git-subtree-dir: externals/xbyak
git-subtree-split: 2794cde79eb71e86490061cac9622ad0067b8d15
2020-04-22 20:45:52 +01:00
|
|
|
TARGET = make_nm normalize_prefix jmp address bad_address misc
|
2020-04-22 20:25:57 +01:00
|
|
|
XBYAK_INC=../xbyak/xbyak.h
|
|
|
|
BIT=32
|
|
|
|
ifeq ($(shell uname -m),x86_64)
|
|
|
|
BIT=64
|
|
|
|
endif
|
|
|
|
|
Squashed 'externals/xbyak/' changes from d512551e..2794cde7
2794cde7 add xword, yword, etc. in Xbyak::util
fb9c04e4 fix document for vfpclassps
a51be78b fix test dependency
04fdfb1e update version
e6354f8b add vgf2p8mulb
09a12642 add gf2p8affineqb
d171ba0e add gf2p8affineinvqb
457f4fd0 add vpshufbitqmb
5af0ba39 add vpexpand{b,w}
e450f965 vpopcnt{d,q} supports ptr_b
48499eb1 add vpdpbusd(s), vpdpwssd(s)
9c745109 add vpdpbusd, vpdpbusds
0e1a11b4 add vpopcnt{b,w,d,q}
9acfc132 add vpshrd(v){w,d,q}
ac8de850 add vpshld(v){w,d,q}
f181c259 add vcompressb, vcompressw
5a402477 vpclmulqdq supports AVX-512
9e16b40b vaes* supports AVX-512
7fde08e0 add flags for intel's manual 319433-030.pdf
c5da3778 add test of v4fmaddps, vp4dpwssd, etc.
e4fc9d8a fix mpx encoding
d0b2fb62 add bnd(0xf2) prefix for MPX
f12b5678 use db for array
cd74ab44 remove bat file
git-subtree-dir: externals/xbyak
git-subtree-split: 2794cde79eb71e86490061cac9622ad0067b8d15
2020-04-22 20:45:52 +01:00
|
|
|
ifeq ($(BIT),64)
|
2020-04-22 20:25:57 +01:00
|
|
|
TARGET += jmp64 address64
|
|
|
|
endif
|
|
|
|
|
|
|
|
all: $(TARGET)
|
|
|
|
|
|
|
|
CFLAGS_WARN=-Wall -Wextra -Wformat=2 -Wcast-qual -Wcast-align -Wwrite-strings -Wfloat-equal -Wpointer-arith
|
|
|
|
|
|
|
|
CFLAGS=-O2 -fomit-frame-pointer -Wall -fno-operator-names -I../ -I./ $(CFLAGS_WARN) #-std=c++0x
|
|
|
|
make_nm:
|
|
|
|
$(CXX) $(CFLAGS) make_nm.cpp -o $@
|
|
|
|
normalize_prefix: normalize_prefix.cpp ../xbyak/xbyak.h
|
|
|
|
$(CXX) $(CFLAGS) normalize_prefix.cpp -o $@
|
|
|
|
test_mmx: test_mmx.cpp ../xbyak/xbyak.h
|
|
|
|
$(CXX) $(CFLAGS) test_mmx.cpp -o $@ -lpthread
|
|
|
|
jmp: jmp.cpp ../xbyak/xbyak.h
|
|
|
|
$(CXX) $(CFLAGS) jmp.cpp -o $@ -m32
|
|
|
|
jmp64: jmp.cpp ../xbyak/xbyak.h
|
|
|
|
$(CXX) $(CFLAGS) jmp.cpp -o $@ -m64
|
|
|
|
address: address.cpp ../xbyak/xbyak.h
|
|
|
|
$(CXX) $(CFLAGS) address.cpp -o $@ -m32
|
|
|
|
address64: address.cpp ../xbyak/xbyak.h
|
|
|
|
$(CXX) $(CFLAGS) address.cpp -o $@ -m64
|
|
|
|
bad_address: bad_address.cpp ../xbyak/xbyak.h
|
|
|
|
$(CXX) $(CFLAGS) bad_address.cpp -o $@
|
|
|
|
misc: misc.cpp ../xbyak/xbyak.h
|
|
|
|
$(CXX) $(CFLAGS) misc.cpp -o $@
|
|
|
|
|
Squashed 'externals/xbyak/' changes from d512551e..2794cde7
2794cde7 add xword, yword, etc. in Xbyak::util
fb9c04e4 fix document for vfpclassps
a51be78b fix test dependency
04fdfb1e update version
e6354f8b add vgf2p8mulb
09a12642 add gf2p8affineqb
d171ba0e add gf2p8affineinvqb
457f4fd0 add vpshufbitqmb
5af0ba39 add vpexpand{b,w}
e450f965 vpopcnt{d,q} supports ptr_b
48499eb1 add vpdpbusd(s), vpdpwssd(s)
9c745109 add vpdpbusd, vpdpbusds
0e1a11b4 add vpopcnt{b,w,d,q}
9acfc132 add vpshrd(v){w,d,q}
ac8de850 add vpshld(v){w,d,q}
f181c259 add vcompressb, vcompressw
5a402477 vpclmulqdq supports AVX-512
9e16b40b vaes* supports AVX-512
7fde08e0 add flags for intel's manual 319433-030.pdf
c5da3778 add test of v4fmaddps, vp4dpwssd, etc.
e4fc9d8a fix mpx encoding
d0b2fb62 add bnd(0xf2) prefix for MPX
f12b5678 use db for array
cd74ab44 remove bat file
git-subtree-dir: externals/xbyak
git-subtree-split: 2794cde79eb71e86490061cac9622ad0067b8d15
2020-04-22 20:45:52 +01:00
|
|
|
test: normalize_prefix jmp bad_address $(TARGET)
|
2020-04-22 20:25:57 +01:00
|
|
|
$(MAKE) -C ../gen
|
|
|
|
./test_nm.sh
|
|
|
|
./test_nm.sh Y
|
2020-04-22 20:51:10 +01:00
|
|
|
./test_nm.sh avx512
|
2020-04-22 20:25:57 +01:00
|
|
|
./test_address.sh
|
|
|
|
./jmp
|
|
|
|
./bad_address
|
|
|
|
./misc
|
|
|
|
ifeq ($(BIT),64)
|
|
|
|
./test_address.sh 64
|
|
|
|
./test_nm.sh 64
|
|
|
|
./test_nm.sh Y64
|
|
|
|
./jmp64
|
|
|
|
endif
|
|
|
|
|
|
|
|
test_avx: normalize_prefix
|
|
|
|
./test_avx.sh
|
|
|
|
./test_avx.sh Y
|
|
|
|
ifeq ($(BIT),64)
|
|
|
|
./test_address.sh 64
|
|
|
|
./test_avx.sh 64
|
|
|
|
./test_avx.sh Y64
|
|
|
|
endif
|
|
|
|
|
|
|
|
test_avx512: normalize_prefix
|
|
|
|
./test_avx512.sh
|
|
|
|
ifeq ($(BIT),64)
|
|
|
|
./test_avx512.sh 64
|
|
|
|
endif
|
|
|
|
clean:
|
Squashed 'externals/xbyak/' changes from d512551e..2794cde7
2794cde7 add xword, yword, etc. in Xbyak::util
fb9c04e4 fix document for vfpclassps
a51be78b fix test dependency
04fdfb1e update version
e6354f8b add vgf2p8mulb
09a12642 add gf2p8affineqb
d171ba0e add gf2p8affineinvqb
457f4fd0 add vpshufbitqmb
5af0ba39 add vpexpand{b,w}
e450f965 vpopcnt{d,q} supports ptr_b
48499eb1 add vpdpbusd(s), vpdpwssd(s)
9c745109 add vpdpbusd, vpdpbusds
0e1a11b4 add vpopcnt{b,w,d,q}
9acfc132 add vpshrd(v){w,d,q}
ac8de850 add vpshld(v){w,d,q}
f181c259 add vcompressb, vcompressw
5a402477 vpclmulqdq supports AVX-512
9e16b40b vaes* supports AVX-512
7fde08e0 add flags for intel's manual 319433-030.pdf
c5da3778 add test of v4fmaddps, vp4dpwssd, etc.
e4fc9d8a fix mpx encoding
d0b2fb62 add bnd(0xf2) prefix for MPX
f12b5678 use db for array
cd74ab44 remove bat file
git-subtree-dir: externals/xbyak
git-subtree-split: 2794cde79eb71e86490061cac9622ad0067b8d15
2020-04-22 20:45:52 +01:00
|
|
|
rm -rf *.o $(TARGET) lib_run nm.cpp nm_frame make_512
|
2020-04-22 20:25:57 +01:00
|
|
|
|
|
|
|
lib_run: lib_test.cpp lib_run.cpp lib.h
|
|
|
|
$(CXX) $(CFLAGS) lib_run.cpp lib_test.cpp -o lib_run
|
|
|
|
make_nm: make_nm.cpp $(XBYAK_INC)
|
|
|
|
|
|
|
|
|