simd_comparisons.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /*
  2. * Copyright (C) 2019 Intel Corporation. All rights reserved.
  3. * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  4. */
  5. #ifndef _SIMD_COMPARISONS_H_
  6. #define _SIMD_COMPARISONS_H_
  7. #include "../aot_compiler.h"
  8. #ifdef __cplusplus
  9. extern "C" {
  10. #endif
  11. bool
  12. aot_compile_simd_i8x16_compare(AOTCompContext *comp_ctx,
  13. AOTFuncContext *func_ctx, IntCond cond);
  14. bool
  15. aot_compile_simd_i16x8_compare(AOTCompContext *comp_ctx,
  16. AOTFuncContext *func_ctx, IntCond cond);
  17. bool
  18. aot_compile_simd_i32x4_compare(AOTCompContext *comp_ctx,
  19. AOTFuncContext *func_ctx, IntCond cond);
  20. bool
  21. aot_compile_simd_i64x2_compare(AOTCompContext *comp_ctx,
  22. AOTFuncContext *func_ctx, IntCond cond);
  23. bool
  24. aot_compile_simd_f32x4_compare(AOTCompContext *comp_ctx,
  25. AOTFuncContext *func_ctx, FloatCond cond);
  26. bool
  27. aot_compile_simd_f64x2_compare(AOTCompContext *comp_ctx,
  28. AOTFuncContext *func_ctx, FloatCond cond);
  29. #ifdef __cplusplus
  30. } /* end of extern "C" */
  31. #endif
  32. #endif /* end of _SIMD_COMPARISONS_H_ */