source: CLRX/CLRadeonExtender/trunk/tests/amdasm/CMakeLists.txt

Last change on this file was 4788, checked in by matszpk, 2 months ago

CLRadeonExtender: GCNAsm: Add empty testsuite for GFX10.

  • Property svn:mime-type set to text/plain
File size: 4.0 KB
Line 
1####
2#  CLRadeonExtender - Unofficial OpenCL Radeon Extensions Library
3#  Copyright (C) 2014-2018 Mateusz Szpakowski
4#
5#  This library is free software; you can redistribute it and/or
6#  modify it under the terms of the GNU Lesser General Public
7#  License as published by the Free Software Foundation; either
8#  version 2.1 of the License, or (at your option) any later version.
9#
10#  This library is distributed in the hope that it will be useful,
11#  but WITHOUT ANY WARRANTY; without even the implied warranty of
12#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13#  Lesser General Public License for more details.
14#
15#  You should have received a copy of the GNU Lesser General Public
16#  License along with this library; if not, write to the Free Software
17#  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
18####
19
20CMAKE_MINIMUM_REQUIRED(VERSION 2.8.1)
21
22ADD_EXECUTABLE(GCNDisasmOpcodes
23        GCNDisasmOpcodes.cpp
24        GCNDisasmOpc11.cpp
25        GCNDisasmOpc12.cpp
26        GCNDisasmOpc14.cpp
27        GCNDisasmOpc15.cpp)
28TEST_LINK_LIBRARIES(GCNDisasmOpcodes CLRXAmdAsm CLRXAmdBin CLRXUtils)
29ADD_TEST(GCNDisasmOpcodes GCNDisasmOpcodes)
30
31ADD_EXECUTABLE(GCNDisasmLabels GCNDisasmLabels.cpp)
32TEST_LINK_LIBRARIES(GCNDisasmLabels CLRXAmdAsm CLRXAmdBin CLRXUtils)
33ADD_TEST(GCNDisasmLabels GCNDisasmLabels)
34
35ADD_EXECUTABLE(DisasmDataTest DisasmDataTest.cpp)
36TEST_LINK_LIBRARIES(DisasmDataTest CLRXAmdAsm CLRXAmdBin CLRXUtils)
37ADD_TEST(DisasmDataTest DisasmDataTest)
38
39ADD_EXECUTABLE(AsmExprParse AsmExprParse.cpp)
40TEST_LINK_LIBRARIES(AsmExprParse CLRXAmdAsm CLRXAmdBin CLRXUtils)
41ADD_TEST(AsmExprParse AsmExprParse)
42
43ADD_EXECUTABLE(AssemblerBasics AssemblerBasics.cpp
44        AsmBasicsCases1.cpp
45        AsmBasicsCases2.cpp)
46TEST_LINK_LIBRARIES(AssemblerBasics CLRXAmdAsm CLRXAmdBin CLRXUtils)
47ADD_TEST(AssemblerBasics AssemblerBasics)
48
49ADD_EXECUTABLE(AsmAmdFormat AsmAmdFormat.cpp)
50TEST_LINK_LIBRARIES(AsmAmdFormat CLRXAmdAsm CLRXAmdBin CLRXUtils)
51ADD_TEST(AsmAmdFormat AsmAmdFormat)
52
53ADD_EXECUTABLE(AsmAmdCL2Format AsmAmdCL2Format.cpp)
54TEST_LINK_LIBRARIES(AsmAmdCL2Format CLRXAmdAsm CLRXAmdBin CLRXUtils)
55ADD_TEST(AsmAmdCL2Format AsmAmdCL2Format)
56
57ADD_EXECUTABLE(AsmGalliumFormat AsmGalliumFormat.cpp)
58TEST_LINK_LIBRARIES(AsmGalliumFormat CLRXAmdAsm CLRXAmdBin CLRXUtils)
59ADD_TEST(AsmGalliumFormat AsmGalliumFormat)
60
61ADD_EXECUTABLE(AsmROCmFormat AsmROCmFormat.cpp)
62TEST_LINK_LIBRARIES(AsmROCmFormat CLRXAmdAsm CLRXAmdBin CLRXUtils)
63ADD_TEST(AsmROCmFormat AsmROCmFormat)
64
65ADD_EXECUTABLE(GCNAsmOpcodes
66        GCNAsmOpcodes.cpp
67        GCNAsmOpc11.cpp
68        GCNAsmOpc12.cpp
69        GCNAsmOpc14.cpp
70        GCNAsmOpc15.cpp)
71TEST_LINK_LIBRARIES(GCNAsmOpcodes CLRXAmdAsm CLRXAmdBin CLRXUtils)
72ADD_TEST(GCNAsmOpcodes GCNAsmOpcodes)
73
74ADD_EXECUTABLE(AsmRegPool AsmRegPool.cpp)
75TEST_LINK_LIBRARIES(AsmRegPool CLRXAmdAsm CLRXAmdBin CLRXUtils)
76ADD_TEST(AsmRegPool AsmRegPool)
77
78ADD_EXECUTABLE(GCNRegVarUsage GCNRegVarUsage.cpp)
79TEST_LINK_LIBRARIES(GCNRegVarUsage CLRXAmdAsm CLRXAmdBin CLRXUtils)
80ADD_TEST(GCNRegVarUsage GCNRegVarUsage)
81
82ADD_EXECUTABLE(AsmCodeFlow AsmCodeFlow.cpp)
83TEST_LINK_LIBRARIES(AsmCodeFlow CLRXAmdAsm CLRXAmdBin CLRXUtils)
84ADD_TEST(AsmCodeFlow AsmCodeFlow)
85
86ADD_EXECUTABLE(AsmRegAlloc
87        AsmRegAlloc.cpp
88        AsmRegAllocCase1.cpp
89        AsmRegAllocCase2.cpp
90        AsmRegAllocCase3.cpp)
91TEST_LINK_LIBRARIES(AsmRegAlloc CLRXAmdAsm CLRXAmdBin CLRXUtils)
92ADD_TEST(AsmRegAlloc AsmRegAlloc)
93
94ADD_EXECUTABLE(AsmRegAlloc2 AsmRegAlloc2.cpp)
95TEST_LINK_LIBRARIES(AsmRegAlloc2 CLRXAmdAsm CLRXAmdBin CLRXUtils)
96ADD_TEST(AsmRegAlloc2 AsmRegAlloc2)
97
98ADD_EXECUTABLE(AsmRegAlloc3 AsmRegAlloc3.cpp)
99TEST_LINK_LIBRARIES(AsmRegAlloc3 CLRXAmdAsm CLRXAmdBin CLRXUtils)
100ADD_TEST(AsmRegAlloc3 AsmRegAlloc3)
101
102ADD_EXECUTABLE(AsmSourcePosHandler AsmSourcePosHandler.cpp)
103TEST_LINK_LIBRARIES(AsmSourcePosHandler CLRXAmdAsm CLRXAmdBin CLRXUtils)
104ADD_TEST(AsmSourcePosHandler AsmSourcePosHandler)
105
106ADD_EXECUTABLE(GCNWaitHandle GCNWaitHandle.cpp)
107TEST_LINK_LIBRARIES(GCNWaitHandle CLRXAmdAsm CLRXAmdBin CLRXUtils)
108ADD_TEST(GCNWaitHandle GCNWaitHandle)
Note: See TracBrowser for help on using the repository browser.