diff options
Diffstat (limited to 'tests/Utils.h')
-rw-r--r-- | tests/Utils.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/Utils.h b/tests/Utils.h index 154d265cf9..3dc317f528 100644 --- a/tests/Utils.h +++ b/tests/Utils.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017-2019 ARM Limited. + * Copyright (c) 2017-2020 ARM Limited. * * SPDX-License-Identifier: MIT * @@ -383,6 +383,9 @@ void store_value_with_data_type(void *ptr, T value, DataType data_type) case DataType::S64: *reinterpret_cast<int64_t *>(ptr) = value; break; + case DataType::BFLOAT16: + *reinterpret_cast<bfloat16 *>(ptr) = bfloat16(value); + break; case DataType::F16: *reinterpret_cast<half *>(ptr) = value; break; |