From c9ea75ee5bcf6a9ced5852b7662f1400a9be8d16 Mon Sep 17 00:00:00 2001 From: Reed Kotler Date: Sun, 8 Dec 2013 16:51:52 +0000 Subject: Cleaning up of prologue/epilogue code for Mips16. First step here is to make save/restore into variable number of argument instructions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196726 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CodeGen/Mips/align16.ll | 4 ++-- test/CodeGen/Mips/alloca16.ll | 2 +- test/CodeGen/Mips/ex2.ll | 2 +- test/CodeGen/Mips/helloworld.ll | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) (limited to 'test/CodeGen') diff --git a/test/CodeGen/Mips/align16.ll b/test/CodeGen/Mips/align16.ll index 267cff5429..1b724e9fc8 100644 --- a/test/CodeGen/Mips/align16.ll +++ b/test/CodeGen/Mips/align16.ll @@ -25,7 +25,7 @@ entry: call void @p(i32* %arrayidx1) ret void } -; 16: save $ra, $s0, $s1, $s2, 2040 +; 16: save $ra, $16, $17, $18, 2040 ; 16: addiu $sp, -56 # 16 bit inst ; 16: addiu $sp, 56 # 16 bit inst -; 16: restore $ra, $s0, $s1, $s2, 2040 +; 16: restore $ra, $16, $17, $18, 2040 diff --git a/test/CodeGen/Mips/alloca16.ll b/test/CodeGen/Mips/alloca16.ll index 017665f00b..a836d12488 100644 --- a/test/CodeGen/Mips/alloca16.ll +++ b/test/CodeGen/Mips/alloca16.ll @@ -20,7 +20,7 @@ entry: define void @test() nounwind { entry: ; 16: .frame $sp,24,$ra -; 16: save $ra, $s0, $s1, $s2, 24 +; 16: save $ra, $16, $17, $18, 24 ; 16: move $16, $sp ; 16: move ${{[0-9]+}}, $sp ; 16: subu $[[REGISTER:[0-9]+]], ${{[0-9]+}}, ${{[0-9]+}} diff --git a/test/CodeGen/Mips/ex2.ll b/test/CodeGen/Mips/ex2.ll index c5535e7661..5b3463e509 100644 --- a/test/CodeGen/Mips/ex2.ll +++ b/test/CodeGen/Mips/ex2.ll @@ -6,7 +6,7 @@ define i32 @main() { ; 16-LABEL: main: ; 16: .cfi_startproc -; 16: save $ra, $s0, $s1, $s2, 40 +; 16: save $ra, $16, $17, $18, 40 ; 16: .cfi_def_cfa_offset 40 ; 16: .cfi_offset 18, -8 ; 16: .cfi_offset 17, -12 diff --git a/test/CodeGen/Mips/helloworld.ll b/test/CodeGen/Mips/helloworld.ll index 058a041c16..32bc45fba3 100644 --- a/test/CodeGen/Mips/helloworld.ll +++ b/test/CodeGen/Mips/helloworld.ll @@ -25,7 +25,7 @@ entry: ; SR32: .set noreorder ; SR32: .set nomacro ; SR32: .set noat -; SR: save $ra, $s0, $s1, $s2, [[FS:[0-9]+]] +; SR: save $ra, $16, $17, $18, [[FS:[0-9]+]] ; PE: .ent main ; PE: .align 2 ; PE-NEXT: li $[[T1:[0-9]+]], %hi(_gp_disp) @@ -37,7 +37,7 @@ entry: ; C2: move $25, ${{[0-9]+}} ; C1: move $gp, ${{[0-9]+}} ; C1: jalrc ${{[0-9]+}} -; SR: restore $ra, $s0, $s1, $s2, [[FS]] +; SR: restore $ra, $16, $17, $18, [[FS]] ; PE: li $2, 0 ; PE: jrc $ra -- cgit v1.2.3