https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104324

--- Comment #1 from gcc-v850-bugs at engineer dot com ---
The complete error messages (omitted -mv850es since "Error: unrecognized option
-mv850es", included it erroneously above due to "This is an alias for the
-mv850e1 option."). Also, v850 doesn't work either due to the mov 0x37, r15, so
ignore what I wrote above. The issue is "displacement is too large" with v850e:

4.9.2 toolchain:

    $ v850-elf-as --version
    GNU assembler (GNU Binutils) 2.24
    Copyright 2013 Free Software Foundation, Inc.
    This program is free software; you may redistribute it under the terms of
    the GNU General Public License version 3 or later.
    This program has absolutely no warranty.
    This assembler was configured for a target of `v850-elf'

    $ v850-elf-as -mv850e -c file.S
    $ v850-elf-as -mv850e1 -c file.S
    $ v850-elf-as -mv850e2v3 -c file.S
    $ v850-elf-as -mv850e2v4 -c file.S
    $ v850-elf-as -mv850e3v5 -c file.S


11.2.0 toolchain:

    $ v850-elf-as --version
    GNU assembler (GNU Binutils) 2.36.1
    Copyright (C) 2021 Free Software Foundation, Inc.
    This program is free software; you may redistribute it under the terms of
    the GNU General Public License version 3 or later.
    This program has absolutely no warranty.
    This assembler was configured for a target of `v850-elf'.

    $ v850-elf-as -mv850e -c file.S
    file.S: Assembler messages:
    file.S:3: Error: st.b r15,0xfffff06e[zero]: displacement is too large
    $ v850-elf-as -mv850e1 -c file.S
    file.S: Assembler messages:
    file.S:3: Error: st.b r15,0xfffff06e[zero]: displacement is too large
    $ v850-elf-as -mv850e2v3 -c file.S
    $ v850-elf-as -mv850e2v4 -c file.S
    $ v850-elf-as -mv850e3v5 -c file.S

Reply via email to