2017-12-19 15:49:05 +00:00
|
|
|
/* SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
* Copyright(c) 2010-2014 Intel Corporation
|
2012-09-04 12:54:00 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
#include <rte_prefetch.h>
|
|
|
|
|
|
|
|
#include "test.h"
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Prefetch test
|
|
|
|
* =============
|
|
|
|
*
|
|
|
|
* - Just test that the macro can be called and validate the compilation.
|
|
|
|
* The test always return success.
|
|
|
|
*/
|
|
|
|
|
2014-08-18 11:29:23 +00:00
|
|
|
static int
|
2012-09-04 12:54:00 +00:00
|
|
|
test_prefetch(void)
|
|
|
|
{
|
|
|
|
int a;
|
|
|
|
|
|
|
|
rte_prefetch0(&a);
|
|
|
|
rte_prefetch1(&a);
|
|
|
|
rte_prefetch2(&a);
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2014-08-18 11:29:23 +00:00
|
|
|
|
2016-07-13 12:38:13 +00:00
|
|
|
REGISTER_TEST_COMMAND(prefetch_autotest, test_prefetch);
|