diff options
author | Reed Kotler <rkotler@mips.com> | 2013-08-04 01:13:25 +0000 |
---|---|---|
committer | Reed Kotler <rkotler@mips.com> | 2013-08-04 01:13:25 +0000 |
commit | 8a7f9de9d42e5817167e374dd61408dcac31a102 (patch) | |
tree | bfb0d1618d9bfe587161b27fc6ff65c49af36309 /test | |
parent | af00feb1a6af78fbb07c4deca6e9e30a49cdcd15 (diff) | |
download | external_llvm-8a7f9de9d42e5817167e374dd61408dcac31a102.zip external_llvm-8a7f9de9d42e5817167e374dd61408dcac31a102.tar.gz external_llvm-8a7f9de9d42e5817167e374dd61408dcac31a102.tar.bz2 |
Clean up code for Mips16 large frame handling.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187701 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/CodeGen/Mips/largefr1.ll | 37 |
1 files changed, 25 insertions, 12 deletions
diff --git a/test/CodeGen/Mips/largefr1.ll b/test/CodeGen/Mips/largefr1.ll index 6c417d8..8946327 100644 --- a/test/CodeGen/Mips/largefr1.ll +++ b/test/CodeGen/Mips/largefr1.ll @@ -1,5 +1,6 @@ ; RUN: llc -march=mipsel -mcpu=mips16 -mips16-hard-float -soft-float -relocation-model=static < %s | FileCheck %s -check-prefix=1 + @i = common global i32 0, align 4 @j = common global i32 0, align 4 @.str = private unnamed_addr constant [8 x i8] c"%i %i \0A\00", align 1 @@ -24,20 +25,32 @@ define i32 @main() nounwind { entry: ; 1-LABEL: main: ; 1: 1: .word -797992 -; 1: li ${{[0-9]+}}, 12 -; 1: sll ${{[0-9]+}}, ${{[0-9]+}}, 16 +; 1: lw ${{[0-9]+}}, 1f +; 1: b 2f +; 1: .align 2 +; 1: .word 800016 + +; 1: b 2f +; 1: .align 2 +; 1: .word 400016 + +; 1: move ${{[0-9]+}}, $sp ; 1: addu ${{[0-9]+}}, ${{[0-9]+}}, ${{[0-9]+}} -; 2: move $sp, ${{[0-9]+}} -; 2: addu ${{[0-9]+}}, ${{[0-9]+}}, ${{[0-9]+}} -; 1: li ${{[0-9]+}}, 6 -; 1: sll ${{[0-9]+}}, ${{[0-9]+}}, 16 +; 1: addiu ${{[0-9]+}}, ${{[0-9]+}}, 0 + + + +; 1: b 2f +; 1: .align 2 +; 1: .word 400216 + +; 1: move ${{[0-9]+}}, $sp ; 1: addu ${{[0-9]+}}, ${{[0-9]+}}, ${{[0-9]+}} -; 2: move $sp, ${{[0-9]+}} -; 2: addu ${{[0-9]+}}, ${{[0-9]+}}, ${{[0-9]+}} -; 1: addiu ${{[0-9]+}}, ${{[0-9]+}}, 6800 -; 1: li ${{[0-9]+}}, 1 -; 1: sll ${{[0-9]+}}, ${{[0-9]+}}, 16 -; 2: li ${{[0-9]+}}, 34463 +; 1: lw ${{[0-9]+}}, 0(${{[0-9]+}}) + + + + %retval = alloca i32, align 4 %one = alloca [100000 x i32], align 4 %two = alloca [100000 x i32], align 4 |