[cfe-dev] test/SemaTemplate/example-dynarray.cpp

Daniel Dunbar daniel at zuster.org
Mon Nov 2 18:33:36 PST 2009


Yes, changing it to -emit-llvm-only is fine. If and when we really
care about C++ codegen a better place for such tests would be
llvm-test.

 - Daniel

On Mon, Nov 2, 2009 at 3:38 PM, John Thompson
<john.thompson.jtsoftware at gmail.com> wrote:
> Running this test on Windows is problematic because of the driver running
> gcc.  Would revising it to this have it still test what is needed?:
>
> Index: test/SemaTemplate/example-dynarray.cpp
> ===================================================================
> --- test/SemaTemplate/example-dynarray.cpp (revision 85809)
> +++ test/SemaTemplate/example-dynarray.cpp (working copy)
> @@ -1,4 +1,4 @@
> -// RUN: clang %s -o %t
> +// RUN: clang-cc -emit-llvm-only %s
>  #include <stddef.h>
>  #include <stdlib.h>
>  #include <assert.h>
>
> If so I can check it in.
> Experimentally, I set up my system to have MinGW's gcc in the PATH, but here
> is the test output:
>
> 1>FAIL: Clang::SemaTemplate/example-dynarray.cpp (1645 of 1717)
> 1>******************** TEST 'Clang::SemaTemplate/example-dynarray.cpp'
> FAILED ********************
> 1>Script:
> 1>--
> 1>C:/Tools/llvm/bin/Debug\clang.EXE
> C:\Tools\llvm\tools\clang\test\SemaTemplate\example-dynarray.cpp -o
> C:\Tools\llvm\tools\clang\test\SemaTemplate\Output\example-dynarray.cpp.tmp
> 1>--
> 1>Exit Code: 1
> 1>Command Output (stdout):
> 1>--
> 1>Command 0: "C:/Tools/llvm/bin/Debug\clang.EXE"
> "C:\Tools\llvm\tools\clang\test\SemaTemplate\example-dynarray.cpp" "-o"
> "C:\Tools\llvm\tools\clang\test\SemaTemplate\Output\example-dynarray.cpp.tmp"
> 1>Command 0 Result: 1
> 1>Command 0 Output:
> 1>Command 0 Stderr:
> 1>/tmp/cc-000000.s: Assembler messages:
> 1>/tmp/cc-000000.s:4: Error: no such instruction: `align 16'
> 1>/tmp/cc-000000.s:25: Error: no such instruction: `align 16'
> 1>/tmp/cc-000000.s:43: Error: no such instruction: `align 16'
> 1>/tmp/cc-000000.s:626: Error: no such instruction: `align 2'
> 1>/tmp/cc-000000.s:650: Error: no such instruction: `align 2'
> 1>/tmp/cc-000000.s:689: Error: no such instruction: `align 2'
> 1>/tmp/cc-000000.s:823: Error: no such instruction: `align 2'
> 1>/tmp/cc-000000.s:850: Error: no such instruction: `align 2'
> 1>/tmp/cc-000000.s:870: Error: no such instruction: `align 2'
> 1>/tmp/cc-000000.s:890: Error: no such instruction: `align 2'
> 1>/tmp/cc-000000.s:915: Error: no such instruction: `align 2'
> 1>/tmp/cc-000000.s:937: Error: no such instruction: `align 2'
> 1>/tmp/cc-000000.s:1015: Error: no such instruction: `align 2'
> 1>/tmp/cc-000000.s:1119: Error: no such instruction: `align 2'
> 1>/tmp/cc-000000.s:1189: Error: no such instruction: `align 2'
> 1>/tmp/cc-000000.s:1221: Error: no such instruction: `align 2'
> 1>/tmp/cc-000000.s:1245: Error: no such instruction: `align 2'
> 1>/tmp/cc-000000.s:1283: Error: no such instruction: `align 2'
> 1>/tmp/cc-000000.s:1424: Error: no such instruction: `align 2'
> 1>/tmp/cc-000000.s:1447: Error: no such instruction: `align 2'
> 1>/tmp/cc-000000.s:1479: Error: no such instruction: `align 2'
> 1>/tmp/cc-000000.s:1518: Error: no such instruction: `align 2'
> 1>/tmp/cc-000000.s:1545: Error: no such instruction: `align 2'
> 1>/tmp/cc-000000.s:1583: Error: no such instruction: `align 2'
> 1>/tmp/cc-000000.s:1615: Error: no such instruction: `align 2'
> 1>/tmp/cc-000000.s:1645: Error: no such instruction: `align 2'
> 1>/tmp/cc-000000.s:1668: Error: no such instruction: `align 16'
> 1>/tmp/cc-000000.s:1670: Error: no such instruction: `db
> "d\000i\000.\000s\000i\000z\000e\000(\000)\000 \000=\000=\000
> \0005\000\000\000"'
> 1>/tmp/cc-000000.s:1671: Error: no such instruction: `align 16'
> 1>/tmp/cc-000000.s:1673: Error: no such instruction: `db
> "C\000:\000\\\000T\000o\000o\000l\000s\000\\\000l\000l\000v\000m\000\\\000t\000o\000o\000l\000s\000\\\000c\000l\000a\000n\000g\000\\\000t\000e\000s\000t\000\\\000S\000e\000m\000a\000T\000e\000m\000p\000l\000a\000t\000e\000\\\000e\000x\000a\000m\000p\000l\000e\000-\000d\000y\000n\000a\000r\000r\000a\000y\000.\000c\000p\000p\000\000\000"'
> 1>/tmp/cc-000000.s:1674: Error: no such instruction: `align 16'
> 1>/tmp/cc-000000.s:1676: Error: no such instruction: `db "*\000I\000
> \000=\000=\000 \000I\000 \000-\000
> \000d\000i\000.\000b\000e\000g\000i\000n\000(\000)\000\000\000"'
> 1>/tmp/cc-000000.s:1677: Error: no such instruction: `align 16'
> 1>/tmp/cc-000000.s:1679: Error: no such instruction: `db
> "d\000i\000[\000I\000]\000 \000=\000=\000 \000I\000\000\000"'
> 1>/tmp/cc-000000.s:1680: Error: no such instruction: `align 16'
> 1>/tmp/cc-000000.s:1682: Error: no such instruction: `db
> "d\000i\000.\000s\000i\000z\000e\000(\000)\000 \000=\000=\000
> \0004\000\000\000"'
> 1>/tmp/cc-000000.s:1683: Error: no such instruction: `align 16'
> 1>/tmp/cc-000000.s:1685: Error: no such instruction: `db
> "d\000i\0002\000.\000s\000i\000z\000e\000(\000)\000 \000=\000=\000
> \0005\000\000\000"'
> 1>/tmp/cc-000000.s:1686: Error: no such instruction: `align 16'
> 1>/tmp/cc-000000.s:1688: Error: no such instruction: `db
> "d\000i\000.\000b\000e\000g\000i\000n\000(\000)\000 \000!\000=\000
> \000d\000i\0002\000.\000b\000e\000g\000i\000n\000(\000)\000\000\000"'
> 1>/tmp/cc-000000.s:1689: Error: no such instruction: `align 16'
> 1>/tmp/cc-000000.s:1691: Error: no such instruction: `db "*\000I\000
> \000=\000=\000 \000I\000 \000-\000
> \000d\000i\0002\000.\000b\000e\000g\000i\000n\000(\000)\000\000\000"'
> 1>/tmp/cc-000000.s:1692: Error: no such instruction: `align 16'
> 1>/tmp/cc-000000.s:1694: Error: no such instruction: `db
> "d\000i\0003\000.\000s\000i\000z\000e\000(\000)\000 \000=\000=\000
> \0005\000\000\000"'
> 1>/tmp/cc-000000.s:1695: Error: no such instruction: `align 16'
> 1>/tmp/cc-000000.s:1697: Error: no such instruction: `db
> "d\000i\000.\000b\000e\000g\000i\000n\000(\000)\000 \000!\000=\000
> \000d\000i\0003\000.\000b\000e\000g\000i\000n\000(\000)\000\000\000"'
> 1>/tmp/cc-000000.s:1698: Error: no such instruction: `align 16'
> 1>/tmp/cc-000000.s:1700: Error: no such instruction: `db "*\000I\000
> \000=\000=\000 \000I\000 \000-\000
> \000d\000i\0003\000.\000b\000e\000g\000i\000n\000(\000)\000\000\000"'
> 1>/tmp/cc-000000.s:1701: Error: no such instruction: `align 16'
> 1>/tmp/cc-000000.s:1703: Error: no such instruction: `db
> "d\000i\0004\000.\000s\000i\000z\000e\000(\000)\000 \000=\000=\000
> \0000\000\000\000"'
> 1>/tmp/cc-000000.s:1704: Error: no such instruction: `align 16'
> 1>/tmp/cc-000000.s:1706: Error: no such instruction: `db
> "d\000i\0004\000.\000s\000i\000z\000e\000(\000)\000 \000=\000=\000
> \0005\000\000\000"'
> 1>/tmp/cc-000000.s:1707: Error: no such instruction: `align 16'
> 1>/tmp/cc-000000.s:1709: Error: no such instruction: `db
> "d\000i\000.\000b\000e\000g\000i\000n\000(\000)\000 \000!\000=\000
> \000d\000i\0004\000.\000b\000e\000g\000i\000n\000(\000)\000\000\000"'
> 1>/tmp/cc-000000.s:1710: Error: no such instruction: `align 16'
> 1>/tmp/cc-000000.s:1712: Error: no such instruction: `db "*\000I\000
> \000=\000=\000 \000I\000 \000-\000
> \000d\000i\0004\000.\000b\000e\000g\000i\000n\000(\000)\000\000\000"'
> 1>/tmp/cc-000000.s:1713: Error: no such instruction: `align 16'
> 1>/tmp/cc-000000.s:1715: Error: no such instruction: `db "d\000i\0004\000
> \000=\000=\000 \000d\000i\000\000\000"'
> 1>/tmp/cc-000000.s:1716: Error: no such instruction: `align 16'
> 1>/tmp/cc-000000.s:1718: Error: no such instruction: `db "d\000i\0004\000
> \000!\000=\000 \000d\000i\000\000\000"'
> 1>/tmp/cc-000000.s:1719: Error: no such instruction: `align 16'
> 1>/tmp/cc-000000.s:1721: Error: no such instruction: `db
> "d\000p\000.\000s\000i\000z\000e\000(\000)\000 \000=\000=\000
> \0001\000\000\000"'
> 1>clang: error: assembler command failed with exit code 1 (use -v to see
> invocation)
> 1>--
> 1>Command Output (stderr):
> 1>--
> 1>--
> Or is there a different gcc I should be using, or setup?
> -John
> --
> John Thompson
> John.Thompson.JTSoftware at gmail.com
>
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>
>




More information about the cfe-dev mailing list