Implement bswap
[llvm/msp430.git] / test / LLVMC / llvmc.exp
blobfd5a0466ad8bac2e1c16e17c79b93ba77a6f5db4
1 load_lib llvm.exp
3 # 'false.c' is really C++, so it must be treated differently.
4 set special_file "$srcdir/$subdir/false.c"
6 if [ llvm_gcc_supports c ] then {
7 # tcl seems to lack 'filter' which would've made this easier...
8 set temp [glob -nocomplain $srcdir/$subdir/*.{c}]
9 set c_files [list]
10 foreach f $temp { if {$f != $special_file} {lappend c_files $f}}
12 RunLLVMTests [lsort $c_files]
15 if [ llvm_gcc_supports c++ ] then {
16 RunLLVMTests [lsort [concat [glob -nocomplain $srcdir/$subdir/*.{cpp}] $special_file]]
19 if [ llvm_gcc_supports objc ] then {
20 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{m}]]
23 if [ llvm_gcc_supports obj-c++ ] then {
24 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{mm}]]
27 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{td}]]