diff options
author | Bill Wendling <isanbard@gmail.com> | 2013-12-09 08:56:18 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2013-12-09 08:56:18 +0000 |
commit | 7d9c02dc620ea5f5cdf2dc0bd0f03d9370f845d3 (patch) | |
tree | 6ebc7804ce4434fd83f8ec25cd2cdf7e5cf3acae /test | |
parent | 571a02f291b051b22d804f90257e2623cbacd7ec (diff) | |
download | external_llvm-7d9c02dc620ea5f5cdf2dc0bd0f03d9370f845d3.zip external_llvm-7d9c02dc620ea5f5cdf2dc0bd0f03d9370f845d3.tar.gz external_llvm-7d9c02dc620ea5f5cdf2dc0bd0f03d9370f845d3.tar.bz2 |
Merging r196751:
------------------------------------------------------------------------
r196751 | venkatra | 2013-12-08 20:02:15 -0800 (Sun, 08 Dec 2013) | 3 lines
[Sparc]: Implement getSetCCResultType() in SparcTargetLowering so that umulo/smulo can be lowered on sparcv9 without an assertion error.
------------------------------------------------------------------------
git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_34@196766 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/CodeGen/SPARC/64cond.ll | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/CodeGen/SPARC/64cond.ll b/test/CodeGen/SPARC/64cond.ll index bdc5e70..7451b04 100644 --- a/test/CodeGen/SPARC/64cond.ll +++ b/test/CodeGen/SPARC/64cond.ll @@ -109,3 +109,17 @@ entry: %rv = select i1 %tobool, i64 123, i64 0 ret i64 %rv } + +; CHECK-LABEL: setcc_resultty +; CHECK: cmp +; CHECK: movne %xcc, 1, [[R:%[gilo][0-7]]] +; CHECK: or [[R]], %i1, %i0 + +define i1 @setcc_resultty(i64 %a, i1 %b) { + %a0 = tail call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %a, i64 32) + %a1 = extractvalue { i64, i1 } %a0, 1 + %a4 = or i1 %a1, %b + ret i1 %a4 +} + +declare { i64, i1 } @llvm.umul.with.overflow.i64(i64, i64) |