[PATCH] Hexagon Calling Convention Test
Sundeep
sundeepk at codeaurora.org
Tue May 12 10:22:38 PDT 2015
Hi bcahoon, iajbar, kparzysz,
Add a test program to verify calling convention for large struct return by value.
REPOSITORY
rL LLVM
http://reviews.llvm.org/D9709
Files:
test/CodeGen/Hexagon/calling-conv-2.ll
Index: test/CodeGen/Hexagon/calling-conv-2.ll
===================================================================
--- test/CodeGen/Hexagon/calling-conv-2.ll
+++ test/CodeGen/Hexagon/calling-conv-2.ll
@@ -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
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D9709.25599.patch
Type: text/x-patch
Size: 626 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150512/a7d8d80b/attachment.bin>
More information about the llvm-commits
mailing list