Subzero: Rerun clang-format after LLVM 3.6 merge.
BUG= none
R=jvoung@chromium.org
Review URL: https://codereview.chromium.org/974113002
diff --git a/crosstest/test_arith_main.cpp b/crosstest/test_arith_main.cpp
index 49aa662..e95db44 100644
--- a/crosstest/test_arith_main.cpp
+++ b/crosstest/test_arith_main.cpp
@@ -64,14 +64,14 @@
#define X(inst, op, isdiv, isshift) \
{ STR(inst), test##inst, Subzero_::test##inst, NULL, NULL, isdiv } \
,
- UINTOP_TABLE
+ UINTOP_TABLE
#undef X
#define X(inst, op, isdiv, isshift) \
{ STR(inst), NULL, NULL, test##inst, Subzero_::test##inst, isdiv } \
,
- SINTOP_TABLE
+ SINTOP_TABLE
#undef X
- };
+ };
const static size_t NumFuncs = sizeof(Funcs) / sizeof(*Funcs);
if (sizeof(TypeUnsigned) <= sizeof(uint32_t)) {
@@ -177,14 +177,14 @@
#define X(inst, op, isdiv, isshift) \
{ STR(inst), test##inst, Subzero_::test##inst, NULL, NULL, isdiv, isshift } \
,
- UINTOP_TABLE
+ UINTOP_TABLE
#undef X
#define X(inst, op, isdiv, isshift) \
{ STR(inst), NULL, NULL, test##inst, Subzero_::test##inst, isdiv, isshift } \
,
- SINTOP_TABLE
+ SINTOP_TABLE
#undef X
- };
+ };
const static size_t NumFuncs = sizeof(Funcs) / sizeof(*Funcs);
const static size_t NumElementsInType = Vectors<TypeUnsigned>::NumElements;
for (size_t f = 0; f < NumFuncs; ++f) {
@@ -247,9 +247,9 @@
#define X(inst, op, func) \
{ STR(inst), (FuncType)test##inst, (FuncType)Subzero_::test##inst } \
,
- FPOP_TABLE
+ FPOP_TABLE
#undef X
- };
+ };
const static size_t NumFuncs = sizeof(Funcs) / sizeof(*Funcs);
for (size_t f = 0; f < NumFuncs; ++f) {
@@ -306,9 +306,9 @@
#define X(inst, op, func) \
{ STR(inst), (FuncType)test##inst, (FuncType)Subzero_::test##inst } \
,
- FPOP_TABLE
+ FPOP_TABLE
#undef X
- };
+ };
const static size_t NumFuncs = sizeof(Funcs) / sizeof(*Funcs);
const static size_t NumElementsInType = 4;
for (size_t f = 0; f < NumFuncs; ++f) {
diff --git a/crosstest/test_bitmanip_main.cpp b/crosstest/test_bitmanip_main.cpp
index 4901462..dfb5d1a 100644
--- a/crosstest/test_bitmanip_main.cpp
+++ b/crosstest/test_bitmanip_main.cpp
@@ -28,31 +28,18 @@
}
volatile uint64_t Values[] = {
- 0, 1,
- 0x7e, 0x7f,
- 0x80, 0x81,
- 0xfe, 0xff,
- 0x7ffe, 0x7fff,
- 0x8000, 0x8001,
- 0xfffe, 0xffff,
- 0xc0de, 0xabcd,
- 0xdcba, 0x007fffff /*Max subnormal + */,
- 0x00800000 /*Min+ */, 0x7f7fffff /*Max+ */,
- 0x7f800000 /*+Inf*/, 0xff800000 /*-Inf*/,
- 0x7fa00000 /*SNaN*/, 0x7fc00000 /*QNaN*/,
- 0x7ffffffe, 0x7fffffff,
- 0x80000000, 0x80000001,
- 0xfffffffe, 0xffffffff,
- 0x12345678, 0xabcd1234,
- 0x1234dcba, 0x100000000ll,
- 0x100000001ll, 0x123456789abcdef1ll,
- 0x987654321ab1fedcll, 0x000fffffffffffffll /*Max subnormal + */,
+ 0, 1, 0x7e, 0x7f, 0x80, 0x81, 0xfe, 0xff, 0x7ffe, 0x7fff, 0x8000, 0x8001,
+ 0xfffe, 0xffff, 0xc0de, 0xabcd, 0xdcba, 0x007fffff /*Max subnormal + */,
+ 0x00800000 /*Min+ */, 0x7f7fffff /*Max+ */, 0x7f800000 /*+Inf*/,
+ 0xff800000 /*-Inf*/, 0x7fa00000 /*SNaN*/, 0x7fc00000 /*QNaN*/, 0x7ffffffe,
+ 0x7fffffff, 0x80000000, 0x80000001, 0xfffffffe, 0xffffffff, 0x12345678,
+ 0xabcd1234, 0x1234dcba, 0x100000000ll, 0x100000001ll, 0x123456789abcdef1ll,
+ 0x987654321ab1fedcll, 0x000fffffffffffffll /*Max subnormal + */,
0x0010000000000000ll /*Min+ */, 0x7fefffffffffffffll /*Max+ */,
- 0x7ff0000000000000ll /*+Inf*/, 0xfff0000000000000ll /*-Inf*/,
- 0x7ff0000000000001ll /*SNaN*/, 0x7ff8000000000000ll /*QNaN*/,
- 0x7ffffffffffffffell, 0x7fffffffffffffffll,
- 0x8000000000000000ll, 0x8000000000000001ll,
- 0xfffffffffffffffell, 0xffffffffffffffffll};
+ 0x7ff0000000000000ll /*+Inf*/, 0xfff0000000000000ll /*-Inf*/,
+ 0x7ff0000000000001ll /*SNaN*/, 0x7ff8000000000000ll /*QNaN*/,
+ 0x7ffffffffffffffell, 0x7fffffffffffffffll, 0x8000000000000000ll,
+ 0x8000000000000001ll, 0xfffffffffffffffell, 0xffffffffffffffffll};
const static size_t NumValues = sizeof(Values) / sizeof(*Values);
@@ -68,9 +55,9 @@
{ STR(inst), test_##inst, Subzero_::test_##inst } \
, {STR(inst) "_alloca", test_alloca_##inst, Subzero_::test_alloca_##inst}, \
{STR(inst) "_const", test_const_##inst, Subzero_::test_const_##inst},
- BMI_OPS
+ BMI_OPS
#undef X
- };
+ };
const static size_t NumFuncs = sizeof(Funcs) / sizeof(*Funcs);
for (size_t f = 0; f < NumFuncs; ++f) {
@@ -100,8 +87,8 @@
FuncType FuncLlc;
FuncType FuncSz;
} Funcs[] = {
- {"bswap", test_bswap, Subzero_::test_bswap},
- {"bswap_alloca", test_bswap_alloca, Subzero_::test_bswap_alloca}};
+ {"bswap", test_bswap, Subzero_::test_bswap},
+ {"bswap_alloca", test_bswap_alloca, Subzero_::test_bswap_alloca}};
const static size_t NumFuncs = sizeof(Funcs) / sizeof(*Funcs);
for (size_t f = 0; f < NumFuncs; ++f) {
for (size_t i = 0; i < NumValues; ++i) {
diff --git a/crosstest/test_calling_conv_main.cpp b/crosstest/test_calling_conv_main.cpp
index f319a49..ce5ecda 100644
--- a/crosstest/test_calling_conv_main.cpp
+++ b/crosstest/test_calling_conv_main.cpp
@@ -75,9 +75,9 @@
reinterpret_cast<CalleePtrTy>(&callee), \
} \
,
- TEST_FUNC_TABLE
+ TEST_FUNC_TABLE
#undef X
- };
+ };
const static size_t NumFuncs = sizeof(Funcs) / sizeof(*Funcs);
@@ -125,9 +125,9 @@
reinterpret_cast<CalleePtrTy>(&Subzero_::callee) \
} \
,
- TEST_FUNC_TABLE
+ TEST_FUNC_TABLE
#undef X
- };
+ };
const static size_t NumFuncs = sizeof(Funcs) / sizeof(*Funcs);
diff --git a/crosstest/test_cast_main.cpp b/crosstest/test_cast_main.cpp
index dbd93aa..c395597 100644
--- a/crosstest/test_cast_main.cpp
+++ b/crosstest/test_cast_main.cpp
@@ -148,29 +148,19 @@
static const size_t NumValsSi32 = sizeof(ValsSi32) / sizeof(*ValsSi32);
volatile uint64_t ValsUi64[] = {
- 0, 1, 0x7e,
- 0x7f, 0x80, 0x81,
- 0xfe, 0xff, 0x7ffe,
- 0x7fff, 0x8000, 0x8001,
- 0xfffe, 0xffff, 0x7ffffffe,
- 0x7fffffff, 0x80000000, 0x80000001,
- 0xfffffffe, 0xffffffff, 0x100000000ull,
- 0x100000001ull, 0x7ffffffffffffffeull, 0x7fffffffffffffffull,
- 0x8000000000000000ull, 0x8000000000000001ull, 0xfffffffffffffffeull,
- 0xffffffffffffffffull};
+ 0, 1, 0x7e, 0x7f, 0x80, 0x81, 0xfe, 0xff, 0x7ffe, 0x7fff, 0x8000, 0x8001,
+ 0xfffe, 0xffff, 0x7ffffffe, 0x7fffffff, 0x80000000, 0x80000001,
+ 0xfffffffe, 0xffffffff, 0x100000000ull, 0x100000001ull,
+ 0x7ffffffffffffffeull, 0x7fffffffffffffffull, 0x8000000000000000ull,
+ 0x8000000000000001ull, 0xfffffffffffffffeull, 0xffffffffffffffffull};
static const size_t NumValsUi64 = sizeof(ValsUi64) / sizeof(*ValsUi64);
volatile int64_t ValsSi64[] = {
- 0, 1, 0x7e,
- 0x7f, 0x80, 0x81,
- 0xfe, 0xff, 0x7ffe,
- 0x7fff, 0x8000, 0x8001,
- 0xfffe, 0xffff, 0x7ffffffe,
- 0x7fffffff, 0x80000000, 0x80000001,
- 0xfffffffe, 0xffffffff, 0x100000000ll,
- 0x100000001ll, 0x7ffffffffffffffell, 0x7fffffffffffffffll,
- 0x8000000000000000ll, 0x8000000000000001ll, 0xfffffffffffffffell,
- 0xffffffffffffffffll};
+ 0, 1, 0x7e, 0x7f, 0x80, 0x81, 0xfe, 0xff, 0x7ffe, 0x7fff, 0x8000, 0x8001,
+ 0xfffe, 0xffff, 0x7ffffffe, 0x7fffffff, 0x80000000, 0x80000001,
+ 0xfffffffe, 0xffffffff, 0x100000000ll, 0x100000001ll,
+ 0x7ffffffffffffffell, 0x7fffffffffffffffll, 0x8000000000000000ll,
+ 0x8000000000000001ll, 0xfffffffffffffffell, 0xffffffffffffffffll};
static const size_t NumValsSi64 = sizeof(ValsSi64) / sizeof(*ValsSi64);
static const double NegInf = -1.0 / 0.0;
diff --git a/crosstest/test_fcmp_main.cpp b/crosstest/test_fcmp_main.cpp
index 359ecc0..9e9c32c 100644
--- a/crosstest/test_fcmp_main.cpp
+++ b/crosstest/test_fcmp_main.cpp
@@ -72,9 +72,9 @@
Subzero_fcmp##cmp##Double, fcmp##cmp##Double \
} \
,
- FCMP_TABLE
+ FCMP_TABLE
#undef X
- };
+ };
const static size_t NumFuncs = sizeof(Funcs) / sizeof(*Funcs);
bool ResultSz, ResultLlc;
@@ -125,9 +125,9 @@
#define X(cmp) \
{ "fcmp" STR(cmp), Subzero_fcmp##cmp##Vector, fcmp##cmp##Vector } \
,
- FCMP_TABLE
+ FCMP_TABLE
#undef X
- };
+ };
const static size_t NumFuncs = sizeof(Funcs) / sizeof(*Funcs);
const static size_t NumElementsInType = 4;
const static size_t MaxTestsPerFunc = 100000;
diff --git a/crosstest/test_global.cpp b/crosstest/test_global.cpp
index b2f52b0..b5519a0 100644
--- a/crosstest/test_global.cpp
+++ b/crosstest/test_global.cpp
@@ -43,12 +43,12 @@
} NestedStuff;
uint8_t *Pointer5;
} StructEx = {
- {10, 20, 30, 40, 50},
- ExternName1,
- {0.5, 1.5, 2.5},
- ExternName4,
- {ExternName3, {1000, 1010, 1020}, ExternName2},
- ExternName5,
+ {10, 20, 30, 40, 50},
+ ExternName1,
+ {0.5, 1.5, 2.5},
+ ExternName4,
+ {ExternName3, {1000, 1010, 1020}, ExternName2},
+ ExternName5,
};
#define ARRAY(a) \
@@ -61,13 +61,13 @@
uint8_t *ArrayAddress;
size_t ArraySizeInBytes;
} Arrays[] = {
- ARRAY(ArrayInitPartial),
- ARRAY(ArrayInitFull),
- ARRAY(ArrayConst),
- ARRAY(ArrayDouble),
- {(uint8_t *)(ArrayInitPartial + 2),
- sizeof(ArrayInitPartial) - 2 * sizeof(int)},
- {(uint8_t *)(&StructEx), sizeof(StructEx)},
+ ARRAY(ArrayInitPartial),
+ ARRAY(ArrayInitFull),
+ ARRAY(ArrayConst),
+ ARRAY(ArrayDouble),
+ {(uint8_t *)(ArrayInitPartial + 2),
+ sizeof(ArrayInitPartial) - 2 * sizeof(int)},
+ {(uint8_t *)(&StructEx), sizeof(StructEx)},
};
size_t NumArraysElements = sizeof(Arrays) / sizeof(*Arrays);
diff --git a/crosstest/test_icmp_main.cpp b/crosstest/test_icmp_main.cpp
index dbfe515..f27d53b 100644
--- a/crosstest/test_icmp_main.cpp
+++ b/crosstest/test_icmp_main.cpp
@@ -50,17 +50,17 @@
(FuncTypeUnsigned)Subzero_::icmp##cmp \
} \
,
- ICMP_U_TABLE
+ ICMP_U_TABLE
#undef X
#define X(cmp, op) \
{ \
- STR(cmp), (FuncTypeUnsigned)(FuncTypeSigned) icmp##cmp, \
- (FuncTypeUnsigned)(FuncTypeSigned) Subzero_::icmp##cmp \
+ STR(cmp), (FuncTypeUnsigned)(FuncTypeSigned)icmp##cmp, \
+ (FuncTypeUnsigned)(FuncTypeSigned)Subzero_::icmp##cmp \
} \
,
- ICMP_S_TABLE
+ ICMP_S_TABLE
#undef X
- };
+ };
const static size_t NumFuncs = sizeof(Funcs) / sizeof(*Funcs);
if (sizeof(TypeUnsigned) <= sizeof(uint32_t)) {
@@ -137,17 +137,17 @@
(FuncTypeUnsigned)Subzero_::icmp##cmp \
} \
,
- ICMP_U_TABLE
+ ICMP_U_TABLE
#undef X
#define X(cmp, op) \
{ \
- STR(cmp), (FuncTypeUnsigned)(FuncTypeSigned) icmp##cmp, \
- (FuncTypeUnsigned)(FuncTypeSigned) Subzero_::icmp##cmp \
+ STR(cmp), (FuncTypeUnsigned)(FuncTypeSigned)icmp##cmp, \
+ (FuncTypeUnsigned)(FuncTypeSigned)Subzero_::icmp##cmp \
} \
,
- ICMP_S_TABLE
+ ICMP_S_TABLE
#undef X
- };
+ };
const static size_t NumFuncs = sizeof(Funcs) / sizeof(*Funcs);
const static size_t NumElementsInType = Vectors<TypeUnsigned>::NumElements;
for (size_t f = 0; f < NumFuncs; ++f) {
@@ -206,7 +206,7 @@
#define X(cmp, op) \
{ STR(cmp), (FuncType)icmpi1##cmp, (FuncType)Subzero_::icmpi1##cmp } \
,
- ICMP_U_TABLE ICMP_S_TABLE};
+ ICMP_U_TABLE ICMP_S_TABLE};
const static size_t NumFuncs = sizeof(Funcs) / sizeof(*Funcs);
const static size_t NumElements = Vectors<T>::NumElements;
const static size_t MAX_NUMBER_OF_ELEMENTS_FOR_EXHAUSTIVE_TESTING = 8;
diff --git a/crosstest/test_sync_atomic_main.cpp b/crosstest/test_sync_atomic_main.cpp
index c9bf579..63dfc80 100644
--- a/crosstest/test_sync_atomic_main.cpp
+++ b/crosstest/test_sync_atomic_main.cpp
@@ -33,27 +33,17 @@
}
volatile uint64_t Values[] = {
- 0, 1,
- 0x7e, 0x7f,
- 0x80, 0x81,
- 0xfe, 0xff,
- 0x7ffe, 0x7fff,
- 0x8000, 0x8001,
- 0xfffe, 0xffff,
- 0x007fffff /*Max subnormal + */, 0x00800000 /*Min+ */,
- 0x7f7fffff /*Max+ */, 0x7f800000 /*+Inf*/,
- 0xff800000 /*-Inf*/, 0x7fa00000 /*SNaN*/,
- 0x7fc00000 /*QNaN*/, 0x7ffffffe,
- 0x7fffffff, 0x80000000,
- 0x80000001, 0xfffffffe,
- 0xffffffff, 0x100000000ll,
- 0x100000001ll, 0x000fffffffffffffll /*Max subnormal + */,
- 0x0010000000000000ll /*Min+ */, 0x7fefffffffffffffll /*Max+ */,
- 0x7ff0000000000000ll /*+Inf*/, 0xfff0000000000000ll /*-Inf*/,
- 0x7ff0000000000001ll /*SNaN*/, 0x7ff8000000000000ll /*QNaN*/,
- 0x7ffffffffffffffell, 0x7fffffffffffffffll,
- 0x8000000000000000ll, 0x8000000000000001ll,
- 0xfffffffffffffffell, 0xffffffffffffffffll};
+ 0, 1, 0x7e, 0x7f, 0x80, 0x81, 0xfe, 0xff, 0x7ffe, 0x7fff, 0x8000, 0x8001,
+ 0xfffe, 0xffff, 0x007fffff /*Max subnormal + */, 0x00800000 /*Min+ */,
+ 0x7f7fffff /*Max+ */, 0x7f800000 /*+Inf*/, 0xff800000 /*-Inf*/,
+ 0x7fa00000 /*SNaN*/, 0x7fc00000 /*QNaN*/, 0x7ffffffe, 0x7fffffff,
+ 0x80000000, 0x80000001, 0xfffffffe, 0xffffffff, 0x100000000ll,
+ 0x100000001ll, 0x000fffffffffffffll /*Max subnormal + */,
+ 0x0010000000000000ll /*Min+ */, 0x7fefffffffffffffll /*Max+ */,
+ 0x7ff0000000000000ll /*+Inf*/, 0xfff0000000000000ll /*-Inf*/,
+ 0x7ff0000000000001ll /*SNaN*/, 0x7ff8000000000000ll /*QNaN*/,
+ 0x7ffffffffffffffell, 0x7fffffffffffffffll, 0x8000000000000000ll,
+ 0x8000000000000001ll, 0xfffffffffffffffell, 0xffffffffffffffffll};
const static size_t NumValues = sizeof(Values) / sizeof(*Values);
@@ -77,9 +67,9 @@
{ STR(inst), test_##inst, Subzero_::test_##inst } \
, {STR(inst) "_alloca", test_alloca_##inst, Subzero_::test_alloca_##inst}, \
{STR(inst) "_const", test_const_##inst, Subzero_::test_const_##inst},
- RMWOP_TABLE
+ RMWOP_TABLE
#undef X
- };
+ };
const static size_t NumFuncs = sizeof(Funcs) / sizeof(*Funcs);
for (size_t f = 0; f < NumFuncs; ++f) {
@@ -188,9 +178,9 @@
#define X(inst) \
{ STR(inst), test_##inst, Subzero_::test_##inst } \
, {STR(inst) "_alloca", test_alloca_##inst, Subzero_::test_alloca_##inst},
- RMWOP_TABLE
+ RMWOP_TABLE
#undef X
- };
+ };
const static size_t NumFuncs = sizeof(Funcs) / sizeof(*Funcs);
// Just test a few values, otherwise it takes a *really* long time.