diff options
author | Jack Carter <jcarter@mips.com> | 2012-07-13 18:14:01 +0000 |
---|---|---|
committer | Jack Carter <jcarter@mips.com> | 2012-07-13 18:14:01 +0000 |
commit | 657c7cb558bcf28dd71456d61100ef19ad5fc08f (patch) | |
tree | cdcb1091e926dccdb6fa33ff2a2b6658e8096c0b /test/MC | |
parent | 23d3622e7647a2836e05bffeb24d3d9235a25f24 (diff) | |
download | external_llvm-657c7cb558bcf28dd71456d61100ef19ad5fc08f.zip external_llvm-657c7cb558bcf28dd71456d61100ef19ad5fc08f.tar.gz external_llvm-657c7cb558bcf28dd71456d61100ef19ad5fc08f.tar.bz2 |
test case for revision 160084: Alignment filling between Mips function units
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@160177 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC')
-rw-r--r-- | test/MC/Mips/multi-64bit-func.ll | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/test/MC/Mips/multi-64bit-func.ll b/test/MC/Mips/multi-64bit-func.ll new file mode 100644 index 0000000..6e0d784 --- /dev/null +++ b/test/MC/Mips/multi-64bit-func.ll @@ -0,0 +1,23 @@ +; There is no real check here. If the test doesn't +; assert it passes. +; RUN: llc -march=mips64el -filetype=obj -mcpu=mips64r2 < %s +; Run it again without extra nop in delay slot +; RUN: llc -march=mips64el -filetype=obj -mcpu=mips64r2 -enable-mips-delay-filler < %s + +define i32 @bosco1(i32 %x) nounwind readnone { +entry: + %inc = add i32 %x, 1 + ret i32 %inc +} + +define i32 @bosco2(i32 %x) nounwind readnone { +entry: + %inc = add i32 %x, 1 + ret i32 %inc +} + +define i32 @bosco3(i32 %x) nounwind readnone { +entry: + %inc = add i32 %x, 1 + ret i32 %inc +} |