Fix a really nasty SROA bug with how we handled out-of-bounds memcpy
[oota-llvm.git] / test / CodeGen / Mips / frame-address.ll
index c48ce7e73d4d4b47af71add7d68a398d5a9b9148..0ab7da30e785f888a748af157014daeb01a2f618 100644 (file)
@@ -1,12 +1,17 @@
-; RUN: llc -march=mipsel -mcpu=mips2 < %s | FileCheck %s
+; RUN: llc -march=mipsel < %s | FileCheck %s
 
 declare i8* @llvm.frameaddress(i32) nounwind readnone
 
-define i8* @f() nounwind {
+define i8* @f() nounwind uwtable {
 entry:
   %0 = call i8* @llvm.frameaddress(i32 0)
   ret i8* %0
 
-; CHECK:   addu    $fp, $sp, $zero
-; CHECK:   addu    $2, $zero, $fp
+; CHECK: .cfi_startproc
+; CHECK: .cfi_def_cfa_offset 8
+; CHECK: .cfi_offset 30, -4
+; CHECK:   move    $fp, $sp
+; CHECK: .cfi_def_cfa_register 30
+; CHECK:   move    $2, $fp
+; CHECK: .cfi_endproc
 }