~pali/+junk/llvm-toolchain-3.7

« back to all changes in this revision

Viewing changes to test/CodeGen/Mips/remat-immed-load.ll

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2015-07-15 17:51:08 UTC
  • Revision ID: package-import@ubuntu.com-20150715175108-l8mynwovkx4zx697
Tags: upstream-3.7~+rc2
ImportĀ upstreamĀ versionĀ 3.7~+rc2

Show diffs side-by-side

added added

removed removed

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