Daniel, Sorry, I'm implementing the back-end support for multiple-alternative constraints in stages. I wouldn't expect any serious inline asm multiple alternative constraints tests to work yet, as a number of the constraint characters aren't implemented yet. I'll try to fix it so that it doesn't assert when unsupported constraints are used. Clang may have passed parsing tests before my latest change, but there wasn't real support for multiple-alternative constraints with the front-end/back-end combination yet. I'm glad you're working on the gcc tests. I've pulled them down now. Seeing that they have a makefile, I'm assuming they probably won't work on Windows, so I'm putting them on my Linux box. Questions: Should I be able to get these running on Ubuntu Linux, or are they targeted for Darwin only? I changed the variables at the start of the makefile to reflect Linux and my paths, and installed DejaGNU. The tests are running right now, and right off I'm getting a number of messages about failing tests. Some for paths like "gcc.apple/pascal-strings-2.c", some like gcc.c-torture/compile/20000922-1.c. It's fairly quiet now, so I'm assuming some are passing. Will they work with the debug build of Clang? What was the name of the failing test? I'm a novice here, so any help would be appreciated. -John I'm assuming they need to be run on Linux. I'll see if I can make it so it doesn't assert if any of the unsupported constraints are used. I just tried running the gcc tests, but am missing "runtest". -John On Mon, Sep 20, 2010 at 1:18 PM, Daniel Dunbar <daniel at zuster.org> wrote:> Hi John, > > Have you looked at the GCC test suite? It certainly has some examples > -- I know for sure because one of them is now failing with Clang after > your recent patch. :) > > I have a hacked up version in the 'clang-tests' module in SVN which > has been made a bit easier to run with clang. > > - Daniel > > On Mon, Sep 20, 2010 at 12:07 PM, John Thompson > <john.thompson.jtsoftware at gmail.com> wrote: > > I'm trying to write some tests for inline asm constraints, single and > > multiple alternative. > > > > Does anyone know of some example/test code using all or some subset of > the > > constraint letters for one or more platforms that I could look at? > > > > Does anyone know how to set up an asm statement using the "o" constraint? > > > > Thanks. > > > > -John > > > > -- > > John Thompson > > John.Thompson.JTSoftware at gmail.com > > > > > > _______________________________________________ > > LLVM Developers mailing list > > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev > > > > >-- John Thompson John.Thompson.JTSoftware at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100920/e2884c71/attachment.html>
On Sep 20, 2010, at 4:38 PM, John Thompson wrote: [snip]> I just tried running the gcc tests, but am missing "runtest".http://www.gnu.org/software/dejagnu/ Follow the directions there. I think the GCC test suite wants DejaGNU to be installed in a sibling directory, adjacent to the llvm-gcc or clang toplevel. HTH, stuart
Thanks, Stuart. Sorry, I had some left-over editing cruft in my email.>From Googling runtest, I had found dejagnu, which I'd heard some folks wereusing over there, so I used the local package manager to install it. But from what you said I went ahead and got the dejagnu sources and built it, but had problems in running make install, which is trying to put it /usr/local/bin rather than /usr/bin like the package manager did, so I left it alone for now. But the dejagnu tree is adjacent to the gcc test suite tree. Should I try to resolve the install problems? Running runtest --version: Expect version is 5.43.0 Tcl version is 8.4 Framework version is 1.4.99 In my first run, only 95 tests passed, 516 unexpected failures, etc. So either I still need some kind of configuration fix, or this particular snap of the tests doesn't work on my particular Linux box. I'm using the triple i386-unknown-linux in Daniel's makefile. I'm running the tests again adding the -v option to runtest to see if that gives me any more information, plus using the Release+Asserts version of the clang binaries. But I'm hoping you or Daniel can straighten me out. Thanks again, -John On Mon, Sep 20, 2010 at 4:46 PM, Stuart Hastings <stuart at apple.com> wrote:> > On Sep 20, 2010, at 4:38 PM, John Thompson wrote: > > [snip] > > > I just tried running the gcc tests, but am missing "runtest". > > http://www.gnu.org/software/dejagnu/ > > Follow the directions there. I think the GCC test suite wants DejaGNU to > be installed in a sibling directory, adjacent to the llvm-gcc or clang > toplevel. > > HTH, > > stuart-- John Thompson John.Thompson.JTSoftware at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100920/503358f8/attachment.html>