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
  • packedhalf
  • ph_insert.c
  • Martin's avatar
    daiteq LLVM demos, Release 4 · 3428f119
    Martin committed Oct 11, 2021
    3428f119 Browse File
ph_insert.c 274 Bytes
BlameHistoryPermalink
Edit
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
////C: '-msoft-fp-half'
//A: '--has-fpack --has-fhalf'
//C: -O0

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


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

  a = 1.2345h;
  b = 34.567h;

  o.x = 2.345h;
  o.y = 7.897h;

  o.x = a;
  o.y = b;

  return 0;
}