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 | 2e3358a0f8472822ae168f5d76d9cd4d6bf7b910 (patch) | |
| tree | eba99bd9ff150f0432926c4b3dbc465858169214 /llvm | |
| parent | 385c04269fd941dcd3fba68bf26fc91778c07692 (diff) | |
| download | bcm5719-llvm-2e3358a0f8472822ae168f5d76d9cd4d6bf7b910.tar.gz bcm5719-llvm-2e3358a0f8472822ae168f5d76d9cd4d6bf7b910.zip | |
test case for revision 160084: Alignment filling between Mips function units
llvm-svn: 160177
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/test/MC/Mips/multi-64bit-func.ll | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/llvm/test/MC/Mips/multi-64bit-func.ll b/llvm/test/MC/Mips/multi-64bit-func.ll new file mode 100644 index 00000000000..6e0d784e07f --- /dev/null +++ b/llvm/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 +} |

