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
  • swar
  • swar-swaraccum.c
  • Martin's avatar
    daiteq LLVM demos, Release 4 · 3428f119
    Martin committed Oct 11, 2021
    3428f119 Browse File
swar-swaraccum.c 257 Bytes
BlameHistoryPermalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
//A: --has-swar
//C: -daiteq-swar-enable

const unsigned c = 3;

int main(void)
{
  unsigned int acc;
  int a = 2;
  acc = __builtin_swaraccum(0);
  acc = __builtin_swaraccum(c);
  acc = __builtin_swaraccum(1);
  acc = __builtin_swaraccum(a);
  return 0;
}