24
24
namespace llvm {
25
25
namespace exegesis {
26
26
27
- #if defined(__linux__) && !defined(__ANDROID__)
27
+ #if defined(__linux__) && !defined(__ANDROID__) && \
28
+ !(defined(__powerpc__) || defined(__s390x__) || defined(__sparc__))
28
29
29
30
// This needs to be updated anytime a test is added or removed from the test
30
31
// suite.
@@ -77,20 +78,12 @@ class SubprocessMemoryTest : public X86TestBase {
77
78
// memory calls not working in some cases, so they have been disabled.
78
79
// TODO(boomanaiden154): Investigate and fix this issue on PPC.
79
80
80
- #if defined(__powerpc__) || defined(__s390x__)
81
- TEST_F (SubprocessMemoryTest, DISABLED_OneDefinition) {
82
- #else
83
81
TEST_F (SubprocessMemoryTest, OneDefinition) {
84
- #endif
85
82
testCommon ({{" test1" , {APInt (8 , 0xff ), 4096 , 0 }}}, 0 );
86
83
checkSharedMemoryDefinition (getSharedMemoryName (0 , 0 ), 4096 , {0xff });
87
84
}
88
85
89
- #if defined(__powerpc__) || defined(__s390x__)
90
- TEST_F (SubprocessMemoryTest, DISABLED_MultipleDefinitions) {
91
- #else
92
86
TEST_F (SubprocessMemoryTest, MultipleDefinitions) {
93
- #endif
94
87
testCommon ({{" test1" , {APInt (8 , 0xaa ), 4096 , 0 }},
95
88
{" test2" , {APInt (8 , 0xbb ), 4096 , 1 }},
96
89
{" test3" , {APInt (8 , 0xcc ), 4096 , 2 }}},
@@ -100,11 +93,7 @@ TEST_F(SubprocessMemoryTest, MultipleDefinitions) {
100
93
checkSharedMemoryDefinition (getSharedMemoryName (1 , 2 ), 4096 , {0xcc });
101
94
}
102
95
103
- #if defined(__powerpc__) || defined(__s390x__)
104
- TEST_F (SubprocessMemoryTest, DISABLED_DefinitionFillsCompletely) {
105
- #else
106
96
TEST_F (SubprocessMemoryTest, DefinitionFillsCompletely) {
107
- #endif
108
97
testCommon ({{" test1" , {APInt (8 , 0xaa ), 4096 , 0 }},
109
98
{" test2" , {APInt (16 , 0xbbbb ), 4096 , 1 }},
110
99
{" test3" , {APInt (24 , 0xcccccc ), 4096 , 2 }}},
@@ -118,7 +107,7 @@ TEST_F(SubprocessMemoryTest, DefinitionFillsCompletely) {
118
107
}
119
108
120
109
// The following test is only supported on little endian systems.
121
- #if defined(__powerpc__) || defined(__s390x__) || __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
110
+ #if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
122
111
TEST_F (SubprocessMemoryTest, DISABLED_DefinitionEndTruncation) {
123
112
#else
124
113
TEST_F (SubprocessMemoryTest, DefinitionEndTruncation) {
@@ -150,7 +139,7 @@ TEST_F(SubprocessMemoryTest, DefinitionEndTruncation) {
150
139
checkSharedMemoryDefinition (getSharedMemoryName (3 , 0 ), 4096 , Test1Expected);
151
140
}
152
141
153
- #endif // defined( __linux__) && !defined( __ANDROID__)
142
+ #endif // __linux__ && !__ANDROID__ && !(__powerpc__ || __s390x__ || __sparc__ )
154
143
155
144
} // namespace exegesis
156
145
} // namespace llvm
0 commit comments