[llvm] r186182 - R600/SI: Add support for f64 kernel arguments
Tom Stellard
thomas.stellard at amd.com
Fri Jul 12 11:15:26 PDT 2013
Author: tstellar
Date: Fri Jul 12 13:15:26 2013
New Revision: 186182
URL: http://llvm.org/viewvc/llvm-project?rev=186182&view=rev
Log:
R600/SI: Add support for f64 kernel arguments
Patch by: Niels Ole Salscheider
Reviewed-by: Tom Stellard <thomas.stellard at amd.com>
Added:
llvm/trunk/test/CodeGen/R600/64bit-kernel-args.ll
Modified:
llvm/trunk/lib/Target/R600/AMDGPUCallingConv.td
Modified: llvm/trunk/lib/Target/R600/AMDGPUCallingConv.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/R600/AMDGPUCallingConv.td?rev=186182&r1=186181&r2=186182&view=diff
==============================================================================
--- llvm/trunk/lib/Target/R600/AMDGPUCallingConv.td (original)
+++ llvm/trunk/lib/Target/R600/AMDGPUCallingConv.td Fri Jul 12 13:15:26 2013
@@ -39,7 +39,7 @@ def CC_SI : CallingConv<[
// Calling convention for SI compute kernels
def CC_SI_Kernel : CallingConv<[
CCIfType<[v4i32, v4f32], CCAssignToStack <16, 4>>,
- CCIfType<[i64], CCAssignToStack < 8, 4>>,
+ CCIfType<[i64, f64], CCAssignToStack < 8, 4>>,
CCIfType<[i32, f32], CCAssignToStack < 4, 4>>,
CCIfType<[i16], CCAssignToStack < 2, 4>>,
CCIfType<[i8], CCAssignToStack < 1, 4>>
Added: llvm/trunk/test/CodeGen/R600/64bit-kernel-args.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/R600/64bit-kernel-args.ll?rev=186182&view=auto
==============================================================================
--- llvm/trunk/test/CodeGen/R600/64bit-kernel-args.ll (added)
+++ llvm/trunk/test/CodeGen/R600/64bit-kernel-args.ll Fri Jul 12 13:15:26 2013
@@ -0,0 +1,9 @@
+; RUN: llc < %s -march=r600 -mcpu=tahiti | FileCheck %s
+
+; SI-CHECK: @f64_kernel_arg
+; SI-CHECK: BUFFER_STORE_DWORDX2
+define void @f64_kernel_arg(double addrspace(1)* %out, double %in) {
+entry:
+ store double %in, double addrspace(1)* %out
+ ret void
+}
More information about the llvm-commits
mailing list