diff options
| author | Stefan Pintilie <stefanp@ca.ibm.com> | 2018-07-09 20:09:22 +0000 |
|---|---|---|
| committer | Stefan Pintilie <stefanp@ca.ibm.com> | 2018-07-09 20:09:22 +0000 |
| commit | 58e3e0a827adf80b820f17f3845d3bd045a64477 (patch) | |
| tree | dae5e068bdffff8077222174cfe5cd423106ade3 /llvm/test/CodeGen | |
| parent | 11479daf2f0652d3e11f308a0810cc44da04f31d (diff) | |
| download | bcm5719-llvm-58e3e0a827adf80b820f17f3845d3bd045a64477.tar.gz bcm5719-llvm-58e3e0a827adf80b820f17f3845d3bd045a64477.zip | |
[Power9] [LLVM] Add __float128 support for trunc to double round to odd
Add support for this builtin:
double builtin_truncf128_round_to_odd(float128)
Differential Revision: https://reviews.llvm.org/D48483
llvm-svn: 336595
Diffstat (limited to 'llvm/test/CodeGen')
| -rw-r--r-- | llvm/test/CodeGen/PowerPC/builtins-ppc-p9-f128.ll | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/PowerPC/builtins-ppc-p9-f128.ll b/llvm/test/CodeGen/PowerPC/builtins-ppc-p9-f128.ll index fa40fa2db31..dfc13c7c964 100644 --- a/llvm/test/CodeGen/PowerPC/builtins-ppc-p9-f128.ll +++ b/llvm/test/CodeGen/PowerPC/builtins-ppc-p9-f128.ll @@ -80,3 +80,13 @@ entry: declare fp128 @llvm.ppc.divf128.round.to.odd(fp128, fp128) +define double @testTruncOdd() { +entry: + %0 = load fp128, fp128* @A, align 16 + %1 = call double @llvm.ppc.truncf128.round.to.odd(fp128 %0) + ret double %1 + ; CHECK-LABEL: testTruncOdd + ; CHECK: xscvqpdpo +} + +declare double @llvm.ppc.truncf128.round.to.odd(fp128) |

