• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: llc -march=mipsel < %s | FileCheck %s -check-prefix=32
2; RUN: llc -march=mips64el -mcpu=mips64 -mattr=n64 < %s | FileCheck %s -check-prefix=64
3
4define void @f0() nounwind {
5entry:
6; 32:  addiu $4, $zero, 1
7; 32:  addiu $4, $zero, 1
8
9  tail call void @foo1(i32 1) nounwind
10  tail call void @foo1(i32 1) nounwind
11  ret void
12}
13
14declare void @foo1(i32)
15
16define void @f3() nounwind {
17entry:
18; 64:  daddiu $4, $zero, 1
19; 64:  daddiu $4, $zero, 1
20
21  tail call void @foo2(i64 1) nounwind
22  tail call void @foo2(i64 1) nounwind
23  ret void
24}
25
26declare void @foo2(i64)
27
28define void @f5() nounwind {
29entry:
30; 32:  lui $4, 1
31; 32:  lui $4, 1
32
33  tail call void @f6(i32 65536) nounwind
34  tail call void @f6(i32 65536) nounwind
35  ret void
36}
37
38declare void @f6(i32)
39
40define void @f7() nounwind {
41entry:
42; 64:  lui $4, 1
43; 64:  lui $4, 1
44
45  tail call void @f8(i64 65536) nounwind
46  tail call void @f8(i64 65536) nounwind
47  ret void
48}
49
50declare void @f8(i64)
51
52