diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.other/asm3.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.other/asm3.C | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.other/asm3.C b/gcc/testsuite/g++.old-deja/g++.other/asm3.C new file mode 100644 index 000000000..5cbf04893 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.other/asm3.C @@ -0,0 +1,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; +} |