diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2015-11-08 18:33:42 +0000 |
---|---|---|
committer | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2015-11-08 18:33:42 +0000 |
commit | ee45a32dae253f7daa966573eb8cb64b2cf7bf52 (patch) | |
tree | cf927ff52a6d5ba28290472db09363fe67a835d6 /gcc/testsuite/gcc.target | |
parent | eb11eb157cf07500e2915da8a72f2f3a501cc5ae (diff) | |
download | gcc-ee45a32dae253f7daa966573eb8cb64b2cf7bf52.zip gcc-ee45a32dae253f7daa966573eb8cb64b2cf7bf52.tar.gz gcc-ee45a32dae253f7daa966573eb8cb64b2cf7bf52.tar.bz2 |
Merge of the scalar-storage-order branch.
From-SVN: r229965
Diffstat (limited to 'gcc/testsuite/gcc.target')
-rw-r--r-- | gcc/testsuite/gcc.target/i386/movbe-3.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/i386/movbe-3.c b/gcc/testsuite/gcc.target/i386/movbe-3.c new file mode 100644 index 0000000..985bc1e --- /dev/null +++ b/gcc/testsuite/gcc.target/i386/movbe-3.c @@ -0,0 +1,19 @@ +/* { dg-do compile } */ +/* { dg-options "-O -mmovbe" } */ + +struct __attribute__((scalar_storage_order("big-endian"))) S +{ + int i; +}; + +int get (struct S *s) +{ + return s->i; +} + +void set (struct S *s, int i) +{ + s->i = i; +} + +/* { dg-final { scan-assembler-times "movbe\[ \t\]" 2 } } */ |