1# 2# This file and its contents are supplied under the terms of the 3# Common Development and Distribution License ("CDDL"), version 1.0. 4# You may only use this file in accordance with the terms of version 5# 1.0 of the CDDL. 6# 7# A full copy of the text of the CDDL should have accompanied this 8# source. A copy of the CDDL is also available via the Internet at 9# http://www.illumos.org/license/CDDL. 10# 11 12# 13# Copyright 2017 Joyent, Inc. 14# 15 16include $(SRC)/Makefile.master 17 18ROOTOPTPKG = $(ROOT)/opt/util-tests 19TESTDIR = $(ROOTOPTPKG)/tests/dis 20ARCHS = i386 sparc 21 22PROG = distest 23 24SPARC_TESTS = \ 25 tst.regs 26 27I386_TESTS = \ 28 32.adx \ 29 32.avx \ 30 32.avx2 \ 31 32.avx512 \ 32 32.aes \ 33 32.bmi1 \ 34 32.bmi2 \ 35 32.f16c \ 36 32.fma-pd \ 37 32.fma-ps \ 38 32.fma-sd \ 39 32.fma-ss \ 40 32.lzcnt \ 41 32.movbe \ 42 32.opmask \ 43 32.pclmulqdq \ 44 32.popcnt \ 45 32.sha \ 46 32.sse-3 \ 47 32.sse-4.1 \ 48 32.sse-4.2 \ 49 32.ssse3 \ 50 32.xsave \ 51 64.avx \ 52 64.avx2 \ 53 64.avx512 \ 54 64.adx \ 55 64.aes \ 56 64.bmi1 \ 57 64.bmi2 \ 58 64.ept \ 59 64.f16c \ 60 64.fma-pd \ 61 64.fma-ps \ 62 64.fma-sd \ 63 64.fma-ss \ 64 64.lzcnt \ 65 64.movbe \ 66 64.opmask \ 67 64.pclmulqdq \ 68 64.popcnt \ 69 64.random \ 70 64.sha \ 71 64.sse-3 \ 72 64.sse-4.1 \ 73 64.sse-4.2 \ 74 64.ssse3 \ 75 64.vmx \ 76 64.xsave \ 77 tst.cpuid \ 78 tst.fence \ 79 tst.msr \ 80 tst.mwait \ 81 tst.random \ 82 tst.smap \ 83 tst.sep \ 84 tst.tsc \ 85 tst.vmx 86 87I386_FILES = $(I386_TESTS:%=%.s) $(I386_TESTS:%=%.out) 88ROOTI386 = $(I386_FILES:%=$(TESTDIR)/i386/%) 89 90SPARC_FILES = $(SPARC_TESTS:%=%.s) $(SPARC_TESTS:%=%.out) 91ROOTSPARC = $(SPARC_FILES:%=$(TESTDIR)/sparc/%) 92 93include $(SRC)/cmd/Makefile.cmd 94include $(SRC)/test/Makefile.com 95 96ARCHDIRS = $(ARCHS:%=$(TESTDIR)/%) 97CMDS = $(PROG:%=$(TESTDIR)/%) 98$(CMDS) := FILEMODE = 0555 99 100install: $(CMDS) $(ROOTI386) $(ROOTSPARC) 101 102lint: 103 104clobber: clean 105 106clean: 107 108$(CMDS) $(ROOTI386) $(ROOTSPARC): $(TESTDIR) $(ARCHDIRS) 109 110$(TESTDIR) $(ARCHDIRS): 111 $(INS.dir) 112 113$(TESTDIR)/%: % 114 $(INS.file) 115 116$(TESTDIR)/%: %.ksh 117 $(INS.rename) 118