blob: 585bc250fb8c882784a9dbb4048140a7d4a2b144 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
; RUN: llc < %s -march=mipsel | FileCheck %s
; RUN: llc < %s -march=mips | FileCheck %s
@a = external global i32
define double @f(i32 %a1, double %d) nounwind {
entry:
; CHECK: mtc1
; CHECK: mtc1
store i32 %a1, i32* @a, align 4
%add = fadd double %d, 2.000000e+00
ret double %add
}
define void @f3(double %d, i32 %a1) nounwind {
entry:
; CHECK: mfc1
; CHECK: mfc1
tail call void @f2(i32 %a1, double %d) nounwind
ret void
}
declare void @f2(i32, double)
|