[PATCH] Hexagon Calling Convention Test
Sundeep
sundeepk at codeaurora.org
Tue May 12 13:16:57 PDT 2015
REPOSITORY
rL LLVM
http://reviews.llvm.org/D9709
Files:
llvm/trunk/test/CodeGen/Hexagon/calling-conv-2.ll
Index: llvm/trunk/test/CodeGen/Hexagon/calling-conv-2.ll
===================================================================
--- llvm/trunk/test/CodeGen/Hexagon/calling-conv-2.ll
+++ llvm/trunk/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.25611.patch
Type: text/x-patch
Size: 659 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150512/a04a7ce3/attachment.bin>
More information about the llvm-commits
mailing list