llvm.org GIT mirror llvm / 488fe31
Fix tests due to llvm2cpp move to llc target git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50191 91177308-0d34-0410-b5e6-96231b3b80d8 Anton Korobeynikov 11 years ago
2 changed file(s) with 3 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
None ; RUN: llvm-as < %s | llvm2cpp -funcname=WAKKA | not grep makeLLVMModule
0 ; RUN: llvm-as < %s | llc -march=cpp -cppfname=WAKKA | not grep makeLLVMModule
11 ; PR1515
22
33 define void @foo() {
88 global subdir llvmtoolsdir llvmlibsdir objdir srcdir objroot srcroot
99 set timeout 30
1010 set path [file join $objdir $subdir]
11 set llvm2cpp [file join $llvmtoolsdir llvm2cpp ]
11 set llc [file join $llvmtoolsdir llc ]
1212 set llvmas [file join $llvmtoolsdir llvm-as ]
1313 set llvmdis [file join $llvmtoolsdir llvm-dis ]
1414
6464 }
6565
6666 set retval [ catch {
67 exec -keepnewline $llvm2cpp -f -o $generated < $bytecode 2>/dev/null } msg]
67 exec -keepnewline $llc -march=cpp -f -o $generated < $bytecode 2>/dev/null } msg]
6868
6969 if { $retval != 0 } {
7070 fail "$test: llvm2cpp returned $retval\n$msg"