binutils-gdb/include
Andrew Waterman 3342be5dab RISC-V: Only relax to C.LUI when imm != 0 and rd != 0/2
This matches the ISA specification.  This also adds two tests: one to
make sure the assembler rejects invalid 'c.lui's, and one to make sure
we only relax valid 'c.lui's.

bfd/ChangeLog

2017-10-24  Andrew Waterman  <andrew@sifive.com>

        * elfnn-riscv.c (_bfd_riscv_relax_lui): Don't relax to c.lui
        when rd is x0.

include/ChangeLog

2017-10-24  Andrew Waterman  <andrew@sifive.com>

        * opcode/riscv.h (VALID_RVC_LUI_IMM): c.lui can't load the
        immediate 0.

gas/ChangeLog

2017-10-24  Andrew Waterman  <andrew@sifive.com>

        * testsuite/gas/riscv/c-lui-fail.d: New testcase.
        gas/testsuite/gas/riscv/c-lui-fail.l: Likewise.
        gas/testsuite/gas/riscv/c-lui-fail.s: Likewise.
        gas/testsuite/gas/riscv/riscv.exp: Likewise.

ld/ChangeLog

2017-10-24  Andrew Waterman  <andrew@sifive.com>

        * ld/testsuite/ld-riscv-elf/c-lui.d: New testcase.
        ld/testsuite/ld-riscv-elf/c-lui.s: Likewise.
        ld/testsuite/ld-riscv-elf/ld-riscv-elf.exp: New test suite.
2017-10-24 08:02:46 -07:00
..
aout Fix spelling typos. 2017-07-18 16:58:14 +01:00
cgen
coff
elf FT32: support for FT32B processor - part 1 2017-10-12 18:41:29 -07:00
gdb Fix spelling typos. 2017-07-18 16:58:14 +01:00
mach-o Fix spelling typos. 2017-07-18 16:58:14 +01:00
nlm
opcode RISC-V: Only relax to C.LUI when imm != 0 and rd != 0/2 2017-10-24 08:02:46 -07:00
som
vms
alloca-conf.h
ansidecl.h Sync libiberty/ & include/ with GCC 2017-09-15 17:40:33 +01:00
bfdlink.h Treat common symbol as undefined for --no-define-common 2017-08-06 08:19:04 -07:00
binary-io.h
bout.h
ChangeLog RISC-V: Only relax to C.LUI when imm != 0 and rd != 0/2 2017-10-24 08:02:46 -07:00
ChangeLog-0415
ChangeLog-2016
ChangeLog-9103
COPYING
COPYING3
demangle.h
dis-asm.h binutils/objdump: Fix disassemble for huge elf sections 2017-07-14 22:51:01 +09:30
dwarf2.def LVU: dump loclists with locviews 2017-09-22 17:05:51 -03:00
dwarf2.h LVU: dump loclists with locviews 2017-09-22 17:05:51 -03:00
dyn-string.h
environ.h
fibheap.h
filenames.h
floatformat.h
fnmatch.h
fopen-bin.h
fopen-same.h
fopen-vms.h
gcc-c-fe.def Sync libiberty/ & include/ with GCC 2017-09-15 17:40:33 +01:00
gcc-c-interface.h Sync libiberty/ & include/ with GCC 2017-09-15 17:40:33 +01:00
gcc-cp-fe.def Sync libiberty/ & include/ with GCC 2017-09-15 17:40:33 +01:00
gcc-cp-interface.h Sync libiberty/ & include/ with GCC 2017-09-15 17:40:33 +01:00
gcc-interface.h Sync libiberty/ & include/ with GCC 2017-09-15 17:40:33 +01:00
getopt.h
hashtab.h
hp-symtab.h
ieee.h
leb128.h
libiberty.h Sync libiberty/ & include/ with GCC 2017-09-15 17:40:33 +01:00
longlong.h Sync libiberty/ & include/ with GCC 2017-09-15 17:40:33 +01:00
lto-symtab.h
MAINTAINERS
md5.h
oasys.h
objalloc.h
obstack.h
os9k.h
partition.h
plugin-api.h
progress.h
safe-ctype.h
sha1.h
simple-object.h Sync libiberty/ & include/ with GCC 2017-09-15 17:40:33 +01:00
sort.h
splay-tree.h
symcat.h
timeval-utils.h
vtv-change-permission.h
xregex2.h
xregex.h
xtensa-config.h
xtensa-isa-internal.h
xtensa-isa.h