[llvm] r237170 - [PATCH] [HEXAGON] Add a test program to verify calling convention
Sundeep Kushwaha
sundeepk at codeaurora.org
Tue May 12 13:13:11 PDT 2015
Author: sundeepk
Date: Tue May 12 15:13:10 2015
New Revision: 237170
URL: http://llvm.org/viewvc/llvm-project?rev=237170&view=rev
Log:
[PATCH] [HEXAGON] Add a test program to verify calling convention
for large struct return by value.
Differential Revision: http://reviews.llvm.org/D9709
Added:
llvm/trunk/test/CodeGen/Hexagon/calling-conv-2.ll
Added: llvm/trunk/test/CodeGen/Hexagon/calling-conv-2.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/Hexagon/calling-conv-2.ll?rev=237170&view=auto
==============================================================================
--- llvm/trunk/test/CodeGen/Hexagon/calling-conv-2.ll (added)
+++ llvm/trunk/test/CodeGen/Hexagon/calling-conv-2.ll Tue May 12 15:13:10 2015
@@ -0,0 +1,13 @@
+; RUN: llc -march=hexagon -mcpu=hexagonv5 <%s | \
+; RUN: FileCheck %s --check-prefix=CHECK-ONE
+
+%struct.test_struct = type { i32, i8, i64 }
+
+; CHECK-ONE: r1 = #45
+define void @foo(%struct.test_struct* noalias nocapture sret %agg.result, i32 %a) #0 {
+entry:
+ call void @bar(%struct.test_struct* sret %agg.result, i32 45) #2
+ ret void
+}
+
+declare void @bar(%struct.test_struct* sret, i32) #1
More information about the llvm-commits
mailing list