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
  • packedsingle
  • ps_call.c
  • Martin's avatar
    Release 2022.1 · a22edae1
    Martin committed Sep 07, 2022
    a22edae1 Browse Files
ps_call.c 303 Bytes
BlameHistoryPermalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
////C: '-menable-packedhalf'
////A: '--has-fpack --has-fhalf'

typedef float ps __attribute__((ext_vector_type(2)));

void func(ps arg)
{
  volatile ps l = arg;
}

const ps c = {3.1415926F, 1.2345678F};

int main(void)
{
  volatile ps a = {1.11223344F, 2.71828F};

  func(a);

  func(c);

  return 0;
}