]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
bpf: fix zero_extendqidi2 ldx template
authorDavid Faust <david.faust@oracle.com>
Wed, 14 Feb 2024 22:29:43 +0000 (14:29 -0800)
committerDavid Faust <david.faust@oracle.com>
Thu, 15 Feb 2024 16:54:43 +0000 (08:54 -0800)
Commit 77d0f9ec3809b4d2e32c36069b6b9239d301c030 inadvertently changed
the normal asm dialect instruction template for zero_extendqidi2 from
ldxb to ldxh. Fix that.

gcc/

* config/bpf/bpf.md (zero_extendqidi2): Correct asm template to
use ldxb instead of ldxh.

gcc/config/bpf/bpf.md

index 080a63cd970b51cd97880d230c9899b7beb20287..50df1aaa3e2195ed18689c20b580441a841ff1d3 100644 (file)
   "@
    {and\t%0,0xff|%0 &= 0xff}
    {mov\t%0,%1\;and\t%0,0xff|%0 = %1;%0 &= 0xff}
-   {ldxh\t%0,%1|%0 = *(u8 *) (%1)}"
+   {ldxb\t%0,%1|%0 = *(u8 *) (%1)}"
   [(set_attr "type" "alu,alu,ldx")])
 
 (define_insn "zero_extendsidi2"