diff options
author | Akira Hatanaka <ahatanaka@mips.com> | 2012-10-27 00:44:39 +0000 |
---|---|---|
committer | Akira Hatanaka <ahatanaka@mips.com> | 2012-10-27 00:44:39 +0000 |
commit | 4618e0b574bf879d062a39b5867d9c314a4639e0 (patch) | |
tree | 5947a29bf0d8af6ebffe7d2e56e654522a24367c /test/CodeGen | |
parent | fe30a9be40a6bc22ccfab96915f4a71966f53023 (diff) | |
download | external_llvm-4618e0b574bf879d062a39b5867d9c314a4639e0.zip external_llvm-4618e0b574bf879d062a39b5867d9c314a4639e0.tar.gz external_llvm-4618e0b574bf879d062a39b5867d9c314a4639e0.tar.bz2 |
[mips] Make sure FuncArg doesn't advance when OrigArgIndex is the same as in the
previous iteration.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166850 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen')
-rw-r--r-- | test/CodeGen/Mips/o32_cc_byval.ll | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/CodeGen/Mips/o32_cc_byval.ll b/test/CodeGen/Mips/o32_cc_byval.ll index eac0d80..5558ba6 100644 --- a/test/CodeGen/Mips/o32_cc_byval.ll +++ b/test/CodeGen/Mips/o32_cc_byval.ll @@ -119,6 +119,16 @@ entry: ret void } +%struct.S4 = type { [4 x i32] } + +define void @f5(i64 %a0, %struct.S4* nocapture byval %a1) nounwind { +entry: + tail call void @f6(%struct.S4* byval %a1, i64 %a0) nounwind + ret void +} + +declare void @f6(%struct.S4* nocapture byval, i64) + !0 = metadata !{metadata !"int", metadata !1} !1 = metadata !{metadata !"omnipotent char", metadata !2} !2 = metadata !{metadata !"Simple C/C++ TBAA", null} |