[clang] [llvm] [inlineasm] Improve support for multiple inline asm constraints (e.g. "rm") (PR #197798)
Bill Wendling via cfe-commits
cfe-commits at lists.llvm.org
Sat Jun 20 01:26:05 PDT 2026
================
@@ -0,0 +1,246 @@
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 6
+; RUN: llc -mtriple=x86_64-unknown-linux-gnu -O0 < %s | FileCheck --check-prefixes=O0 %s
+; RUN: llc -mtriple=x86_64-unknown-linux-gnu < %s | FileCheck --check-prefixes=O2 %s
----------------
isanbard wrote:
I made a mistake with the comment---I thought it was going to be the commit message. The commit messages were an attempt to make commit messages for intermediate changes that won't be reflected in the final commit into something less than boring. I guess I failed.
As for `-O0 / -O2`, the transform in InlineAsmPrepare triggers off of the optimization level. `llc` uses `-O2` by default (`opt` uses `-O0` by default, despite documentation saying otherwise).
https://github.com/llvm/llvm-project/pull/197798
More information about the cfe-commits
mailing list