diff options
author | Reed Kotler <rkotler@mips.com> | 2013-08-04 23:56:53 +0000 |
---|---|---|
committer | Reed Kotler <rkotler@mips.com> | 2013-08-04 23:56:53 +0000 |
commit | 9c285b300d6c055efbec5e727f1ed47c8369c72f (patch) | |
tree | 563a57a8343b842cb9f501b79428614d873221e5 /llvm/test | |
parent | b9549baf7fa0edb118f049850c073177500121eb (diff) | |
download | bcm5719-llvm-9c285b300d6c055efbec5e727f1ed47c8369c72f.tar.gz bcm5719-llvm-9c285b300d6c055efbec5e727f1ed47c8369c72f.zip |
Add the saving of S2. This is needed for some of the floating point
helper functions. This can be optimized out later when the remaining
parts of the helper function work is moved into the Mips16HardFloat pass.
For now it forces us to use the 32 bit save/restore instructions instead
of the 16 bit ones.
llvm-svn: 187712
Diffstat (limited to 'llvm/test')
-rw-r--r-- | llvm/test/CodeGen/Mips/align16.ll | 8 | ||||
-rw-r--r-- | llvm/test/CodeGen/Mips/alloca16.ll | 4 | ||||
-rw-r--r-- | llvm/test/CodeGen/Mips/ex2.ll | 9 | ||||
-rw-r--r-- | llvm/test/CodeGen/Mips/helloworld.ll | 4 | ||||
-rw-r--r-- | llvm/test/CodeGen/Mips/largefr1.ll | 8 |
5 files changed, 17 insertions, 16 deletions
diff --git a/llvm/test/CodeGen/Mips/align16.ll b/llvm/test/CodeGen/Mips/align16.ll index 815c84d0182..267cff54291 100644 --- a/llvm/test/CodeGen/Mips/align16.ll +++ b/llvm/test/CodeGen/Mips/align16.ll @@ -25,7 +25,7 @@ entry: call void @p(i32* %arrayidx1) ret void } -; 16: save $ra, $s0, $s1, 2040 -; 16: addiu $sp, -48 # 16 bit inst -; 16: addiu $sp, 48 # 16 bit inst -; 16: restore $ra, $s0, $s1, 2040 +; 16: save $ra, $s0, $s1, $s2, 2040 +; 16: addiu $sp, -56 # 16 bit inst +; 16: addiu $sp, 56 # 16 bit inst +; 16: restore $ra, $s0, $s1, $s2, 2040 diff --git a/llvm/test/CodeGen/Mips/alloca16.ll b/llvm/test/CodeGen/Mips/alloca16.ll index 5ae9a847917..017665f00bd 100644 --- a/llvm/test/CodeGen/Mips/alloca16.ll +++ b/llvm/test/CodeGen/Mips/alloca16.ll @@ -19,8 +19,8 @@ entry: define void @test() nounwind { entry: -; 16: .frame $16,24,$ra -; 16: save $ra, $s0, $s1, 24 +; 16: .frame $sp,24,$ra +; 16: save $ra, $s0, $s1, $s2, 24 ; 16: move $16, $sp ; 16: move ${{[0-9]+}}, $sp ; 16: subu $[[REGISTER:[0-9]+]], ${{[0-9]+}}, ${{[0-9]+}} diff --git a/llvm/test/CodeGen/Mips/ex2.ll b/llvm/test/CodeGen/Mips/ex2.ll index 9f074d1ff9e..c5535e7661a 100644 --- a/llvm/test/CodeGen/Mips/ex2.ll +++ b/llvm/test/CodeGen/Mips/ex2.ll @@ -6,10 +6,11 @@ define i32 @main() { ; 16-LABEL: main: ; 16: .cfi_startproc -; 16: save $ra, $s0, $s1, 32 -; 16: .cfi_def_cfa_offset 32 -; 16: .cfi_offset 17, -8 -; 16: .cfi_offset 16, -12 +; 16: save $ra, $s0, $s1, $s2, 40 +; 16: .cfi_def_cfa_offset 40 +; 16: .cfi_offset 18, -8 +; 16: .cfi_offset 17, -12 +; 16: .cfi_offset 16, -16 ; 16: .cfi_offset 31, -4 ; 16: .cfi_endproc entry: diff --git a/llvm/test/CodeGen/Mips/helloworld.ll b/llvm/test/CodeGen/Mips/helloworld.ll index 56ee60785f4..83c88ae3441 100644 --- a/llvm/test/CodeGen/Mips/helloworld.ll +++ b/llvm/test/CodeGen/Mips/helloworld.ll @@ -25,7 +25,7 @@ entry: ; SR32: .set noreorder ; SR32: .set nomacro ; SR32: .set noat -; SR: save $ra, $s0, $s1, [[FS:[0-9]+]] +; SR: save $ra, $s0, $s1, $s2, [[FS:[0-9]+]] ; PE: li $[[T1:[0-9]+]], %hi(_gp_disp) ; PE: addiu $[[T2:[0-9]+]], $pc, %lo(_gp_disp) ; PE: sll $[[T3:[0-9]+]], $[[T1]], 16 @@ -35,7 +35,7 @@ entry: ; C2: move $25, ${{[0-9]+}} ; C1: move $gp, ${{[0-9]+}} ; C1: jalrc ${{[0-9]+}} -; SR: restore $ra, $s0, $s1, [[FS]] +; SR: restore $ra, $s0, $s1, $s2, [[FS]] ; PE: li $2, 0 ; PE: jrc $ra diff --git a/llvm/test/CodeGen/Mips/largefr1.ll b/llvm/test/CodeGen/Mips/largefr1.ll index 89463274b86..9a5fd08d17a 100644 --- a/llvm/test/CodeGen/Mips/largefr1.ll +++ b/llvm/test/CodeGen/Mips/largefr1.ll @@ -24,15 +24,15 @@ entry: define i32 @main() nounwind { entry: ; 1-LABEL: main: -; 1: 1: .word -797992 +; 1: 1: .word -798000 ; 1: lw ${{[0-9]+}}, 1f ; 1: b 2f ; 1: .align 2 -; 1: .word 800016 +; 1: .word 800020 ; 1: b 2f ; 1: .align 2 -; 1: .word 400016 +; 1: .word 400020 ; 1: move ${{[0-9]+}}, $sp ; 1: addu ${{[0-9]+}}, ${{[0-9]+}}, ${{[0-9]+}} @@ -42,7 +42,7 @@ entry: ; 1: b 2f ; 1: .align 2 -; 1: .word 400216 +; 1: .word 400220 ; 1: move ${{[0-9]+}}, $sp ; 1: addu ${{[0-9]+}}, ${{[0-9]+}}, ${{[0-9]+}} |