summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.other/asm3.C
blob: 5cbf04893d157f3fea4d589d2af017c9e7e93549 (plain)
1
2
3
4
5
6
7
8
9
10
// { dg-do assemble { target i?86-*-* x86_64-*-* } }
// { dg-options "-O2" }

typedef unsigned long long uint64;
uint64 fstps(void)
{
  uint64 ret;
  asm volatile("fstps %0" : "=m" (ret));
  return ret;
}