aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/mips64-padding-arg.c
diff options
context:
space:
mode:
authorAkira Hatanaka <ahatanaka@mips.com>2012-01-12 01:10:09 +0000
committerAkira Hatanaka <ahatanaka@mips.com>2012-01-12 01:10:09 +0000
commitcc66254946ec86a2ec94ff9c8db96b05a364a94f (patch)
tree00635bd61695d957a1d51bfbbceae056551f5a87 /test/CodeGen/mips64-padding-arg.c
parent2afd23da0e33a8cd44c1c46b1651c677fdd27151 (diff)
Take into account the pointer to an aggregate that is passed as a hidden
argument when Offset is initialized. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@147986 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/mips64-padding-arg.c')
-rw-r--r--test/CodeGen/mips64-padding-arg.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/CodeGen/mips64-padding-arg.c b/test/CodeGen/mips64-padding-arg.c
index 3958807974..faafd5e63c 100644
--- a/test/CodeGen/mips64-padding-arg.c
+++ b/test/CodeGen/mips64-padding-arg.c
@@ -29,3 +29,15 @@ void foo3(int a0, long double a1) {
foo4(1, 2, a0, a1);
}
+// Insert padding after hidden argument.
+//
+// CHECK: define void @foo5(%struct.S0* noalias nocapture sret %agg.result, i64, fp128 %a0)
+// CHECK: call void @foo6(%struct.S0* sret %tmp, i32 1, i32 2, i64 undef, fp128 %a0)
+// CHECK: declare void @foo6(%struct.S0* sret, i32, i32, i64, fp128)
+
+extern S0 foo6(int, int, long double);
+
+S0 foo5(long double a0) {
+ foo6(1, 2, a0);
+}
+