<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Assertion `(!RPI.isPaired() || RPI.Reg2 != AArch64::FP || RPI.Reg1 == AArch64::LR) && "FrameRecord must be allocated together with LR"' failed."
   href="https://bugs.llvm.org/show_bug.cgi?id=43015">43015</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Assertion `(!RPI.isPaired() || RPI.Reg2 != AArch64::FP || RPI.Reg1 == AArch64::LR) && "FrameRecord must be allocated together with LR"' failed.
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libraries
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Backend: AArch64
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>leonardchan@google.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>arnaud.degrandmaison@arm.com, llvm-bugs@lists.llvm.org, peter.smith@linaro.org, Ties.Stuij@arm.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=22382" name="attach_22382" title="reproducer">attachment 22382</a> <a href="attachment.cgi?id=22382&action=edit" title="reproducer">[details]</a></span>
reproducer

We ran into an assertion error when building zircon for aarch64.

[1179/45610] CC efi-arm64-clang/obj/bootloader/lib/lib.loadfile.c.o
FAILED: efi-arm64-clang/obj/bootloader/lib/lib.loadfile.c.o
../../recipe_cleanup/clangUV6nQv/bin/clang -MD -MF
efi-arm64-clang/obj/bootloader/lib/lib.loadfile.c.o.d -o
efi-arm64-clang/obj/bootloader/lib/lib.loadfile.c.o
-DTOOLCHAIN_VERSION=/b/s/w/ir/k/recipe_cleanup/clangUV6nQv/bin
-DZX_DEBUGLEVEL=2 -DLK_DEBUGLEVEL=2
-D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1
-I/b/s/w/ir/k/recipe_cleanup/clangUV6nQv/include/c++/v1
-I../../zircon/system/public -I../../zircon/bootloader/include
-I../../zircon/kernel/lib/efi/include -fno-common --target=aarch64-windows-msvc
-fcrash-diagnostics-dir=clang-crashreports -fcolor-diagnostics
-fdebug-prefix-map=/b/s/w/ir/k/out/default.zircon=.
-fdebug-prefix-map=/b/s/w/ir/k/out=.. -fdebug-prefix-map=/b/s/w/ir/k=../..
-no-canonical-prefixes -O2 -g3 -Wall -Wextra -Wno-multichar
-Wno-unused-parameter -Wno-unused-function -Werror=unused-label
-Werror=return-type -Wno-address-of-packed-member -Wnewline-eof
-Wimplicit-fallthrough -ffunction-sections -fdata-sections -Wthread-safety
-Werror -Wno-error=deprecated-declarations -std=c99 -fshort-wchar -U_MSC_VER
-ffreestanding -include ../../zircon/kernel/include/hidden.h -fno-unwind-tables
-mgeneral-regs-only -fno-sanitize=all -fsanitize-coverage=0
-fno-stack-protector -std=c11 -Werror=implicit-function-declaration
-Wstrict-prototypes -Wwrite-strings -Wno-absolute-value -c
../../zircon/bootloader/lib/loadfile.c
clang:
/b/s/w/ir/k/llvm-project/llvm/lib/Target/AArch64/AArch64FrameLowering.cpp:1834:
void computeCalleeSaveRegisterPairs(llvm::MachineFunction &, const
std::vector<CalleeSavedInfo> &, const llvm::TargetRegisterInfo *,
SmallVectorImpl<(anonymous namespace)::RegPairInfo> &, bool &, bool): Assertion
`(!RPI.isPaired() || RPI.Reg2 != AArch64::FP || RPI.Reg1 == AArch64::LR) &&
"FrameRecord must be allocated together with LR"' failed.
clang: error: unable to execute command: Aborted
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
Fuchsia clang version 10.0.0
(<a href="https://fuchsia.googlesource.com/a/third_party/llvm-project">https://fuchsia.googlesource.com/a/third_party/llvm-project</a>
c984dde170bbe71ed40add2fe918ffbb92cbce65) (based on LLVM 10.0.0svn)
Target: aarch64-unknown-windows-msvc
Thread model: posix
InstalledDir: ../../recipe_cleanup/clangUV6nQv/bin
clang: note: diagnostic msg: PLEASE submit a bug report to
<a href="https://bugs.llvm.org/">https://bugs.llvm.org/</a> and include the crash backtrace, preprocessed source,
and associated run script.
clang: note: diagnostic msg:
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg: clang-crashreports/loadfile-03e366.c
clang: note: diagnostic msg: clang-crashreports/loadfile-03e366.sh
clang: note: diagnostic msg:

********************

Reproducer attached.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>