mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-26 23:33:20 +08:00
Change-Id: Ibebd88b7347b53fbb6dd8563501ee7699ce7ff89 Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
19 lines
399 B
C++
19 lines
399 B
C++
/*
|
|
* Copyright (C) 2019 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#include "core/utilities/clflush.h"
|
|
|
|
#include "gtest/gtest.h"
|
|
|
|
extern void const *lastClFlushedPtr;
|
|
|
|
TEST(ClFlushTest, whenClFlushIsCalledThenExpectToPassPtrToSystemCall) {
|
|
void const *ptr = reinterpret_cast<void const *>(0x1234);
|
|
NEO::CpuIntrinsics::clFlush(ptr);
|
|
EXPECT_EQ(ptr, lastClFlushedPtr);
|
|
}
|