~ubuntu-branches/ubuntu/quantal/llvm-3.1/quantal

« back to all changes in this revision

Viewing changes to test/CodeGen/Generic/fneg-fabs.ll

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2012-03-29 19:09:51 UTC
  • Revision ID: package-import@ubuntu.com-20120329190951-aq83ivog4cg8bxun
Tags: upstream-3.1~svn153643
ImportĀ upstreamĀ versionĀ 3.1~svn153643

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
; RUN: llc < %s
 
2
 
 
3
define double @fneg(double %X) {
 
4
        %Y = fsub double -0.000000e+00, %X               ; <double> [#uses=1]
 
5
        ret double %Y
 
6
}
 
7
 
 
8
define float @fnegf(float %X) {
 
9
        %Y = fsub float -0.000000e+00, %X                ; <float> [#uses=1]
 
10
        ret float %Y
 
11
}
 
12
 
 
13
declare double @fabs(double)
 
14
 
 
15
declare float @fabsf(float)
 
16
 
 
17
define double @fabstest(double %X) {
 
18
        %Y = call double @fabs( double %X )             ; <double> [#uses=1]
 
19
        ret double %Y
 
20
}
 
21
 
 
22
define float @fabsftest(float %X) {
 
23
        %Y = call float @fabsf( float %X )              ; <float> [#uses=1]
 
24
        ret float %Y
 
25
}
 
26