diff options
author | Niels Ole Salscheider <niels_ole@salscheider-online.de> | 2013-08-08 16:06:15 +0000 |
---|---|---|
committer | Niels Ole Salscheider <niels_ole@salscheider-online.de> | 2013-08-08 16:06:15 +0000 |
commit | 014773626d2678868adf696ac58c44d2b2980fa8 (patch) | |
tree | 0de2729ac5326b0dc6e3df8752e647c396484b64 /test/CodeGen/R600/fptrunc.ll | |
parent | 7114e2e7cff35364230795123d9049b96098725e (diff) | |
download | external_llvm-014773626d2678868adf696ac58c44d2b2980fa8.zip external_llvm-014773626d2678868adf696ac58c44d2b2980fa8.tar.gz external_llvm-014773626d2678868adf696ac58c44d2b2980fa8.tar.bz2 |
R600/SI: Implement fp32<->fp64 conversions
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187988 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/R600/fptrunc.ll')
-rw-r--r-- | test/CodeGen/R600/fptrunc.ll | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/CodeGen/R600/fptrunc.ll b/test/CodeGen/R600/fptrunc.ll new file mode 100644 index 0000000..2a10f63 --- /dev/null +++ b/test/CodeGen/R600/fptrunc.ll @@ -0,0 +1,9 @@ +; RUN: llc < %s -march=r600 -mcpu=SI | FileCheck %s --check-prefix=CHECK + +; CHECK: @fptrunc +; CHECK: V_CVT_F32_F64_e32 +define void @fptrunc(float addrspace(1)* %out, double %in) { + %result = fptrunc double %in to float + store float %result, float addrspace(1)* %out + ret void +} |