Skip to content
  • Projects
  • Groups
  • Snippets
  • Help

release / riscv-demo

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Settings
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Switch branch/tag
  • riscv-demo
  • simple
  • tests
  • packedhalf
  • ph_extract.c
  • Martin's avatar
    Release 2022.1 · a22edae1
    Martin committed Sep 07, 2022
    a22edae1 Browse Files
ph_extract.c 255 Bytes
BlameHistoryPermalink
Edit
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
////C: '-msoft-fp-half'
////C: '-march=rv64gczfh_x-fph -mabi=lp64d'
////A: '--has-fpack --has-fhalf'

typedef half phalf __attribute__((ext_vector_type(2)));


int main(void)
{
  volatile phalf a;
  volatile half o;

  o = a.x;

  o = a.y;

  return 0;
}