]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
bpf: add pseudo-c asm dialect for "nop"
authorDavid Faust <david.faust@oracle.com>
Mon, 24 Jul 2023 18:40:57 +0000 (11:40 -0700)
committerDavid Faust <david.faust@oracle.com>
Mon, 24 Jul 2023 19:02:47 +0000 (12:02 -0700)
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.

gcc/config/bpf/bpf.md

index 3e2d760fbe4539c99797b5baf8771f9b9419a0b5..64342ea1de203afe72ad9aadf6bbbf7497e764c6 100644 (file)
 (define_insn "nop"
   [(const_int 0)]
   ""
-  "ja\t0"
+  "{ja\t0|goto 0}"
   [(set_attr "type" "alu")])
 
 ;;;; Arithmetic/Logical