arch/riscv/kernel/tests/module_test/test_uleb128.S:9: Error: unrecognized opcode `ld a0,second'

From: kernel test robot
Date: Wed Nov 29 2023 - 10:43:42 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 18d46e76d7c2eedd8577fae67e3f1d4db25018b0
commit: af71bc194916b10f9b394f9b14419d99700a5e67 riscv: Add tests for riscv module loading
date: 3 weeks ago
config: riscv-randconfig-r001-20230116 (https://download.01.org/0day-ci/archive/20231129/202311292253.s5OGiu3s-lkp@xxxxxxxxx/config)
compiler: riscv32-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231129/202311292253.s5OGiu3s-lkp@xxxxxxxxx/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202311292253.s5OGiu3s-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

arch/riscv/kernel/tests/module_test/test_uleb128.S: Assembler messages:
>> arch/riscv/kernel/tests/module_test/test_uleb128.S:9: Error: unrecognized opcode `ld a0,second'
>> arch/riscv/kernel/tests/module_test/test_uleb128.S:15: Error: unrecognized opcode `ld a0,fourth'


vim +9 arch/riscv/kernel/tests/module_test/test_uleb128.S

> 9 ld a0, second
10 addi a0, a0, -127
11 ret
12
13 .global test_uleb_large
14 test_uleb_large:
> 15 ld a0, fourth
16 addi a0, a0, -0x07e8
17 ret
18

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki