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 | 719fbc9ae7cde71c98129da6f43f33ea8980f915 (patch) | |
tree | 62593e33b1fc0ed1a26132b6d6b51c1c7688d1a1 /llvm/test/CodeGen/R600/fpext.ll | |
parent | 4715d886f824c5e0518e4835fc4433fa5a5eb933 (diff) | |
download | bcm5719-llvm-719fbc9ae7cde71c98129da6f43f33ea8980f915.tar.gz bcm5719-llvm-719fbc9ae7cde71c98129da6f43f33ea8980f915.zip |
R600/SI: Implement fp32<->fp64 conversions
llvm-svn: 187988
Diffstat (limited to 'llvm/test/CodeGen/R600/fpext.ll')
-rw-r--r-- | llvm/test/CodeGen/R600/fpext.ll | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/R600/fpext.ll b/llvm/test/CodeGen/R600/fpext.ll new file mode 100644 index 00000000000..e02c19ce106 --- /dev/null +++ b/llvm/test/CodeGen/R600/fpext.ll @@ -0,0 +1,9 @@ +; RUN: llc < %s -march=r600 -mcpu=SI | FileCheck %s --check-prefix=CHECK + +; CHECK: @fpext +; CHECK: V_CVT_F64_F32_e32 +define void @fpext(double addrspace(1)* %out, float %in) { + %result = fpext float %in to double + store double %result, double addrspace(1)* %out + ret void +} |