aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/PowerPC/fnabs.ll
blob: af4c2dee385efcb4a01942a48521b0ba36300ea2 (plain)
1
2
3
4
5
6
7
8
9
10
11
; RUN: llvm-as < %s | llc -march=ppc32 | grep fnabs

declare double %fabs(double)

implementation

double %test(double %X) {
	%Y = call double %fabs(double %X)
	%Z = sub double -0.0, %Y
	ret double %Z
}