diff options
author | Uros Bizjak <ubizjak@gmail.com> | 2013-04-29 22:16:48 +0200 |
---|---|---|
committer | Uros Bizjak <uros@gcc.gnu.org> | 2013-04-29 22:16:48 +0200 |
commit | f9ed28db0cf2f6b1d2b0a59decf595c10b7e63ae (patch) | |
tree | 34f2c717bbafac3ee8593fa6b1bfae8edf010af9 /gcc/testsuite | |
parent | deca73f5de4fd25ea9e84dfdc8f32a6cbddfb705 (diff) | |
download | gcc-f9ed28db0cf2f6b1d2b0a59decf595c10b7e63ae.zip gcc-f9ed28db0cf2f6b1d2b0a59decf595c10b7e63ae.tar.gz gcc-f9ed28db0cf2f6b1d2b0a59decf595c10b7e63ae.tar.bz2 |
re PR target/44578 (GCC generates MMX instructions but fails to generate "emms")
PR target/44578
* config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
alternative.
testsuite/ChangeLog:
PR target/44578
* gcc.target/i386/pr44578.c: New test.
From-SVN: r198433
Diffstat (limited to 'gcc/testsuite')
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/i386/pr44578.c | 31 |
2 files changed, 36 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 42f141e..56f3ac8 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2013-04-29 Uros Bizjak <ubizjak@gmail.com> + + PR target/44578 + * gcc.target/i386/pr44578.c: New test. + 2013-04-29 Vladimir Makarov <vmakarov@redhat.com> PR target/57097 diff --git a/gcc/testsuite/gcc.target/i386/pr44578.c b/gcc/testsuite/gcc.target/i386/pr44578.c new file mode 100644 index 0000000..20f76c3 --- /dev/null +++ b/gcc/testsuite/gcc.target/i386/pr44578.c @@ -0,0 +1,31 @@ +/* { dg-do run } */ +/* { dg-options "-O2 -mtune=athlon64" } */ + +extern void abort (void); + +long double +__attribute__((noinline, noclone)) +test (float num) +{ + unsigned int i; + + if (num < 0.0) + num = 0.0; + + __builtin_memcpy (&i, &num, sizeof(unsigned int)); + + return (long double)(unsigned long long) i; +} + +int +main () +{ + long double x; + + x = test (0.0); + + if (x != 0.0) + abort (); + + return 0; +} |