[llvm] ExpandIRInsts: Expand frem when the libcall is unavailable (PR #217301)

Frederik Harwath via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 19 09:03:43 PDT 2026


================
@@ -0,0 +1,31 @@
+; This test underhandedly exploits a bug in llc's handling of -march.
+; The module ends up with no triple, and thus treated as unknown arch
+; with no library functions.
+
+; RUN: llc -march=x86-64 -stop-after=expand-ir-insts %s -o - | FileCheck --check-prefix=EXPAND %s
----------------
frederik-h wrote:

Using, e.g., `LIBCALL_UNAVAILABLE` as the prefix could be clearer than `EXPAND`.

https://github.com/llvm/llvm-project/pull/217301


More information about the llvm-commits mailing list