https://sourceware.org/bugzilla/show_bug.cgi?id=33889

            Bug ID: 33889
           Summary: Bogus error on valid (bug meaningless) assembly input
           Product: binutils
           Version: 2.47 (HEAD)
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gas
          Assignee: unassigned at sourceware dot org
          Reporter: law at redhat dot com
  Target Milestone: ---

This assembly file gives an assembler error:

        .file   "j.c"
        .option nopic
        .attribute arch,
"rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_b1p0_v1p0_zicond1p0_zicsr2p0_zifencei2p0_zmmul1p0_zaamo1p0_zalrsc1p0_zca1p0_zcd1p0_zba1p0_zbb1p0_zbs1p0_zve32f1p0_zve32x1p0_zve64d1p0_zve64f1p0_zve64x1p0_zvl128b1p0_zvl32b1p0_zvl64b1p0"
        .attribute unaligned_access, 0
        .attribute stack_align, 16
        .text
        .align  1
        .globl  madd_fail
        .type   madd_fail, @function
madd_fail:
        fcvt.d.s        fa4,fa5,dyn
        fcvt.d.s        fa4,fa5,rne
        .size   madd_fail, .-madd_fail
        .ident  "GCC: (GNU) 16.0.1 20260207 (experimental)"
        .section        .note.GNU-stack,"",@progbits

jlaw@x11-dpi:~/test/obj/rv/gcc/gcc$ riscv64-unknown-linux-gnu-as -al j.s
j.s: Assembler messages:
j.s:11: Error: illegal operands `fcvt.d.s fa4,fa5,dyn'
j.s:12: Error: illegal operands `fcvt.d.s fa4,fa5,rne'

Now we're doign single to double conversion, so no rounding should ever be
needed, but I believe we still need to accept those instructions as they're
still valid.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Reply via email to