binutils-gdb/ld/testsuite/ld-riscv-elf/c-lui.d
Jim Wilson 7615ca1dc9 RISC-V: Fix accidental embedded -shared regressions.
ld/
	* testsuite/ld-riscv-elf/c-lui.d: Don't use -shared.  Check for _start
	instead of .text.
	* testsuite/ld-riscv-elf/c-lui.s: Add _start label.
	* testsuite/ld-riscv-elf/ld-riscv-elf.exp: Before __global_pointer$
	tests, add call to check_shared_lib_support.
2018-01-08 17:55:29 -08:00

18 lines
338 B
Makefile

#name: lui to c.lui relaxation
#source: c-lui.s
#as: -march=rv32ic
#ld: -melf32lriscv
#objdump: -d -M no-aliases,numeric
.*: file format .*
Disassembly of section \.text:
.* <_start>:
.*: 6085 c.lui x1,0x1
.*: 000000b7 lui x1,0x0
.*: 00001037 lui x0,0x1
.*: 00001137 lui x2,0x1
#pass