[RISCV] Add RVVConstraint to SiFive custom matrix multiply instructions. (#124055)
[llvm-project.git] / libc / test / include / isinf_test.c
blob7dc6ce557926368bd4ff55fdf60f9fa7b5a97c6b
1 //===-- Unittests for isinf macro -----------------------------------------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 #include "include/llvm-libc-macros/math-function-macros.h"
10 #include <assert.h>
12 // check if macro is defined
13 #ifndef isinf
14 #error "isinf macro is not defined"
15 #else
16 int main(void) {
17 assert(!isinf(1.0f));
18 assert(!isinf(1.0));
19 assert(!isinf(1.0L));
20 return 0;
22 #endif