source: icGREP/icgrep-devel/llvm-3.8.0.src/test/CodeGen/Generic/fneg-fabs.ll @ 5027

Last change on this file since 5027 was 5027, checked in by cameron, 3 years ago

Upgrade to llvm 3.8

File size: 620 bytes
Line 
1; RUN: llc < %s
2
3define double @fneg(double %X) {
4        %Y = fsub double -0.000000e+00, %X               ; <double> [#uses=1]
5        ret double %Y
6}
7
8define float @fnegf(float %X) {
9        %Y = fsub float -0.000000e+00, %X                ; <float> [#uses=1]
10        ret float %Y
11}
12
13declare double @fabs(double)
14
15declare float @fabsf(float)
16
17define double @fabstest(double %X) {
18        %Y = call double @fabs( double %X )             ; <double> [#uses=1]
19        ret double %Y
20}
21
22define float @fabsftest(float %X) {
23        %Y = call float @fabsf( float %X )              ; <float> [#uses=1]
24        ret float %Y
25}
26
Note: See TracBrowser for help on using the repository browser.