diff options
author | Chris Lattner <sabre@nondot.org> | 2005-04-09 04:03:16 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-04-09 04:03:16 +0000 |
commit | 45485234ee27a3317e8acc3c40c1d3174203fc63 (patch) | |
tree | c5f37975faa4b72f877d07760486bf1ca1d4d1eb /test/CodeGen/PowerPC/fnabs.ll | |
parent | e23836cf775919e5184afb485ae6ef8714064974 (diff) |
add a test for fnabs
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21169 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/PowerPC/fnabs.ll')
-rw-r--r-- | test/CodeGen/PowerPC/fnabs.ll | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/CodeGen/PowerPC/fnabs.ll b/test/CodeGen/PowerPC/fnabs.ll new file mode 100644 index 0000000000..e6ec5b3fc6 --- /dev/null +++ b/test/CodeGen/PowerPC/fnabs.ll @@ -0,0 +1,11 @@ +; RUN: llvm-as < %s | llc -march=ppc32 -enable-ppc-pattern-isel | 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 +} |