Skip to content
  • Projects
  • Groups
  • Snippets
  • Help

Martin / daiteq-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
  • daiteq-demo
  • simple
  • tests
  • packedsingle
  • ps_mul.c
  • Martin's avatar
    daiteq LLVM demos, Release 4 · 3428f119
    Martin committed Oct 11, 2021
    3428f119 Browse File
ps_mul.c 273 Bytes
BlameHistoryPermalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
////C: '-msoft-fp-single'
//A: '--has-fpack'

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


int main(void)
{
  volatile ps a,b;
  volatile ps o;

//  a.x = 1.23456789;
//  a.y = 34.5678901;

//  b.x = 2.3456789;
//  b.y = 9.87654321;

  o = a * b;

  return 0;
}