Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Xiph.Org
aom-rav1e
Commits
9a9f41f9
Commit
9a9f41f9
authored
Feb 02, 2017
by
Steinar Midtskogen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change const int iterations into const int kIterations (style)
Change-Id: I59fd3bd3cc58c3e15dfb6c5e46f303c5d4fd739c
parent
d091b809
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
27 deletions
+27
-27
test/simd_impl.h
test/simd_impl.h
+27
-27
No files found.
test/simd_impl.h
View file @
9a9f41f9
...
...
@@ -78,115 +78,115 @@ template <typename c_ret, typename c_arg1, typename c_arg2>
void
TestSimd2Args
(
uint32_t
iterations
,
uint32_t
mask
,
uint32_t
maskwidth
,
const
char
*
name
);
const
int
i
terations
=
65536
;
const
int
kI
terations
=
65536
;
// Add a macro layer since TEST_P will quote the name so we need to
// expand it first with the prefix.
#define MY_TEST_P(name, test) TEST_P(name, test)
MY_TEST_P
(
ARCH_POSTFIX
(
V64_U32
),
TestIntrinsics
)
{
TestSimd1Arg
<
c_v64
,
uint32_t
>
(
i
terations
,
mask
,
maskwidth
,
name
);
TestSimd1Arg
<
c_v64
,
uint32_t
>
(
kI
terations
,
mask
,
maskwidth
,
name
);
}
MY_TEST_P
(
ARCH_POSTFIX
(
V64_V64
),
TestIntrinsics
)
{
TestSimd1Arg
<
c_v64
,
c_v64
>
(
i
terations
,
mask
,
maskwidth
,
name
);
TestSimd1Arg
<
c_v64
,
c_v64
>
(
kI
terations
,
mask
,
maskwidth
,
name
);
}
MY_TEST_P
(
ARCH_POSTFIX
(
U64_V64
),
TestIntrinsics
)
{
TestSimd1Arg
<
uint64_t
,
c_v64
>
(
i
terations
,
mask
,
maskwidth
,
name
);
TestSimd1Arg
<
uint64_t
,
c_v64
>
(
kI
terations
,
mask
,
maskwidth
,
name
);
}
MY_TEST_P
(
ARCH_POSTFIX
(
U32_V64
),
TestIntrinsics
)
{
TestSimd1Arg
<
uint32_t
,
c_v64
>
(
i
terations
,
mask
,
maskwidth
,
name
);
TestSimd1Arg
<
uint32_t
,
c_v64
>
(
kI
terations
,
mask
,
maskwidth
,
name
);
}
MY_TEST_P
(
ARCH_POSTFIX
(
V64_U32U32
),
TestIntrinsics
)
{
TestSimd2Args
<
c_v64
,
uint32_t
,
uint32_t
>
(
i
terations
,
mask
,
maskwidth
,
name
);
TestSimd2Args
<
c_v64
,
uint32_t
,
uint32_t
>
(
kI
terations
,
mask
,
maskwidth
,
name
);
}
MY_TEST_P
(
ARCH_POSTFIX
(
V64_V64V64
),
TestIntrinsics
)
{
TestSimd2Args
<
c_v64
,
c_v64
,
c_v64
>
(
i
terations
,
mask
,
maskwidth
,
name
);
TestSimd2Args
<
c_v64
,
c_v64
,
c_v64
>
(
kI
terations
,
mask
,
maskwidth
,
name
);
}
MY_TEST_P
(
ARCH_POSTFIX
(
S64_V64V64
),
TestIntrinsics
)
{
TestSimd2Args
<
int64_t
,
c_v64
,
c_v64
>
(
i
terations
,
mask
,
maskwidth
,
name
);
TestSimd2Args
<
int64_t
,
c_v64
,
c_v64
>
(
kI
terations
,
mask
,
maskwidth
,
name
);
}
MY_TEST_P
(
ARCH_POSTFIX
(
U32_V64V64
),
TestIntrinsics
)
{
TestSimd2Args
<
uint32_t
,
c_v64
,
c_v64
>
(
i
terations
,
mask
,
maskwidth
,
name
);
TestSimd2Args
<
uint32_t
,
c_v64
,
c_v64
>
(
kI
terations
,
mask
,
maskwidth
,
name
);
}
MY_TEST_P
(
ARCH_POSTFIX
(
V64_V64U32
),
TestIntrinsics
)
{
TestSimd2Args
<
c_v64
,
c_v64
,
uint32_t
>
(
i
terations
,
mask
,
maskwidth
,
name
);
TestSimd2Args
<
c_v64
,
c_v64
,
uint32_t
>
(
kI
terations
,
mask
,
maskwidth
,
name
);
}
// Google Test allows up to 50 tests per case, so split the largest
MY_TEST_P
(
ARCH_POSTFIX
(
V64_V64_Part2
),
TestIntrinsics
)
{
TestSimd1Arg
<
c_v64
,
c_v64
>
(
i
terations
,
mask
,
maskwidth
,
name
);
TestSimd1Arg
<
c_v64
,
c_v64
>
(
kI
terations
,
mask
,
maskwidth
,
name
);
}
MY_TEST_P
(
ARCH_POSTFIX
(
V64_V64V64_Part2
),
TestIntrinsics
)
{
TestSimd2Args
<
c_v64
,
c_v64
,
c_v64
>
(
i
terations
,
mask
,
maskwidth
,
name
);
TestSimd2Args
<
c_v64
,
c_v64
,
c_v64
>
(
kI
terations
,
mask
,
maskwidth
,
name
);
}
MY_TEST_P
(
ARCH_POSTFIX
(
U32_V128
),
TestIntrinsics
)
{
TestSimd1Arg
<
uint32_t
,
c_v128
>
(
i
terations
,
mask
,
maskwidth
,
name
);
TestSimd1Arg
<
uint32_t
,
c_v128
>
(
kI
terations
,
mask
,
maskwidth
,
name
);
}
MY_TEST_P
(
ARCH_POSTFIX
(
U64_V128
),
TestIntrinsics
)
{
TestSimd1Arg
<
uint64_t
,
c_v128
>
(
i
terations
,
mask
,
maskwidth
,
name
);
TestSimd1Arg
<
uint64_t
,
c_v128
>
(
kI
terations
,
mask
,
maskwidth
,
name
);
}
MY_TEST_P
(
ARCH_POSTFIX
(
V64_V128
),
TestIntrinsics
)
{
TestSimd1Arg
<
c_v64
,
c_v128
>
(
i
terations
,
mask
,
maskwidth
,
name
);
TestSimd1Arg
<
c_v64
,
c_v128
>
(
kI
terations
,
mask
,
maskwidth
,
name
);
}
MY_TEST_P
(
ARCH_POSTFIX
(
V128_V128
),
TestIntrinsics
)
{
TestSimd1Arg
<
c_v128
,
c_v128
>
(
i
terations
,
mask
,
maskwidth
,
name
);
TestSimd1Arg
<
c_v128
,
c_v128
>
(
kI
terations
,
mask
,
maskwidth
,
name
);
}
MY_TEST_P
(
ARCH_POSTFIX
(
V128_U32
),
TestIntrinsics
)
{
TestSimd1Arg
<
c_v128
,
uint32_t
>
(
i
terations
,
mask
,
maskwidth
,
name
);
TestSimd1Arg
<
c_v128
,
uint32_t
>
(
kI
terations
,
mask
,
maskwidth
,
name
);
}
MY_TEST_P
(
ARCH_POSTFIX
(
V128_V64
),
TestIntrinsics
)
{
TestSimd1Arg
<
c_v128
,
c_v64
>
(
i
terations
,
mask
,
maskwidth
,
name
);
TestSimd1Arg
<
c_v128
,
c_v64
>
(
kI
terations
,
mask
,
maskwidth
,
name
);
}
MY_TEST_P
(
ARCH_POSTFIX
(
V128_V128V128
),
TestIntrinsics
)
{
TestSimd2Args
<
c_v128
,
c_v128
,
c_v128
>
(
i
terations
,
mask
,
maskwidth
,
name
);
TestSimd2Args
<
c_v128
,
c_v128
,
c_v128
>
(
kI
terations
,
mask
,
maskwidth
,
name
);
}
MY_TEST_P
(
ARCH_POSTFIX
(
U32_V128V128
),
TestIntrinsics
)
{
TestSimd2Args
<
uint32_t
,
c_v128
,
c_v128
>
(
i
terations
,
mask
,
maskwidth
,
name
);
TestSimd2Args
<
uint32_t
,
c_v128
,
c_v128
>
(
kI
terations
,
mask
,
maskwidth
,
name
);
}
MY_TEST_P
(
ARCH_POSTFIX
(
S64_V128V128
),
TestIntrinsics
)
{
TestSimd2Args
<
int64_t
,
c_v128
,
c_v128
>
(
i
terations
,
mask
,
maskwidth
,
name
);
TestSimd2Args
<
int64_t
,
c_v128
,
c_v128
>
(
kI
terations
,
mask
,
maskwidth
,
name
);
}
MY_TEST_P
(
ARCH_POSTFIX
(
V128_U64U64
),
TestIntrinsics
)
{
TestSimd2Args
<
c_v128
,
uint64_t
,
uint64_t
>
(
i
terations
,
mask
,
maskwidth
,
name
);
TestSimd2Args
<
c_v128
,
uint64_t
,
uint64_t
>
(
kI
terations
,
mask
,
maskwidth
,
name
);
}
MY_TEST_P
(
ARCH_POSTFIX
(
V128_V64V64
),
TestIntrinsics
)
{
TestSimd2Args
<
c_v128
,
c_v64
,
c_v64
>
(
i
terations
,
mask
,
maskwidth
,
name
);
TestSimd2Args
<
c_v128
,
c_v64
,
c_v64
>
(
kI
terations
,
mask
,
maskwidth
,
name
);
}
MY_TEST_P
(
ARCH_POSTFIX
(
V128_V128U32
),
TestIntrinsics
)
{
TestSimd2Args
<
c_v128
,
c_v128
,
uint32_t
>
(
i
terations
,
mask
,
maskwidth
,
name
);
TestSimd2Args
<
c_v128
,
c_v128
,
uint32_t
>
(
kI
terations
,
mask
,
maskwidth
,
name
);
}
MY_TEST_P
(
ARCH_POSTFIX
(
V128_V128V128_Part2
),
TestIntrinsics
)
{
TestSimd2Args
<
c_v128
,
c_v128
,
c_v128
>
(
i
terations
,
mask
,
maskwidth
,
name
);
TestSimd2Args
<
c_v128
,
c_v128
,
c_v128
>
(
kI
terations
,
mask
,
maskwidth
,
name
);
}
MY_TEST_P
(
ARCH_POSTFIX
(
V128_V128_Part2
),
TestIntrinsics
)
{
TestSimd1Arg
<
c_v128
,
c_v128
>
(
i
terations
,
mask
,
maskwidth
,
name
);
TestSimd1Arg
<
c_v128
,
c_v128
>
(
kI
terations
,
mask
,
maskwidth
,
name
);
}
MY_TEST_P
(
ARCH_POSTFIX
(
V128_V128_Part3
),
TestIntrinsics
)
{
TestSimd1Arg
<
c_v128
,
c_v128
>
(
i
terations
,
mask
,
maskwidth
,
name
);
TestSimd1Arg
<
c_v128
,
c_v128
>
(
kI
terations
,
mask
,
maskwidth
,
name
);
}
// Add a macro layer since INSTANTIATE_TEST_CASE_P will quote the name
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment