Hi, all It seems that rev. 131463 [1] makes LLVM failed to recognize ARM correctly. My best guess is the variable LLVM_HOSTTRIPLE got something like "armv7l-unknown-linux-gnueabi" when LLVM compiled natively on ARM. Then the Arch (armv7l) is not recognized by LLVM. As you can see from attach (llvm-131463-gcc-4.4.1-native-arm2.log), there are a lot failure while running test cases under ExecutionEngine/. Those failure are disappeared when I cross compile LLVM. Maybe LLVM_HOSTTRIPLE got the *right* value, i.e., arm-unknown-linux-gnueabi. Currently, I handcode "Arch = "arm"" to make native compiled LLVM pass most test cases [2]. Is there a better way to make sys::getHostTriple handle this situation? Thanks! Regards, chenwj [1] http://llvm.org/viewvc/llvm-project?view=rev&revision=131463 [2] see attach llvm-131466-fix-gcc-4.4.1-native-arm2.log -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan (R.O.C.) Tel:886-2-2788-3799 #1667 -------------- next part -------------- llvm[0]: Running test suite make[1]: Entering directory `/nfs_home/chenwj/test/native-build/arm2/test' Making a new site.exp file... Making LLVM 'lit.site.cfg' file... Making LLVM unittest 'lit.site.cfg' file... ( ulimit -t 600 ; ulimit -d 512000 ; ulimit -m 512000 ; ulimit -v 1024000 ; \ /nfs_home/chenwj/test/llvm/utils/lit/lit.py -s -v . ) -- Testing: 6030 tests, 4 threads -- Testing: 0 .. 10.. 20. FAIL: LLVM :: CodeGen/Thumb/select.ll (1650 of 6030) ******************** TEST 'LLVM :: CodeGen/Thumb/select.ll' FAILED ******************** Script: -- /nfs_home/chenwj/test/native-build/arm2/Debug+Asserts/bin/llc < /nfs_home/chenwj/test/llvm/test/CodeGen/Thumb/select.ll -march=thumb | grep beq | /nfs_home/chenwj/test/native-build/arm2/Debug+Asserts/bin/count 1 /nfs_home/chenwj/test/native-build/arm2/Debug+Asserts/bin/llc < /nfs_home/chenwj/test/llvm/test/CodeGen/Thumb/select.ll -march=thumb | grep bgt | /nfs_home/chenwj/test/native-build/arm2/Debug+Asserts/bin/count 1 /nfs_home/chenwj/test/native-build/arm2/Debug+Asserts/bin/llc < /nfs_home/chenwj/test/llvm/test/CodeGen/Thumb/select.ll -march=thumb | grep blt | /nfs_home/chenwj/test/native-build/arm2/Debug+Asserts/bin/count 3 /nfs_home/chenwj/test/native-build/arm2/Debug+Asserts/bin/llc < /nfs_home/chenwj/test/llvm/test/CodeGen/Thumb/select.ll -march=thumb | grep ble | /nfs_home/chenwj/test/native-build/arm2/Debug+Asserts/bin/count 1 /nfs_home/chenwj/test/native-build/arm2/Debug+Asserts/bin/llc < /nfs_home/chenwj/test/llvm/test/CodeGen/Thumb/select.ll -march=thumb | grep bls | /nfs_home/chenwj/test/native-build/arm2/Debug+Asserts/bin/count 1 /nfs_home/chenwj/test/native-build/arm2/Debug+Asserts/bin/llc < /nfs_home/chenwj/test/llvm/test/CodeGen/Thumb/select.ll -march=thumb | grep bhi | /nfs_home/chenwj/test/native-build/arm2/Debug+Asserts/bin/count 1 /nfs_home/chenwj/test/native-build/arm2/Debug+Asserts/bin/llc < /nfs_home/chenwj/test/llvm/test/CodeGen/Thumb/select.ll -mtriple=thumb-apple-darwin | grep __ltdf2 -- Exit Code: 1 Command Output (stderr): -- Expected 3 lines, got 1. -- ******************** Testing: 0 .. 10.. 20.. 30.. 40.. 50 FAIL: LLVM :: ExecutionEngine/2003-01-04-ArgumentBug.ll (3173 of 6030) ******************** TEST 'LLVM :: ExecutionEngine/2003-01-04-ArgumentBug.ll' FAILED ******************** Script: -- /nfs_home/chenwj/test/native-build/arm2/Debug+Asserts/bin/lli /nfs_home/chenwj/test/llvm/test/ExecutionEngine/2003-01-04-ArgumentBug.ll > /dev/null -- Exit Code: 134 Command Output (stderr): -- ARMCodeEmitter::emitPseudoInstruction UNREACHABLE executed at /nfs_home/chenwj/test/llvm/lib/Target/ARM/ARMCodeEmitter.cpp:831! 0 libc.so.6 0x402e5000 Stack dump: 0. Program arguments: /nfs_home/chenwj/test/native-build/arm2/Debug+Asserts/bin/lli /nfs_home/chenwj/test/llvm/test/ExecutionEngine/2003-01-04-ArgumentBug.ll 1. Running pass 'ARM Machine Code Emitter' on function '@main' /nfs_home/chenwj/test/native-build/arm2/test/ExecutionEngine/Output/2003-01-04-ArgumentBug.ll.script: line 2: 28353 Aborted '/nfs_home/chenwj/test/native-build/arm2/Debug+Asserts/bin/lli' '/nfs_home/chenwj/test/llvm/test/ExecutionEngine/2003-01-04-ArgumentBug.ll' > '/dev/null' -- ******************** Testing: 0 .. 10.. 20.. 30.. 40.. 50 FAIL: LLVM :: ExecutionEngine/2003-01-04-LoopTest.ll (3174 of 6030) ******************** TEST 'LLVM :: ExecutionEngine/2003-01-04-LoopTest.ll' FAILED ******************** Script: -- /nfs_home/chenwj/test/native-build/arm2/Debug+Asserts/bin/lli /nfs_home/chenwj/test/llvm/test/ExecutionEngine/2003-01-04-LoopTest.ll > /dev/null -- Exit Code: 134 Command Output (stderr): -- ARMCodeEmitter::emitPseudoInstruction UNREACHABLE executed at /nfs_home/chenwj/test/llvm/lib/Target/ARM/ARMCodeEmitter.cpp:831! 0 libc.so.6 0x402e5000 Stack dump: 0. Program arguments: /nfs_home/chenwj/test/native-build/arm2/Debug+Asserts/bin/lli /nfs_home/chenwj/test/llvm/test/ExecutionEngine/2003-01-04-LoopTest.ll 1. Running pass 'ARM Machine Code Emitter' on function '@main' /nfs_home/chenwj/test/native-build/arm2/test/ExecutionEngine/Output/2003-01-04-LoopTest.ll.script: line 2: 28356 Aborted '/nfs_home/chenwj/test/native-build/arm2/Debug+Asserts/bin/lli' '/nfs_home/chenwj/test/llvm/test/ExecutionEngine/2003-01-04-LoopTest.ll' > '/dev/null' -- ******************** Testing: 0 .. 10.. 20.. 30.. 40.. 50 FAIL: LLVM :: ExecutionEngine/2002-12-16-ArgTest.ll (3176 of 6030) ******************** TEST 'LLVM :: ExecutionEngine/2002-12-16-ArgTest.ll' FAILED ******************** Script: -- /nfs_home/chenwj/test/native-build/arm2/Debug+Asserts/bin/lli /nfs_home/chenwj/test/llvm/test/ExecutionEngine/2002-12-16-ArgTest.ll > /dev/null -- Exit Code: 134 Command Output (stderr): -- ARMCodeEmitter::emitPseudoInstruction UNREACHABLE executed at /nfs_home/chenwj/test/llvm/lib/Target/ARM/ARMCodeEmitter.cpp:831! 0 libc.so.6 0x402e5000 Stack dump: 0. Program arguments: /nfs_home/chenwj/test/native-build/arm2/Debug+Asserts/bin/lli /nfs_home/chenwj/test/llvm/test/ExecutionEngine/2002-12-16-ArgTest.ll 1. Running pass 'ARM Machine Code Emitter' on function '@main' /nfs_home/chenwj/test/native-build/arm2/test/ExecutionEngine/Output/2002-12-16-ArgTest.ll.script: line 2: 28354 Aborted '/nfs_home/chenwj/test/native-build/arm2/Debug+Asserts/bin/lli' '/nfs_home/chenwj/test/llvm/test/ExecutionEngine/2002-12-16-ArgTest.ll' > '/dev/null' -- ******************** Testing: 0 .. 10.. 20.. 30.. 40.. 50 FAIL: LLVM :: ExecutionEngine/2003-01-15-AlignmentTest.ll (3179 of 6030) ******************** TEST 'LLVM :: ExecutionEngine/2003-01-15-AlignmentTest.ll' FAILED ******************** Script: -- /nfs_home/chenwj/test/native-build/arm2/Debug+Asserts/bin/lli /nfs_home/chenwj/test/llvm/test/ExecutionEngine/2003-01-15-AlignmentTest.ll > /dev/null -- Exit Code: 134 Command Output (stderr): -- ARMCodeEmitter::emitPseudoInstruction UNREACHABLE executed at /nfs_home/chenwj/test/llvm/lib/Target/ARM/ARMCodeEmitter.cpp:831! 0 libc.so.6 0x402e5000 Stack dump: 0. Program arguments: /nfs_home/chenwj/test/native-build/arm2/Debug+Asserts/bin/lli /nfs_home/chenwj/test/llvm/test/ExecutionEngine/2003-01-15-AlignmentTest.ll 1. Running pass 'ARM Machine Code Emitter' on function '@main' /nfs_home/chenwj/test/native-build/arm2/test/ExecutionEngine/Output/2003-01-15-AlignmentTest.ll.script: line 2: 28368 Aborted '/nfs_home/chenwj/test/native-build/arm2/Debug+Asserts/bin/lli' '/nfs_home/chenwj/test/llvm/test/ExecutionEngine/2003-01-15-AlignmentTest.ll' > '/dev/null' -- ******************** Testing: 0 .. 10.. 20.. 30.. 40.. 50 FAIL: LLVM :: ExecutionEngine/2003-05-06-LivenessClobber.ll (3180 of 6030) ******************** TEST 'LLVM :: ExecutionEngine/2003-05-06-LivenessClobber.ll' FAILED ******************** Script: -- not /nfs_home/chenwj/test/native-build/arm2/Debug+Asserts/bin/lli /nfs_home/chenwj/test/llvm/test/ExecutionEngine/2003-05-06-LivenessClobber.ll -- Exit Code: 1 Command Output (stderr): -- ARMCodeEmitter::emitPseudoInstruction UNREACHABLE executed at /nfs_home/chenwj/test/llvm/lib/Target/ARM/ARMCodeEmitter.cpp:831! 0 libc.so.6 0x402e5000 Stack dump: 0. Program arguments: /nfs_home/chenwj/test/native-build/arm2/Debug+Asserts/bin/lli /nfs_home/chenwj/test/llvm/test/ExecutionEngine/2003-05-06-LivenessClobber.ll 1. Running pass 'ARM Machine Code Emitter' on function '@main' Error: Aborted -- ******************** Testing: 0 .. 10.. 20.. 30.. 40.. 50 FAIL: LLVM :: ExecutionEngine/2003-05-07-ArgumentTest.ll (3181 of 6030) ******************** TEST 'LLVM :: ExecutionEngine/2003-05-07-ArgumentTest.ll' FAILED ******************** Script: -- /nfs_home/chenwj/test/native-build/arm2/Debug+Asserts/bin/lli /nfs_home/chenwj/test/llvm/test/ExecutionEngine/2003-05-07-ArgumentTest.ll test -- Exit Code: 134 Command Output (stderr): -- ARMCodeEmitter::emitPseudoInstruction UNREACHABLE executed at /nfs_home/chenwj/test/llvm/lib/Target/ARM/ARMCodeEmitter.cpp:831! 0 libc.so.6 0x402e5000 Stack dump: 0. Program arguments: /nfs_home/chenwj/test/native-build/arm2/Debug+Asserts/bin/lli /nfs_home/chenwj/test/llvm/test/ExecutionEngine/2003-05-07-ArgumentTest.ll test 1. Running pass 'ARM Machine Code Emitter' on function '@main' /nfs_home/chenwj/test/native-build/arm2/test/ExecutionEngine/Output/2003-05-07-ArgumentTest.ll.script: line 2: 28373 Aborted '/nfs_home/chenwj/test/native-build/arm2/Debug+Asserts/bin/lli' '/nfs_home/chenwj/test/llvm/test/ExecutionEngine/2003-05-07-ArgumentTest.ll' 'test' -- ******************** Testing: 0 .. 10.. 20.. 30.. 40.. 50 FAIL: LLVM :: ExecutionEngine/2003-08-21-EnvironmentTest.ll (3186 of 6030) ******************** TEST 'LLVM :: ExecutionEngine/2003-08-21-EnvironmentTest.ll' FAILED ******************** Script: -- /nfs_home/chenwj/test/native-build/arm2/Debug+Asserts/bin/lli /nfs_home/chenwj/test/llvm/test/ExecutionEngine/2003-08-21-EnvironmentTest.ll > /dev/null -- Exit Code: 134 Command Output (stderr): -- ARMCodeEmitter::emitPseudoInstruction UNREACHABLE executed at /nfs_home/chenwj/test/llvm/lib/Target/ARM/ARMCodeEmitter.cpp:831! 0 libc.so.6 0x402e5000 Stack dump: 0. Program arguments: /nfs_home/chenwj/test/native-build/arm2/Debug+Asserts/bin/lli /nfs_home/chenwj/test/llvm/test/ExecutionEngine/2003-08-21-EnvironmentTest.ll 1. Running pass 'ARM Machine Code Emitter' on function '@main' /nfs_home/chenwj/test/native-build/arm2/test/ExecutionEngine/Output/2003-08-21-EnvironmentTest.ll.script: line 2: 28384 Aborted '/nfs_home/chenwj/test/native-build/arm2/Debug+Asserts/bin/lli' '/nfs_home/chenwj/test/llvm/test/ExecutionEngine/2003-08-21-EnvironmentTest.ll' > '/dev/null' -- ******************** Testing: 0 .. 10.. 20.. 30.. 40.. 50 FAIL: LLVM :: ExecutionEngine/2003-10-18-PHINode-ConstantExpr-CondCode-Failure.ll (3187 of 6030) ******************** TEST 'LLVM :: ExecutionEngine/2003-10-18-PHINode-ConstantExpr-CondCode-Failure.ll' FAILED ******************** Script: -- /nfs_home/chenwj/test/native-build/arm2/Debug+Asserts/bin/lli /nfs_home/chenwj/test/llvm/test/ExecutionEngine/2003-10-18-PHINode-ConstantExpr-CondCode-Failure.ll > /dev/null -- Exit Code: 134 Command Output (stderr): -- ARMCodeEmitter::emitPseudoInstruction UNREACHABLE executed at /nfs_home/chenwj/test/llvm/lib/Target/ARM/ARMCodeEmitter.cpp:831! 0 libc.so.6 0x402e5000 Stack dump: 0. Program arguments: /nfs_home/chenwj/test/native-build/arm2/Debug+Asserts/bin/lli /nfs_home/chenwj/test/llvm/test/ExecutionEngine/2003-10-18-PHINode-ConstantExpr-CondCode-Failure.ll 1. Running pass 'ARM Machine Code Emitter' on function '@main' /nfs_home/chenwj/test/native-build/arm2/test/ExecutionEngine/Output/2003-10-18-PHINode-ConstantExpr-CondCode-Failure.ll.script: line 2: 28387 Aborted '/nfs_home/chenwj/test/native-build/arm2/Debug+Asserts/bin/lli' '/nfs_home/chenwj/test/llvm/test/ExecutionEngine/2003-10-18-PHINode-ConstantExpr-CondCode-Failure.ll' > '/dev/null' -- ******************** Testing: 0 .. 10.. 20.. 30.. 40.. 50 FAIL: LLVM :: ExecutionEngine/hello2.ll (3194 of 6030) ******************** TEST 'LLVM :: ExecutionEngine/hello2.ll' FAILED ******************** Script: -- /nfs_home/chenwj/test/native-build/arm2/Debug+Asserts/bin/lli /nfs_home/chenwj/test/llvm/test/ExecutionEngine/hello2.ll > /dev/null -- Exit Code: 134 Command Output (stderr): -- ARMCodeEmitter::emitPseudoInstruction UNREACHABLE executed at /nfs_home/chenwj/test/llvm/lib/Target/ARM/ARMCodeEmitter.cpp:831! 0 libc.so.6 0x402e5000 Stack dump: 0. Program arguments: /nfs_home/chenwj/test/native-build/arm2/Debug+Asserts/bin/lli /nfs_home/chenwj/test/llvm/test/ExecutionEngine/hello2.ll 1. Running pass 'ARM Machine Code Emitter' on function '@main' /nfs_home/chenwj/test/native-build/arm2/test/ExecutionEngine/Output/hello2.ll.script: line 2: 28404 Aborted '/nfs_home/chenwj/test/native-build/arm2/Debug+Asserts/bin/lli' '/nfs_home/chenwj/test/llvm/test/ExecutionEngine/hello2.ll' > '/dev/null' -- ******************** Testing: 0 .. 10.. 20.. 30.. 40.. 50 FAIL: LLVM :: ExecutionEngine/hello.ll (3195 of 6030) ******************** TEST 'LLVM :: ExecutionEngine/hello.ll' FAILED ******************** Script: -- /nfs_home/chenwj/test/native-build/arm2/Debug+Asserts/bin/lli /nfs_home/chenwj/test/llvm/test/ExecutionEngine/hello.ll > /dev/null -- Exit Code: 134 Command Output (stderr): -- ARMCodeEmitter::emitPseudoInstruction UNREACHABLE executed at /nfs_home/chenwj/test/llvm/lib/Target/ARM/ARMCodeEmitter.cpp:831! 0 libc.so.6 0x402e5000 Stack dump: 0. Program arguments: /nfs_home/chenwj/test/native-build/arm2/Debug+Asserts/bin/lli /nfs_home/chenwj/test/llvm/test/ExecutionEngine/hello.ll 1. Running pass 'ARM Machine Code Emitter' on function '@main' /nfs_home/chenwj/test/native-build/arm2/test/ExecutionEngine/Output/hello.ll.script: line 2: 28401 Aborted '/nfs_home/chenwj/test/native-build/arm2/Debug+Asserts/bin/lli' '/nfs_home/chenwj/test/llvm/test/ExecutionEngine/hello.ll' > '/dev/null' -- ******************** Testing: 0 .. 10.. 20.. 30.. 40.. 50 FAIL: LLVM :: ExecutionEngine/simpletest.ll (3197 of 6030) ******************** TEST 'LLVM :: ExecutionEngine/simpletest.ll' FAILED ******************** Script: -- /nfs_home/chenwj/test/native-build/arm2/Debug+Asserts/bin/lli /nfs_home/chenwj/test/llvm/test/ExecutionEngine/simpletest.ll > /dev/null -- Exit Code: 134 Command Output (stderr): -- ARMCodeEmitter::emitPseudoInstruction UNREACHABLE executed at /nfs_home/chenwj/test/llvm/lib/Target/ARM/ARMCodeEmitter.cpp:831! 0 libc.so.6 0x402e5000 Stack dump: 0. Program arguments: /nfs_home/chenwj/test/native-build/arm2/Debug+Asserts/bin/lli /nfs_home/chenwj/test/llvm/test/ExecutionEngine/simpletest.ll 1. Running pass 'ARM Machine Code Emitter' on function '@main' /nfs_home/chenwj/test/native-build/arm2/test/ExecutionEngine/Output/simpletest.ll.script: line 2: 28407 Aborted '/nfs_home/chenwj/test/native-build/arm2/Debug+Asserts/bin/lli' '/nfs_home/chenwj/test/llvm/test/ExecutionEngine/simpletest.ll' > '/dev/null' -- ******************** Testing: 0 .. 10.. 20.. 30.. 40.. 50 FAIL: LLVM :: ExecutionEngine/stubs.ll (3199 of 6030) ******************** TEST 'LLVM :: ExecutionEngine/stubs.ll' FAILED ******************** Script: -- /nfs_home/chenwj/test/native-build/arm2/Debug+Asserts/bin/lli -disable-lazy-compilation=false /nfs_home/chenwj/test/llvm/test/ExecutionEngine/stubs.ll -- Exit Code: 134 Command Output (stderr): -- ARMCodeEmitter::emitPseudoInstruction UNREACHABLE executed at /nfs_home/chenwj/test/llvm/lib/Target/ARM/ARMCodeEmitter.cpp:831! 0 libc.so.6 0x402e5000 Stack dump: 0. Program arguments: /nfs_home/chenwj/test/native-build/arm2/Debug+Asserts/bin/lli -disable-lazy-compilation=false /nfs_home/chenwj/test/llvm/test/ExecutionEngine/stubs.ll 1. Running pass 'ARM Machine Code Emitter' on function '@main' /nfs_home/chenwj/test/native-build/arm2/test/ExecutionEngine/Output/stubs.ll.script: line 2: 28411 Aborted '/nfs_home/chenwj/test/native-build/arm2/Debug+Asserts/bin/lli' '-disable-lazy-compilation=false' '/nfs_home/chenwj/test/llvm/test/ExecutionEngine/stubs.ll' -- ******************** Testing: 0 .. 10.. 20.. 30.. 40.. 50 FAIL: LLVM :: ExecutionEngine/test-fp.ll (3204 of 6030) ******************** TEST 'LLVM :: ExecutionEngine/test-fp.ll' FAILED ******************** Script: -- /nfs_home/chenwj/test/native-build/arm2/Debug+Asserts/bin/lli /nfs_home/chenwj/test/llvm/test/ExecutionEngine/test-fp.ll > /dev/null -- Exit Code: 134 Command Output (stderr): -- ARMCodeEmitter::emitPseudoInstruction UNREACHABLE executed at /nfs_home/chenwj/test/llvm/lib/Target/ARM/ARMCodeEmitter.cpp:831! 0 libc.so.6 0x402e5000 Stack dump: 0. Program arguments: /nfs_home/chenwj/test/native-build/arm2/Debug+Asserts/bin/lli /nfs_home/chenwj/test/llvm/test/ExecutionEngine/test-fp.ll 1. Running pass 'ARM Machine Code Emitter' on function '@main' /nfs_home/chenwj/test/native-build/arm2/test/ExecutionEngine/Output/test-fp.ll.script: line 2: 28423 Aborted '/nfs_home/chenwj/test/native-build/arm2/Debug+Asserts/bin/lli' '/nfs_home/chenwj/test/llvm/test/ExecutionEngine/test-fp.ll' > '/dev/null' -- ******************** Testing: 0 .. 10.. 20.. 30.. 40.. 50 FAIL: LLVM :: ExecutionEngine/test-loadstore.ll (3205 of 6030) ******************** TEST 'LLVM :: ExecutionEngine/test-loadstore.ll' FAILED ******************** Script: -- /nfs_home/chenwj/test/native-build/arm2/Debug+Asserts/bin/lli /nfs_home/chenwj/test/llvm/test/ExecutionEngine/test-loadstore.ll > /dev/null -- Exit Code: 134 Command Output (stderr): -- ARMCodeEmitter::emitPseudoInstruction UNREACHABLE executed at /nfs_home/chenwj/test/llvm/lib/Target/ARM/ARMCodeEmitter.cpp:831! 0 libc.so.6 0x402e5000 Stack dump: 0. Program arguments: /nfs_home/chenwj/test/native-build/arm2/Debug+Asserts/bin/lli /nfs_home/chenwj/test/llvm/test/ExecutionEngine/test-loadstore.ll 1. Running pass 'ARM Machine Code Emitter' on function '@main' /nfs_home/chenwj/test/native-build/arm2/test/ExecutionEngine/Output/test-loadstore.ll.script: line 2: 28422 Aborted '/nfs_home/chenwj/test/native-build/arm2/Debug+Asserts/bin/lli' '/nfs_home/chenwj/test/llvm/test/ExecutionEngine/test-loadstore.ll' > '/dev/null' -- ******************** Testing: 0 .. 10.. 20.. 30.. 40.. 50 FAIL: LLVM :: ExecutionEngine/test-malloc.ll (3209 of 6030) ******************** TEST 'LLVM :: ExecutionEngine/test-malloc.ll' FAILED ******************** Script: -- /nfs_home/chenwj/test/native-build/arm2/Debug+Asserts/bin/lli /nfs_home/chenwj/test/llvm/test/ExecutionEngine/test-malloc.ll > /dev/null -- Exit Code: 134 Command Output (stderr): -- ARMCodeEmitter::emitPseudoInstruction UNREACHABLE executed at /nfs_home/chenwj/test/llvm/lib/Target/ARM/ARMCodeEmitter.cpp:831! 0 libc.so.6 0x402e5000 Stack dump: 0. Program arguments: /nfs_home/chenwj/test/native-build/arm2/Debug+Asserts/bin/lli /nfs_home/chenwj/test/llvm/test/ExecutionEngine/test-malloc.ll 1. Running pass 'ARM Machine Code Emitter' on function '@main' /nfs_home/chenwj/test/native-build/arm2/test/ExecutionEngine/Output/test-malloc.ll.script: line 2: 28431 Aborted '/nfs_home/chenwj/test/native-build/arm2/Debug+Asserts/bin/lli' '/nfs_home/chenwj/test/llvm/test/ExecutionEngine/test-malloc.ll' > '/dev/null' -- ******************** Testing: 0 .. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90. FAIL: LLVM-Unit :: ExecutionEngine/JIT/Debug+Asserts/JITTests/JITTest.AvailableExternallyFunctionIsntCompiled (5865 of 6030) ******************** TEST 'LLVM-Unit :: ExecutionEngine/JIT/Debug+Asserts/JITTests/JITTest.AvailableExternallyFunctionIsntCompiled' FAILED ******************** Note: Google Test filter = JITTest.AvailableExternallyFunctionIsntCompiled [==========] Running 1 test from 1 test case. [----------] Global test environment set-up. [----------] 1 test from JITTest [ RUN ] JITTest.AvailableExternallyFunctionIsntCompiled ARMCodeEmitter::emitPseudoInstruction UNREACHABLE executed at /nfs_home/chenwj/test/llvm/lib/Target/ARM/ARMCodeEmitter.cpp:831! 0 libc.so.6 0x402e5000 Stack dump: 0. Running pass 'ARM Machine Code Emitter' on function '@func' ******************** Testing: 0 .. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90. FAIL: LLVM-Unit :: ExecutionEngine/JIT/Debug+Asserts/JITTests/JITTest.FarCallToKnownFunction (5867 of 6030) ******************** TEST 'LLVM-Unit :: ExecutionEngine/JIT/Debug+Asserts/JITTests/JITTest.FarCallToKnownFunction' FAILED ******************** Note: Google Test filter = JITTest.FarCallToKnownFunction [==========] Running 1 test from 1 test case. [----------] Global test environment set-up. [----------] 1 test from JITTest [ RUN ] JITTest.FarCallToKnownFunction ARMCodeEmitter::emitPseudoInstruction UNREACHABLE executed at /nfs_home/chenwj/test/llvm/lib/Target/ARM/ARMCodeEmitter.cpp:831! 0 libc.so.6 0x402e5000 Stack dump: 0. Running pass 'ARM Machine Code Emitter' on function '@test' ******************** Testing: 0 .. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90. FAIL: LLVM-Unit :: ExecutionEngine/JIT/Debug+Asserts/JITTests/JITTest.ModuleDeletion (5870 of 6030) ******************** TEST 'LLVM-Unit :: ExecutionEngine/JIT/Debug+Asserts/JITTests/JITTest.ModuleDeletion' FAILED ******************** Note: Google Test filter = JITTest.ModuleDeletion [==========] Running 1 test from 1 test case. [----------] Global test environment set-up. [----------] 1 test from JITTest [ RUN ] JITTest.ModuleDeletion ARMCodeEmitter::emitPseudoInstruction UNREACHABLE executed at /nfs_home/chenwj/test/llvm/lib/Target/ARM/ARMCodeEmitter.cpp:831! 0 libc.so.6 0x402e5000 Stack dump: 0. Running pass 'ARM Machine Code Emitter' on function '@main' ******************** Testing: 0 .. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90. FAIL: LLVM-Unit :: ExecutionEngine/JIT/Debug+Asserts/JITTests/JITTest.NonLazyLeaksNoStubs (5871 of 6030) ******************** TEST 'LLVM-Unit :: ExecutionEngine/JIT/Debug+Asserts/JITTests/JITTest.NonLazyLeaksNoStubs' FAILED ******************** Note: Google Test filter = JITTest.NonLazyLeaksNoStubs [==========] Running 1 test from 1 test case. [----------] Global test environment set-up. [----------] 1 test from JITTest [ RUN ] JITTest.NonLazyLeaksNoStubs ARMCodeEmitter::emitPseudoInstruction UNREACHABLE executed at /nfs_home/chenwj/test/llvm/lib/Target/ARM/ARMCodeEmitter.cpp:831! 0 libc.so.6 0x402e5000 Stack dump: 0. Running pass 'ARM Machine Code Emitter' on function '@func1' ******************** Testing: 0 .. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90. FAIL: LLVM-Unit :: ExecutionEngine/JIT/Debug+Asserts/JITTests/JITTest.NonLazyCompilationStillNeedsStubs (5872 of 6030) ******************** TEST 'LLVM-Unit :: ExecutionEngine/JIT/Debug+Asserts/JITTests/JITTest.NonLazyCompilationStillNeedsStubs' FAILED ******************** Note: Google Test filter = JITTest.NonLazyCompilationStillNeedsStubs [==========] Running 1 test from 1 test case. [----------] Global test environment set-up. [----------] 1 test from JITTest [ RUN ] JITTest.NonLazyCompilationStillNeedsStubs ARMCodeEmitter::emitPseudoInstruction UNREACHABLE executed at /nfs_home/chenwj/test/llvm/lib/Target/ARM/ARMCodeEmitter.cpp:831! 0 libc.so.6 0x402e5000 Stack dump: 0. Running pass 'ARM Machine Code Emitter' on function '@func1' ******************** Testing: 0 .. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90. FAIL: LLVM-Unit :: ExecutionEngine/JIT/Debug+Asserts/JITTests/LazyLoadedJITTest.MaterializableAvailableExternallyFunctionIsntCompiled (5873 of 6030) ******************** TEST 'LLVM-Unit :: ExecutionEngine/JIT/Debug+Asserts/JITTests/LazyLoadedJITTest.MaterializableAvailableExternallyFunctionIsntCompiled' FAILED ******************** Note: Google Test filter = LazyLoadedJITTest.MaterializableAvailableExternallyFunctionIsntCompiled [==========] Running 1 test from 1 test case. [----------] Global test environment set-up. [----------] 1 test from LazyLoadedJITTest [ RUN ] LazyLoadedJITTest.MaterializableAvailableExternallyFunctionIsntCompiled ARMCodeEmitter::emitPseudoInstruction UNREACHABLE executed at /nfs_home/chenwj/test/llvm/lib/Target/ARM/ARMCodeEmitter.cpp:831! 0 libc.so.6 0x402e5000 Stack dump: 0. Running pass 'ARM Machine Code Emitter' on function '@func' ******************** Testing: 0 .. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90. FAIL: LLVM-Unit :: ExecutionEngine/JIT/Debug+Asserts/JITTests/LazyLoadedJITTest.EagerCompiledRecursionThroughGhost (5874 of 6030) ******************** TEST 'LLVM-Unit :: ExecutionEngine/JIT/Debug+Asserts/JITTests/LazyLoadedJITTest.EagerCompiledRecursionThroughGhost' FAILED ******************** Note: Google Test filter = LazyLoadedJITTest.EagerCompiledRecursionThroughGhost [==========] Running 1 test from 1 test case. [----------] Global test environment set-up. [----------] 1 test from LazyLoadedJITTest [ RUN ] LazyLoadedJITTest.EagerCompiledRecursionThroughGhost ARMCodeEmitter::emitPseudoInstruction UNREACHABLE executed at /nfs_home/chenwj/test/llvm/lib/Target/ARM/ARMCodeEmitter.cpp:831! 0 libc.so.6 0x402e5000 Stack dump: 0. Running pass 'ARM Machine Code Emitter' on function '@recur1' ******************** Testing: 0 .. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90. FAIL: LLVM-Unit :: ExecutionEngine/JIT/Debug+Asserts/JITTests/MultiJitTest.EagerMode (5875 of 6030) ******************** TEST 'LLVM-Unit :: ExecutionEngine/JIT/Debug+Asserts/JITTests/MultiJitTest.EagerMode' FAILED ******************** Note: Google Test filter = MultiJitTest.EagerMode [==========] Running 1 test from 1 test case. [----------] Global test environment set-up. [----------] 1 test from MultiJitTest [ RUN ] MultiJitTest.EagerMode ARMCodeEmitter::emitPseudoInstruction UNREACHABLE executed at /nfs_home/chenwj/test/llvm/lib/Target/ARM/ARMCodeEmitter.cpp:831! 0 libc.so.6 0x402e5000 Stack dump: 0. Running pass 'ARM Machine Code Emitter' on function '@foo1' ******************** Testing: 0 .. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90. FAIL: LLVM-Unit :: ExecutionEngine/JIT/Debug+Asserts/JITTests/MultiJitTest.JitPool (5876 of 6030) ******************** TEST 'LLVM-Unit :: ExecutionEngine/JIT/Debug+Asserts/JITTests/MultiJitTest.JitPool' FAILED ******************** Note: Google Test filter = MultiJitTest.JitPool [==========] Running 1 test from 1 test case. [----------] Global test environment set-up. [----------] 1 test from MultiJitTest [ RUN ] MultiJitTest.JitPool ARMCodeEmitter::emitPseudoInstruction UNREACHABLE executed at /nfs_home/chenwj/test/llvm/lib/Target/ARM/ARMCodeEmitter.cpp:831! 0 libc.so.6 0x402e5000 Stack dump: 0. Running pass 'ARM Machine Code Emitter' on function '@foo1' ******************** Testing: 0 .. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90. FAIL: LLVM-Unit :: ExecutionEngine/JIT/Debug+Asserts/JITTests/MultiJitTest.LazyMode (5881 of 6030) ******************** TEST 'LLVM-Unit :: ExecutionEngine/JIT/Debug+Asserts/JITTests/MultiJitTest.LazyMode' FAILED ******************** Note: Google Test filter = MultiJitTest.LazyMode [==========] Running 1 test from 1 test case. [----------] Global test environment set-up. [----------] 1 test from MultiJitTest [ RUN ] MultiJitTest.LazyMode ARMCodeEmitter::emitPseudoInstruction UNREACHABLE executed at /nfs_home/chenwj/test/llvm/lib/Target/ARM/ARMCodeEmitter.cpp:831! 0 libc.so.6 0x402e5000 Stack dump: 0. Running pass 'ARM Machine Code Emitter' on function '@foo1' ******************** Testing: 0 .. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.. Testing Time: 413.30s ******************** Failing Tests (26): LLVM :: CodeGen/Thumb/select.ll LLVM :: ExecutionEngine/2002-12-16-ArgTest.ll LLVM :: ExecutionEngine/2003-01-04-ArgumentBug.ll LLVM :: ExecutionEngine/2003-01-04-LoopTest.ll LLVM :: ExecutionEngine/2003-01-15-AlignmentTest.ll LLVM :: ExecutionEngine/2003-05-06-LivenessClobber.ll LLVM :: ExecutionEngine/2003-05-07-ArgumentTest.ll LLVM :: ExecutionEngine/2003-08-21-EnvironmentTest.ll LLVM :: ExecutionEngine/2003-10-18-PHINode-ConstantExpr-CondCode-Failure.ll LLVM :: ExecutionEngine/hello.ll LLVM :: ExecutionEngine/hello2.ll LLVM :: ExecutionEngine/simpletest.ll LLVM :: ExecutionEngine/stubs.ll LLVM :: ExecutionEngine/test-fp.ll LLVM :: ExecutionEngine/test-loadstore.ll LLVM :: ExecutionEngine/test-malloc.ll LLVM-Unit :: ExecutionEngine/JIT/Debug+Asserts/JITTests/JITTest.AvailableExternallyFunctionIsntCompiled LLVM-Unit :: ExecutionEngine/JIT/Debug+Asserts/JITTests/JITTest.FarCallToKnownFunction LLVM-Unit :: ExecutionEngine/JIT/Debug+Asserts/JITTests/JITTest.ModuleDeletion LLVM-Unit :: ExecutionEngine/JIT/Debug+Asserts/JITTests/JITTest.NonLazyCompilationStillNeedsStubs LLVM-Unit :: ExecutionEngine/JIT/Debug+Asserts/JITTests/JITTest.NonLazyLeaksNoStubs LLVM-Unit :: ExecutionEngine/JIT/Debug+Asserts/JITTests/LazyLoadedJITTest.EagerCompiledRecursionThroughGhost LLVM-Unit :: ExecutionEngine/JIT/Debug+Asserts/JITTests/LazyLoadedJITTest.MaterializableAvailableExternallyFunctionIsntCompiled LLVM-Unit :: ExecutionEngine/JIT/Debug+Asserts/JITTests/MultiJitTest.EagerMode LLVM-Unit :: ExecutionEngine/JIT/Debug+Asserts/JITTests/MultiJitTest.JitPool LLVM-Unit :: ExecutionEngine/JIT/Debug+Asserts/JITTests/MultiJitTest.LazyMode Expected Passes : 5411 Expected Failures : 45 Unsupported Tests : 548 Unexpected Failures: 26 make[1]: Leaving directory `/nfs_home/chenwj/test/native-build/arm2/test' -------------- next part -------------- llvm[0]: Running test suite make[1]: Entering directory `/nfs_home/chenwj/test/native-build/arm2/test' Making a new site.exp file... Making LLVM 'lit.site.cfg' file... Making LLVM unittest 'lit.site.cfg' file... ( ulimit -t 600 ; ulimit -d 512000 ; ulimit -m 512000 ; ulimit -v 1024000 ; \ /nfs_home/chenwj/test/llvm-131466-fix/utils/lit/lit.py -s -v . ) -- Testing: 6030 tests, 4 threads -- Testing: 0 .. 10.. 20. FAIL: LLVM :: CodeGen/Thumb/select.ll (1650 of 6030) ******************** TEST 'LLVM :: CodeGen/Thumb/select.ll' FAILED ******************** Script: -- /nfs_home/chenwj/test/native-build/arm2/Debug+Asserts/bin/llc < /nfs_home/chenwj/test/llvm-131466-fix/test/CodeGen/Thumb/select.ll -march=thumb | grep beq | /nfs_home/chenwj/test/native-build/arm2/Debug+Asserts/bin/count 1 /nfs_home/chenwj/test/native-build/arm2/Debug+Asserts/bin/llc < /nfs_home/chenwj/test/llvm-131466-fix/test/CodeGen/Thumb/select.ll -march=thumb | grep bgt | /nfs_home/chenwj/test/native-build/arm2/Debug+Asserts/bin/count 1 /nfs_home/chenwj/test/native-build/arm2/Debug+Asserts/bin/llc < /nfs_home/chenwj/test/llvm-131466-fix/test/CodeGen/Thumb/select.ll -march=thumb | grep blt | /nfs_home/chenwj/test/native-build/arm2/Debug+Asserts/bin/count 3 /nfs_home/chenwj/test/native-build/arm2/Debug+Asserts/bin/llc < /nfs_home/chenwj/test/llvm-131466-fix/test/CodeGen/Thumb/select.ll -march=thumb | grep ble | /nfs_home/chenwj/test/native-build/arm2/Debug+Asserts/bin/count 1 /nfs_home/chenwj/test/native-build/arm2/Debug+Asserts/bin/llc < /nfs_home/chenwj/test/llvm-131466-fix/test/CodeGen/Thumb/select.ll -march=thumb | grep bls | /nfs_home/chenwj/test/native-build/arm2/Debug+Asserts/bin/count 1 /nfs_home/chenwj/test/native-build/arm2/Debug+Asserts/bin/llc < /nfs_home/chenwj/test/llvm-131466-fix/test/CodeGen/Thumb/select.ll -march=thumb | grep bhi | /nfs_home/chenwj/test/native-build/arm2/Debug+Asserts/bin/count 1 /nfs_home/chenwj/test/native-build/arm2/Debug+Asserts/bin/llc < /nfs_home/chenwj/test/llvm-131466-fix/test/CodeGen/Thumb/select.ll -mtriple=thumb-apple-darwin | grep __ltdf2 -- Exit Code: 1 Command Output (stderr): -- Expected 3 lines, got 1. -- ******************** Testing: 0 .. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.. Testing Time: 398.06s ******************** Failing Tests (1): LLVM :: CodeGen/Thumb/select.ll Expected Passes : 5436 Expected Failures : 45 Unsupported Tests : 548 Unexpected Failures: 1 make[1]: Leaving directory `/nfs_home/chenwj/test/native-build/arm2/test'
Eric Christopher
2011-Aug-08 22:24 UTC
[LLVMdev] sys::getHostTriple failed to recognize ARM correctly
On Jul 29, 2011, at 6:42 AM, 陳韋任 wrote:> Currently, I handcode "Arch = "arm"" to make native compiled LLVM > pass most test cases [2]. Is there a better way to make sys::getHostTriple > handle this situation?Two ways: a) Add support for armv7l to llvm :) b) Pass --host=<arm arch you want>-… when you configure. -eric -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110808/0af5abd4/attachment.html>
Hi, Eric> Two ways: > > a) Add support for armv7l to llvm :) > b) Pass --host=<arm arch you want>-… when you configure.Do you mean both way have to be done, or either way? I don't understand if I ignore option a, which means LLVM does NOT support armv7l right now, how can --host=<arm arch you want> work? Or I misunderstood what you said? Regards, chenwj -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan (R.O.C.) Tel:886-2-2788-3799 #1667
Seemingly Similar Threads
- [LLVMdev] sys::getHostTriple failed to recognize ARM correctly
- [LLVMdev] sys::getHostTriple failed to recognize ARM correctly
- [LLVMdev] sys::getHostTriple failed to recognize ARM correctly
- [LLVMdev] sys::getHostTriple failed to recognize ARM correctly
- [LLVMdev] sys::getHostTriple failed to recognize ARM correctly