; RUN: llc -march=mips < %s | FileCheck %s

@p = external global i32
@q = external global i32
@r = external global i32

define void @f0() nounwind {
entry:
; CHECK: jalr
; CHECK-NOT: got({{.*}})($gp)
; CHECK: lw $gp
; CHECK: jalr
; CHECK-NOT: got({{.*}})($gp)
; CHECK: lw $gp
; CHECK: jalr
; CHECK-NOT: got({{.*}})($gp)
; CHECK: lw $gp
  tail call void (...)* @f1() nounwind
  %tmp = load i32* @p, align 4, !tbaa !0
  tail call void @f2(i32 %tmp) nounwind
  %tmp1 = load i32* @q, align 4, !tbaa !0
  %tmp2 = load i32* @r, align 4, !tbaa !0
  tail call void @f3(i32 %tmp1, i32 %tmp2) nounwind
  ret void
}

declare void @f1(...)

declare void @f2(i32)

declare void @f3(i32, i32)

!0 = metadata !{metadata !"int", metadata !1}
!1 = metadata !{metadata !"omnipotent char", metadata !2}
!2 = metadata !{metadata !"Simple C/C++ TBAA", null}

; RUN: llc -march=mips < %s | FileCheck %s

@p = external global i32
@q = external global i32
@r = external global i32

define void @f0() nounwind {
entry:
; CHECK: jalr
; CHECK-NOT: got({{.*}})($gp)
; CHECK: lw $gp
; CHECK: jalr
; CHECK-NOT: got({{.*}})($gp)
; CHECK: lw $gp
; CHECK: jalr
; CHECK-NOT: got({{.*}})($gp)
; CHECK: lw $gp
  tail call void (...)* @f1() nounwind
  %tmp = load i32* @p, align 4
  tail call void @f2(i32 %tmp) nounwind
  %tmp1 = load i32* @q, align 4
  %tmp2 = load i32* @r, align 4
  tail call void @f3(i32 %tmp1, i32 %tmp2) nounwind
  ret void
}

declare void @f1(...)

declare void @f2(i32)

declare void @f3(i32, i32)


Remove LLVM IR metadata in test case committed in r130847.
Remove LLVM IR metadata in test case committed in r130847.

git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@130849 91177308-0d34-0410-b5e6-96231b3b80d8
