public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-2752] bpf: add pseudo-c asm dialect for "nop"
@ 2023-07-24 19:07 David Faust
  0 siblings, 0 replies; only message in thread
From: David Faust @ 2023-07-24 19:07 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:be16bb885ef141dc497f6e7358ac82e9bed4f34d

commit r14-2752-gbe16bb885ef141dc497f6e7358ac82e9bed4f34d
Author: David Faust <david.faust@oracle.com>
Date:   Mon Jul 24 11:40:57 2023 -0700

    bpf: add pseudo-c asm dialect for "nop"
    
    The define_insn "nop" was missing a template for the pseudo-c dialect,
    so the normal syntax was unconditionally emitted.
    
    gcc/
    
            * config/bpf/bpf.md (nop): Add pseudo-c asm dialect template.

Diff:
---
 gcc/config/bpf/bpf.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/config/bpf/bpf.md b/gcc/config/bpf/bpf.md
index 3e2d760fbe4..64342ea1de2 100644
--- a/gcc/config/bpf/bpf.md
+++ b/gcc/config/bpf/bpf.md
@@ -103,7 +103,7 @@
 (define_insn "nop"
   [(const_int 0)]
   ""
-  "ja\t0"
+  "{ja\t0|goto 0}"
   [(set_attr "type" "alu")])
 
 ;;;; Arithmetic/Logical

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-07-24 19:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-24 19:07 [gcc r14-2752] bpf: add pseudo-c asm dialect for "nop" David Faust

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).