[AMDGPU][True16][CodeGen] true16 codegen pattern for v_med3_u/i16 (#121850)
[llvm-project.git] / compiler-rt / lib / builtins / truncxfbf2.c
blob5a389abdf0d5707b2e993dd9750102aceb0a21da
1 //===-- lib/truncxfbf2.c - long double -> bfloat conversion -------*- C -*-===//
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 //===----------------------------------------------------------------------===//
9 #if defined(CRT_HAS_TF_MODE) && __LDBL_MANT_DIG__ == 64 && defined(__x86_64__)
10 #define SRC_80
11 #define DST_BFLOAT
12 #include "fp_trunc_impl.inc"
14 COMPILER_RT_ABI dst_t __truncxfbf2(long double a) { return __truncXfYf2__(a); }
16 #endif
18 // Have at least one declaration to suppress warnings.
19 enum Unused { ReallyUnused };