blob: abf4426f1c5ce0e3404d307ece5cb7985e4af86d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
; RUN: llvm-as < %s | llc -march=arm &&
; RUN: llvm-as < %s | llc -march=arm | grep fadds &&
; RUN: llvm-as < %s | llc -march=arm | grep faddd &&
; RUN: llvm-as < %s | llc -march=arm | grep fmuls &&
; RUN: llvm-as < %s | llc -march=arm | grep fmuld
float %f(float %a, float %b) {
entry:
%tmp = add float %a, %b
ret float %tmp
}
double %g(double %a, double %b) {
entry:
%tmp = add double %a, %b
ret double %tmp
}
float %h(float %a, float %b) {
entry:
%tmp = mul float %a, %b
ret float %tmp
}
double %i(double %a, double %b) {
entry:
%tmp = mul double %a, %b
ret double %tmp
}
|