DAG: Fix libcall expansion for frexp on ARM
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Fri, 30 Jun 2023 12:17:11 +0000 (08:17 -0400)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Fri, 30 Jun 2023 13:03:45 +0000 (09:03 -0400)
commit160d7227e043cd8f491cb706916da953cabfd905
treeea5327085763c3a9de63a3da79e8a23cc0db7216
parentb69b6b8399ec49c53617f7cee152028300f1ab4e
DAG: Fix libcall expansion for frexp on ARM

The ExpandLibcallResult result was a bitcast and not the direct call
result, so we couldn't find the chain. Use the new separate chain
return value instead.
llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
llvm/test/CodeGen/ARM/llvm.frexp.ll [new file with mode: 0644]