compiler-rt/fp16-abi/test.cpp

14 lines
335 B
C++

// Reproducer based on this code from Steve Leung (evetsso):
// https://github.com/ROCmSoftwarePlatform/rocFFT/issues/439#issuecomment-1693835987
#include <iostream>
#include <algorithm>
#include <vector>
int main()
{
_Float16 one_f16 = 0.123;
float one_f32 = one_f16;
std::cout << one_f32 << std::endl;
return 0;
}