[LLVMdev] Test failures with 3.4.1

Jim Grosbach grosbach at apple.com
Thu Apr 10 18:22:20 PDT 2014


FWIW, these sorts of failures are exactly the sort of thing I’m hoping to prevent via making CPU auto detection in LLC opt-in rather than the default. They’re simple to fix, but often horrible to diagnose.

-Jim

On Apr 10, 2014, at 9:05 AM, Andrea Di Biagio <andrea.dibiagio at gmail.com> wrote:

> Hi Sylvestre,
> 
> I think you are missing revision 195971.
> https://llvm.org/viewvc/llvm-project?view=revision&revision=195971
> That revision changed some tests (all the tests that are failing for
> you) introducing a specific -mcpu flag to constraint the instruction
> selection.
> 
> For example, test vec_shift4.ll has been modified by r195971
> introducing flag '-mcpu=corei7'.
> In your case, test vec_shift4.ll fails because it finds an unexpected
> ' vpsllvd' instead of 'pslld'.  ' vpsllvd' is AVX2 (which might imply
> that your host is probably AVX2).
> 
> In conclusion, in my opinion if you integrate r195971 then all the
> failures should disappear.
> 
> Cheers,
> Andrea
> 
> On Thu, Apr 10, 2014 at 4:42 PM, Sylvestre Ledru <sylvestre at debian.org> wrote:
>> On 10/04/2014 16:32, Tom Stellard wrote:
>>> On Wed, Apr 09, 2014 at 06:47:19PM +0200, Sylvestre Ledru wrote:
>>>> Hello,
>>>> 
>>>> Trying the 3.4.1 branch, I get following tests failing:
>>>>    LLVM :: CodeGen/X86/2009-06-05-VZextByteShort.ll
>>>>    LLVM :: CodeGen/X86/fma4-intrinsics-x86_64.ll
>>>>    LLVM :: CodeGen/X86/fp-fast.ll
>>>>    LLVM :: CodeGen/X86/vec_shift4.ll
>>>>    LLVM :: CodeGen/X86/vshift-4.ll
>>>> 
>>>> I am testing on a Debian testing 64b.
>>>> Does it ring a bell?
>>>> 
>>> Can anyone else reproduce this?  These tests pass for me on 64-bit
>>> Fedora.  Sylvestre, are you able to post the output from these failing
>>> tests?
>> Sure. Sorry for not doing that sooner.
>> 
>> I don't think they are related to any of the patches I apply in the
>> packages:
>> 
>> FAIL: LLVM :: CodeGen/X86/2009-06-05-VZextByteShort.ll (3502 of 9333)
>> ******************** TEST 'LLVM ::
>> CodeGen/X86/2009-06-05-VZextByteShort.ll' FAILED ********************
>> Script:
>> --
>> /home/sylvestre/dev/debian/pkg-llvm/llvm-toolchain/branches/llvm-toolchain-3.4-3.4+205824/build-llvm/Release/bin/llc
>> <
>> /home/sylvestre/dev/debian/pkg-llvm/llvm-toolchain/branches/llvm-toolchain-3.4-3.4+205824/test/CodeGen/X86/2009-06-05-VZextByteShort.ll
>> -march=x86 -mattr=+mmx,+sse2 >
>> /home/sylvestre/dev/debian/pkg-llvm/llvm-toolchain/branches/llvm-toolchain-3.4-3.4+205824/build-llvm/test/CodeGen/X86/Output/2009-06-05-VZextByteShort.ll.tmp1
>> grep movzwl
>> /home/sylvestre/dev/debian/pkg-llvm/llvm-toolchain/branches/llvm-toolchain-3.4-3.4+205824/build-llvm/test/CodeGen/X86/Output/2009-06-05-VZextByteShort.ll.tmp1
>> |
>> /home/sylvestre/dev/debian/pkg-llvm/llvm-toolchain/branches/llvm-toolchain-3.4-3.4+205824/build-llvm/Release/bin/count
>> 2
>> grep movzbl
>> /home/sylvestre/dev/debian/pkg-llvm/llvm-toolchain/branches/llvm-toolchain-3.4-3.4+205824/build-llvm/test/CodeGen/X86/Output/2009-06-05-VZextByteShort.ll.tmp1
>> |
>> /home/sylvestre/dev/debian/pkg-llvm/llvm-toolchain/branches/llvm-toolchain-3.4-3.4+205824/build-llvm/Release/bin/count
>> 1
>> grep movd
>> /home/sylvestre/dev/debian/pkg-llvm/llvm-toolchain/branches/llvm-toolchain-3.4-3.4+205824/build-llvm/test/CodeGen/X86/Output/2009-06-05-VZextByteShort.ll.tmp1
>> |
>> /home/sylvestre/dev/debian/pkg-llvm/llvm-toolchain/branches/llvm-toolchain-3.4-3.4+205824/build-llvm/Release/bin/count
>> 4
>> --
>> Exit Code: 1
>> 
>> Command Output (stderr):
>> --
>> Expected 2 lines, got 0.
>> 
>> --
>> 
>> ********************
>> FAIL: LLVM :: CodeGen/X86/fma4-intrinsics-x86_64.ll (4073 of 9333)
>> ******************** TEST 'LLVM ::
>> CodeGen/X86/fma4-intrinsics-x86_64.ll' FAILED ********************
>> Script:
>> --
>> /home/sylvestre/dev/debian/pkg-llvm/llvm-toolchain/branches/llvm-toolchain-3.4-3.4+205824/build-llvm/Release/bin/llc
>> <
>> /home/sylvestre/dev/debian/pkg-llvm/llvm-toolchain/branches/llvm-toolchain-3.4-3.4+205824/test/CodeGen/X86/fma4-intrinsics-x86_64.ll
>> -mtriple=x86_64-unknown-unknown -march=x86-64 -mattr=+avx,+fma4 |
>> /home/sylvestre/dev/debian/pkg-llvm/llvm-toolchain/branches/llvm-toolchain-3.4-3.4+205824/build-llvm/Release/bin/FileCheck
>> /home/sylvestre/dev/debian/pkg-llvm/llvm-toolchain/branches/llvm-toolchain-3.4-3.4+205824/test/CodeGen/X86/fma4-intrinsics-x86_64.ll
>> /home/sylvestre/dev/debian/pkg-llvm/llvm-toolchain/branches/llvm-toolchain-3.4-3.4+205824/build-llvm/Release/bin/llc
>> <
>> /home/sylvestre/dev/debian/pkg-llvm/llvm-toolchain/branches/llvm-toolchain-3.4-3.4+205824/test/CodeGen/X86/fma4-intrinsics-x86_64.ll
>> -mtriple=x86_64-unknown-unknown -mcpu=bdver2 -mattr=+avx,-fma |
>> /home/sylvestre/dev/debian/pkg-llvm/llvm-toolchain/branches/llvm-toolchain-3.4-3.4+205824/build-llvm/Release/bin/FileCheck
>> /home/sylvestre/dev/debian/pkg-llvm/llvm-toolchain/branches/llvm-toolchain-3.4-3.4+205824/test/CodeGen/X86/fma4-intrinsics-x86_64.ll
>> --
>> Exit Code: 1
>> 
>> Command Output (stderr):
>> --
>> /home/sylvestre/dev/debian/pkg-llvm/llvm-toolchain/branches/llvm-toolchain-3.4-3.4+205824/test/CodeGen/X86/fma4-intrinsics-x86_64.ll:6:11:
>> error: expected string not found in input
>> ; CHECK: vfmaddss
>>          ^
>> <stdin>:1:2: note: scanning from here
>> .file "<stdin>"
>> ^
>> <stdin>:3:22: note: possible intended match here
>> .globl test_x86_fma_vfmadd_ss
>>                     ^
>> 
>> --
>> 
>> ********************
>> FAIL: LLVM :: CodeGen/X86/fp-fast.ll (4097 of 9333)
>> ******************** TEST 'LLVM :: CodeGen/X86/fp-fast.ll' FAILED
>> ********************
>> Script:
>> --
>> /home/sylvestre/dev/debian/pkg-llvm/llvm-toolchain/branches/llvm-toolchain-3.4-3.4+205824/build-llvm/Release/bin/llc
>> -march=x86-64 -mattr=+avx,-fma4 -mtriple=x86_64-apple-darwin
>> -enable-unsafe-fp-math <
>> /home/sylvestre/dev/debian/pkg-llvm/llvm-toolchain/branches/llvm-toolchain-3.4-3.4+205824/test/CodeGen/X86/fp-fast.ll
>> |
>> /home/sylvestre/dev/debian/pkg-llvm/llvm-toolchain/branches/llvm-toolchain-3.4-3.4+205824/build-llvm/Release/bin/FileCheck
>> /home/sylvestre/dev/debian/pkg-llvm/llvm-toolchain/branches/llvm-toolchain-3.4-3.4+205824/test/CodeGen/X86/fp-fast.ll
>> --
>> Exit Code: 1
>> 
>> Command Output (stderr):
>> --
>> /home/sylvestre/dev/debian/pkg-llvm/llvm-toolchain/branches/llvm-toolchain-3.4-3.4+205824/test/CodeGen/X86/fp-fast.ll:65:10:
>> error: expected string not found in input
>> ; CHECK: xorps
>>         ^
>> <stdin>:78:2: note: scanning from here
>> .align 4, 0x90
>> ^
>> <stdin>:83:3: note: possible intended match here
>> vmovss LCPI5_0(%rip), %xmm1
>>  ^
>> /home/sylvestre/dev/debian/pkg-llvm/llvm-toolchain/branches/llvm-toolchain-3.4-3.4+205824/test/CodeGen/X86/fp-fast.ll:77:10:
>> error: expected string not found in input
>> ; CHECK: xorps
>>         ^
>> <stdin>:95:2: note: scanning from here
>> .align 4, 0x90
>> ^
>> <stdin>:100:3: note: possible intended match here
>> vmovss LCPI6_0(%rip), %xmm1
>>  ^
>> 
>> --
>> 
>> ********************
>> FAIL: LLVM :: CodeGen/X86/vec_shift4.ll (4781 of 9333)
>> ******************** TEST 'LLVM :: CodeGen/X86/vec_shift4.ll' FAILED
>> ********************
>> Script:
>> --
>> /home/sylvestre/dev/debian/pkg-llvm/llvm-toolchain/branches/llvm-toolchain-3.4-3.4+205824/build-llvm/Release/bin/llc
>> <
>> /home/sylvestre/dev/debian/pkg-llvm/llvm-toolchain/branches/llvm-toolchain-3.4-3.4+205824/test/CodeGen/X86/vec_shift4.ll
>> -march=x86 -mattr=+sse4.1 |
>> /home/sylvestre/dev/debian/pkg-llvm/llvm-toolchain/branches/llvm-toolchain-3.4-3.4+205824/build-llvm/Release/bin/FileCheck
>> /home/sylvestre/dev/debian/pkg-llvm/llvm-toolchain/branches/llvm-toolchain-3.4-3.4+205824/test/CodeGen/X86/vec_shift4.ll
>> --
>> Exit Code: 1
>> 
>> Command Output (stderr):
>> --
>> /home/sylvestre/dev/debian/pkg-llvm/llvm-toolchain/branches/llvm-toolchain-3.4-3.4+205824/test/CodeGen/X86/vec_shift4.ll:6:10:
>> error: expected string not found in input
>> ; CHECK: pslld
>>         ^
>> <stdin>:1:2: note: scanning from here
>> .file "<stdin>"
>> ^
>> <stdin>:8:3: note: possible intended match here
>> vpsllvd %xmm1, %xmm0, %xmm0
>>  ^
>> 
>> --
>> 
>> ********************
>> FAIL: LLVM :: CodeGen/X86/vshift-4.ll (4843 of 9333)
>> ******************** TEST 'LLVM :: CodeGen/X86/vshift-4.ll' FAILED
>> ********************
>> Script:
>> --
>> /home/sylvestre/dev/debian/pkg-llvm/llvm-toolchain/branches/llvm-toolchain-3.4-3.4+205824/build-llvm/Release/bin/llc
>> <
>> /home/sylvestre/dev/debian/pkg-llvm/llvm-toolchain/branches/llvm-toolchain-3.4-3.4+205824/test/CodeGen/X86/vshift-4.ll
>> -march=x86 -mattr=+sse2 |
>> /home/sylvestre/dev/debian/pkg-llvm/llvm-toolchain/branches/llvm-toolchain-3.4-3.4+205824/build-llvm/Release/bin/FileCheck
>> /home/sylvestre/dev/debian/pkg-llvm/llvm-toolchain/branches/llvm-toolchain-3.4-3.4+205824/test/CodeGen/X86/vshift-4.ll
>> --
>> Exit Code: 1
>> 
>> Command Output (stderr):
>> --
>> /home/sylvestre/dev/debian/pkg-llvm/llvm-toolchain/branches/llvm-toolchain-3.4-3.4+205824/test/CodeGen/X86/vshift-4.ll:20:10:
>> error: expected string not found in input
>> ; CHECK: shll
>>         ^
>> <stdin>:21:10: note: scanning from here
>> shift1b: # @shift1b
>>         ^
>> <stdin>:21:13: note: possible intended match here
>> shift1b: # @shift1b
>> 
>> _______________________________________________
>> LLVM Developers mailing list
>> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev





More information about the llvm-dev mailing list