On Thu, 2008-12-18 at 15:32 +0530, Subrata Modak wrote:
> On Thu, 2008-12-18 at 14:02 +0530, gowrishankar wrote:
> > I have made it to compile and run with below patch.
> > Using proper extended asm stops this problem.
> > ---
> > Below patch uses gcc's extended asm instead of basic inlines on this test
> > which stops compilation problem with newer gcc's (v4).
> >
> > Signed-off-by: Gowrishankar M <[email protected]>
>
> Thanks very much for fixing this. Now i am able to build and install
> properly. As a fallout to your fix, i am adding this test to build &
> install default, however i am reserving to run it only through
> runalltests.sh, as it creates a core file of size > 20MB.
>
> Signed-Off-By: Subrata Modak <[email protected]>,
This too is merged.
Regards--
Subrata
> --
> --- ltp-intermediate-20081218/runalltests.sh.orig 2008-12-18
> 15:16:18.000000000 +0530
> +++ ltp-intermediate-20081218/runalltests.sh 2008-12-18
> 15:17:54.000000000 +0530
> @@ -217,3 +217,8 @@ fi
> ## START => Test Series 7 ##
> ./runltp -f tpm_tools
> ## END => Test Series 7 ##
> +
> +## The next one i plan to run is tcore_patch_test_suites
> +## START => Test Series 8 ##
> +./runltp -f tcore
> +## END => Test Series 8 ##
> diff -uprN ltp-intermediate-20081218/runtest.orig/tcore
> ltp-intermediate-20081218/runtest/tcore
> --- ltp-intermediate-20081218/runtest.orig/tcore 1970-01-01
> 05:30:00.000000000 +0530
> +++ ltp-intermediate-20081218/runtest/tcore 2008-12-18
> 15:18:49.000000000 +0530
> @@ -0,0 +1 @@
> +tcore01 tcore.sh
> --- ltp-intermediate-20081218/testcases/misc/Makefile.orig 2008-12-18
> 15:09:37.000000000 +0530
> +++ ltp-intermediate-20081218/testcases/misc/Makefile 2008-12-18
> 15:06:16.000000000 +0530
> @@ -1,4 +1,4 @@
> -SUBDIRS = crash f00f math
> +SUBDIRS = crash f00f math tcore_patch_test_suites
>
> all:
> @set -e; for i in $(SUBDIRS); do $(MAKE) -C $$i ; done
>
>
> Regards--
> Subrata
>
> >
> > ---
> > Index: ltp/testcases/misc/tcore_patch_test_suites/tcore.c
> > ===================================================================
> > --- ltp.orig/testcases/misc/tcore_patch_test_suites/tcore.c
> > 2008-12-17 18:28:00.000000000 -0500
> > +++ ltp/testcases/misc/tcore_patch_test_suites/tcore.c 2008-12-17
> > 18:29:43.000000000 -0500
> > @@ -126,7 +126,7 @@
> > {
> > char buf[16];
> > sprintf(buf, "%d%d\n", pid, pid);
> > - __asm__ ("movups %0, %%xmm1;"::"m"(buf));
> > + asm volatile ("movups (%0), %%xmm1;"::"r" (buf):"memory");
> > }
> > sleep(1);
> > }
> > @@ -163,8 +163,8 @@
> > char buf1[16];
> > sprintf(buf, "%d%d\n", pid, pid);
> > sprintf(buf1,"%d",d2);
> > - __asm__ ("movups %0,%%xmm2;"::"m"(buf));
> > - __asm__ ("movups %0, %%xmm5;"::"m"(buf));
> > + asm volatile ("movups (%0), %%xmm2;":: "r" (buf):"memory");
> > + asm volatile ("movups (%0), %%xmm5;":: "r" (buf):"memory");
> > }
> > *junk = 0;
> > }
> >
> > ---
> > Thanks,
> > Gowri
> >
> > Subrata Modak wrote:
> > > Dear Guo,
> > >
> > > The tcore_patch_test_suite was added to LTP on Fri Jan 17 22:07:55 2003
> > > UTC, with contribution from you. As i try to compile it today, i get the
> > > following error:
> > >
> > > [tcore_patch_test_suites]$ make
> > > gcc -o tcore tcore.c -lm -lpthread
> > > tcore.c: In function ‘producer’:
> > > tcore.c:129: error: memory input 0 is not directly addressable
> > > tcore.c: In function ‘consumer’:
> > > tcore.c:166: error: memory input 0 is not directly addressable
> > > tcore.c:167: error: memory input 0 is not directly addressable
> > > make: *** [tcore] Error 1
> > >
> > >
> > > $ uname -a
> > > Linux 2.6.18-92.el5 #1 SMP Tue Apr 29 13:16:12 EDT 2008 i686 i686 i386
> > > GNU/Linux
> > >
> > > Can you please let me know:
> > > 1) Any fix for this Failure ?
> > > 2) Relevance of this test case today, whether they need to be there in
> > > LTP or not ?
> > >
> > > Thanks in advance.
> > >
> > > Regards--
> > > Subrata
> > >
> > >
> > >
> > > ------------------------------------------------------------------------------
> > > SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas,
> > > Nevada.
> > > The future of the web can't happen without you. Join us at MIX09 to help
> > > pave the way to the Next Web now. Learn more and register at
> > > http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
> > > _______________________________________________
> > > Ltp-list mailing list
> > > [email protected]
> > > https://lists.sourceforge.net/lists/listinfo/ltp-list
> > >
> >
> ------------------------------------------------------------------------------
> SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
> The future of the web can't happen without you. Join us at MIX09 to help
> pave the way to the Next Web now. Learn more and register at
> http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
> _______________________________________________ Ltp-list mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ltp-list
------------------------------------------------------------------------------
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list