#ifndef REGEXP_MACRO_ASSEMBLER_IA32_H_
#define REGEXP_MACRO_ASSEMBLER_IA32_H_
-#if !(defined __arm__ || defined __thumb__ || defined ARM)
+#if !(defined(ARM) || defined(__arm__) || defined(__thumb__))
#include "regexp-macro-assembler.h"
#include "macro-assembler-ia32.h"
static void Test##Name()
#endif
-#if (defined __arm__ || defined __thumb__ || defined ARM)
-#define IA32TEST DISABLED_TEST
-#define ARMTEST TEST
-#else // ia32
-#define IA32TEST TEST
-#define ARMTEST DISABLED_TEST
-#endif
-
-
class CcTest {
public:
typedef void (TestFunction)();
}
-IA32TEST(MacroAssemblerIA32Success) {
+#if !(defined(ARM) || defined(__arm__) || defined(__thumb__))
+
+TEST(MacroAssemblerIA32Success) {
typedef bool (*AsciiTest) (
SeqAsciiString** base, int start_index, int end_index, int* captures);
}
-IA32TEST(MacroAssemblerIA32Simple) {
+TEST(MacroAssemblerIA32Simple) {
typedef bool (*AsciiTest) (
SeqAsciiString** base, int start_index, int end_index, int* captures);
}
-IA32TEST(MacroAssemblerIA32Backtrack) {
+TEST(MacroAssemblerIA32Backtrack) {
typedef bool (*AsciiTest) (
SeqAsciiString** base, int start_index, int end_index, int* captures);
}
-IA32TEST(MacroAssemblerIA32Registers) {
+TEST(MacroAssemblerIA32Registers) {
typedef bool (*AsciiTest) (
SeqAsciiString** base, int start_index, int end_index, int* captures);
CHECK_EQ(9, output[4]);
}
+#endif // !(defined(ARM) || defined(__arm__) || defined(__thumb__))
TEST(AddInverseToTable) {
static const int kLimit = 1000;