[clang] [llvm] [clang][X86] Reject register variables bound to status registers (PR #227576)

Phoebe Wang via cfe-commits cfe-commits at lists.llvm.org
Sat Oct 10 02:00:05 PDT 2026


================
@@ -0,0 +1,21 @@
+; RUN: not llc -filetype=null -mtriple=x86_64-unknown-unknown %s 2>&1 | FileCheck %s
+
+; GH225033: {flags} is only valid as a clobber.
+
+; CHECK: error: could not allocate output register for constraint '{flags}'
----------------
phoebewang wrote:

Is the backend check redundant given we have diagnosed in the front end?

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


More information about the cfe-commits mailing list