[PATCH] D155087: [CodeGen] Fix assertion failure caused by inline assembly
Bryan Chan via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 13 16:17:37 PDT 2023
bryanpkc added inline comments.
================
Comment at: llvm/test/CodeGen/X86/inline-asm-assertion.ll:3
+; RUN: not llc -O0 < %s 2>&1 | FileCheck %s
+; CHECK: error: inline assembly requires more registers than available
+
----------------
Suggestions:
1. Add a `CHECK` line to match the output assembly, e.g. `; CHECK: .size main, .Lfunc_end0-main`, to ensure that that the backend does not crash after register allocation.
1. Add a `RUN` line with `llc -O2` to ensure that `RegAllocGreedy` behaves the same way.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D155087/new/
https://reviews.llvm.org/D155087
More information about the llvm-commits
mailing list