[llvm] Add diagnostic help for inline asm operand constraint 'H' (PR #86910)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 28 02:52:04 PDT 2024


================
@@ -0,0 +1,9 @@
+; RUN: not llc -march x86 < %s 2> %t
+; RUN: FileCheck %s < %t
+
+; CHECK: error: invalid operand in inline asm: 'movl $0, ${1:H}' 'H' modifier used on an operand that is a non-offsetable memory reference.
+define void @H() local_unnamed_addr #0 {
----------------
arsenm wrote:

```suggestion
define void @H() {
```

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


More information about the llvm-commits mailing list