rotation instruction

rotation instruction2019-05-20T15:55:31+00:00
Viewing 1 reply thread
  • Author
    Posts
    • Sebastien RiouSebastien Riou
      Participant
      Post count: 2

      For C code doing a 10 bit right rotate, the compiler generate the following:
      1c000e68: 46a9 li a3,10

      1c000e6e: 08d75733 p.ror a4,a4,a3

      My goal is to do that in assembly, but I get the following error message:
      riscv32-unknown-elf-gcc -MMD -MP -Wl,–gc-sections -Os -g -DNDEBUG -o /home/osboxes/gap_sdk/examples/pulp-examples/test/BUILD/GAP8/GCC_RISCV/test /home/osboxes/gap_sdk/examples/pulp-examples/test/BUILD/GAP8/GCC_RISCV/test.o drygascon128_riscv32e.S -L/home/osboxes/gap_sdk/install/gap/libs -lrt -lio -lrt -lgcc -T/home/osboxes/gap_sdk/install/workstation/ld/link.gap8.ld -T/home/osboxes/gap_sdk/install/workstation/ld/gapuino.conf.ld -nostartfiles -nostdlib -include /home/osboxes/gap_sdk/install/gap/include/pulp-os/gap_config.h
      drygascon128_riscv32e.S: Assembler messages:
      drygascon128_riscv32e.S:83: Error: unrecognized opcode `p.ror a4,a4,a3′

      What shall I do to “enable” the p.ror instruction in my assembly file ?

    • Sebastien RiouSebastien Riou
      Participant
      Post count: 2

      Solution found about 30s after posting the question :-S sorry about that.
      For information I solved it by adding “-march=rv32imcxgap8” to the “PULP_CFLAGS” variable of the makefile.

Viewing 1 reply thread
  • The topic ‘rotation instruction’ is closed to new replies.