From: David Faust Date: Mon, 24 Jul 2023 18:40:57 +0000 (-0700) Subject: bpf: add pseudo-c asm dialect for "nop" X-Git-Tag: basepoints/gcc-15~7387 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=be16bb885ef141dc497f6e7358ac82e9bed4f34d;p=thirdparty%2Fgcc.git 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 --git a/gcc/config/bpf/bpf.md b/gcc/config/bpf/bpf.md index 3e2d760fbe45..64342ea1de20 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