Regression

LLVM.CodeGen/X86.fast-isel.ll (from LLVM)

Failing for the past 1 build (Since Failed#7066 )
Took 1.5 sec.

Stacktrace

Script:
--
: 'RUN: at line 1';   /Users/buildslave/jenkins/workspace/clang-stage2-cmake-RgSan/clang-build/bin/llc < /Users/buildslave/jenkins/workspace/clang-stage2-cmake-RgSan/llvm-project/llvm/test/CodeGen/X86/fast-isel.ll -fast-isel -fast-isel-abort=1 -verify-machineinstrs -mtriple=i686-- -mattr=sse2 -no-integrated-as
: 'RUN: at line 2';   /Users/buildslave/jenkins/workspace/clang-stage2-cmake-RgSan/clang-build/bin/llc < /Users/buildslave/jenkins/workspace/clang-stage2-cmake-RgSan/llvm-project/llvm/test/CodeGen/X86/fast-isel.ll -fast-isel -fast-isel-abort=1 -verify-machineinstrs -mtriple=x86_64-apple-darwin10 -no-integrated-as
--
Exit Code: 134

Command Output (stdout):
--
	.text
	.file	"<stdin>"
	.globl	foo                     # -- Begin function foo
	.p2align	4, 0x90
	.type	foo,@function
foo:                                    # @foo
# %bb.0:                                # %entry
	movl	12(%esp), %ecx
	movl	8(%esp), %edx
	movl	4(%esp), %eax
	movl	(%eax), %eax
	movl	(%edx), %edx
	movl	(%ecx), %ecx
	addl	%edx, %eax
	imull	%edx, %eax
	subl	%edx, %eax
	andl	%edx, %eax
	xorl	$3, %eax
	xorl	%edx, %eax
	addl	$2, %eax
	addl	$4, %ecx
	shll	$2, %eax
	addl	%ecx, %eax
	#APP
	hello world
	#NO_APP
	retl
.Lfunc_end0:
	.size	foo, .Lfunc_end0-foo
                                        # -- End function
	.section	.rodata.cst8,"aM",@progbits,8
	.p2align	3               # -- Begin function bar
.LCPI1_0:
	.quad	0x4086180000000000      # double 707
	.text
	.globl	bar
	.p2align	4, 0x90
	.type	bar,@function
bar:                                    # @bar
# %bb.0:                                # %entry
	movl	8(%esp), %eax
	movl	4(%esp), %ecx
	movsd	(%ecx), %xmm0           # xmm0 = mem[0],zero
	movsd	(%eax), %xmm1           # xmm1 = mem[0],zero
	movsd	.LCPI1_0, %xmm2         # xmm2 = mem[0],zero
	addsd	%xmm1, %xmm0
	mulsd	%xmm1, %xmm0
	subsd	%xmm1, %xmm0
	addsd	%xmm2, %xmm0
	movsd	%xmm0, (%eax)
	retl
.Lfunc_end1:
	.size	bar, .Lfunc_end1-bar
                                        # -- End function
	.globl	cast                    # -- Begin function cast
	.p2align	4, 0x90
	.type	cast,@function
cast:                                   # @cast
# %bb.0:                                # %entry
	xorl	%eax, %eax
	retl
.Lfunc_end2:
	.size	cast, .Lfunc_end2-cast
                                        # -- End function
	.globl	ptrtoint_i1             # -- Begin function ptrtoint_i1
	.p2align	4, 0x90
	.type	ptrtoint_i1,@function
ptrtoint_i1:                            # @ptrtoint_i1
# %bb.0:
	movl	8(%esp), %eax
	movl	4(%esp), %ecx
	andb	$1, %cl
	movb	%cl, (%eax)
	retl
.Lfunc_end3:
	.size	ptrtoint_i1, .Lfunc_end3-ptrtoint_i1
                                        # -- End function
	.globl	inttoptr_i1             # -- Begin function inttoptr_i1
	.p2align	4, 0x90
	.type	inttoptr_i1,@function
inttoptr_i1:                            # @inttoptr_i1
# %bb.0:
	movb	4(%esp), %al
	andb	$1, %al
	movzbl	%al, %eax
	retl
.Lfunc_end4:
	.size	inttoptr_i1, .Lfunc_end4-inttoptr_i1
                                        # -- End function
	.globl	ptrtoint_i32            # -- Begin function ptrtoint_i32
	.p2align	4, 0x90
	.type	ptrtoint_i32,@function
ptrtoint_i32:                           # @ptrtoint_i32
# %bb.0:
	movl	4(%esp), %eax
	retl
.Lfunc_end5:
	.size	ptrtoint_i32, .Lfunc_end5-ptrtoint_i32
                                        # -- End function
	.globl	inttoptr_i32            # -- Begin function inttoptr_i32
	.p2align	4, 0x90
	.type	inttoptr_i32,@function
inttoptr_i32:                           # @inttoptr_i32
# %bb.0:
	movl	4(%esp), %eax
	retl
.Lfunc_end6:
	.size	inttoptr_i32, .Lfunc_end6-inttoptr_i32
                                        # -- End function
	.globl	trunc_i32_i8            # -- Begin function trunc_i32_i8
	.p2align	4, 0x90
	.type	trunc_i32_i8,@function
trunc_i32_i8:                           # @trunc_i32_i8
# %bb.0:
	movl	8(%esp), %eax
	movl	4(%esp), %ecx
	movb	%cl, (%eax)
	retl
.Lfunc_end7:
	.size	trunc_i32_i8, .Lfunc_end7-trunc_i32_i8
                                        # -- End function
	.globl	trunc_i16_i8            # -- Begin function trunc_i16_i8
	.p2align	4, 0x90
	.type	trunc_i16_i8,@function
trunc_i16_i8:                           # @trunc_i16_i8
# %bb.0:
	movl	8(%esp), %eax
	movzwl	4(%esp), %ecx
	movb	%cl, (%eax)
	retl
.Lfunc_end8:
	.size	trunc_i16_i8, .Lfunc_end8-trunc_i16_i8
                                        # -- End function
	.globl	shl_i8                  # -- Begin function shl_i8
	.p2align	4, 0x90
	.type	shl_i8,@function
shl_i8:                                 # @shl_i8
# %bb.0:
	movl	12(%esp), %eax
	movb	8(%esp), %cl
	movb	4(%esp), %dl
	shlb	%cl, %dl
	movb	%dl, (%eax)
	retl
.Lfunc_end9:
	.size	shl_i8, .Lfunc_end9-shl_i8
                                        # -- End function
	.globl	mul_i8                  # -- Begin function mul_i8
	.p2align	4, 0x90
	.type	mul_i8,@function
mul_i8:                                 # @mul_i8
# %bb.0:
	movb	4(%esp), %al
	movb	$17, %cl
	mulb	%cl
	movl	8(%esp), %ecx
	movb	%al, (%ecx)
	retl
.Lfunc_end10:
	.size	mul_i8, .Lfunc_end10-mul_i8
                                        # -- End function
	.globl	load_store_i1           # -- Begin function load_store_i1
	.p2align	4, 0x90
	.type	load_store_i1,@function
load_store_i1:                          # @load_store_i1
# %bb.0:
	movl	8(%esp), %eax
	movl	4(%esp), %ecx
	movb	(%ecx), %cl
	andb	$1, %cl
	movb	%cl, (%eax)
	retl
.Lfunc_end11:
	.size	load_store_i1, .Lfunc_end11-load_store_i1
                                        # -- End function
	.globl	freeze_i32              # -- Begin function freeze_i32
	.p2align	4, 0x90
	.type	freeze_i32,@function
freeze_i32:                             # @freeze_i32
	.cfi_startproc
# %bb.0:
	retl
.Lfunc_end12:
	.size	freeze_i32, .Lfunc_end12-freeze_i32
	.cfi_endproc
                                        # -- End function
	.globl	crash_test1             # -- Begin function crash_test1
	.p2align	4, 0x90
	.type	crash_test1,@function
crash_test1:                            # @crash_test1
# %bb.0:
	retl
.Lfunc_end13:
	.size	crash_test1, .Lfunc_end13-crash_test1
                                        # -- End function
	.globl	life                    # -- Begin function life
	.p2align	4, 0x90
	.type	life,@function
life:                                   # @life
# %bb.0:
	pushl	%ebp
	movl	%esp, %ebp
	andl	$-8, %esp
	subl	$8, %esp
	movl	(%esp), %eax
	movl	%ebp, %esp
	popl	%ebp
	retl
.Lfunc_end14:
	.size	life, .Lfunc_end14-life
                                        # -- End function
	.globl	donada                  # -- Begin function donada
	.p2align	4, 0x90
	.type	donada,@function
donada:                                 # @donada
# %bb.0:                                # %entry
	retl
.Lfunc_end15:
	.size	donada, .Lfunc_end15-donada
                                        # -- End function
	.section	".note.GNU-stack","",@progbits

--
Command Output (stderr):
--
/Users/buildslave/jenkins/workspace/clang-stage2-cmake-RgSan/llvm-project/llvm/include/llvm/CodeGen/ReachingDefAnalysis.h:47:43: runtime error: left shift of negative value -1
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /Users/buildslave/jenkins/workspace/clang-stage2-cmake-RgSan/llvm-project/llvm/include/llvm/CodeGen/ReachingDefAnalysis.h:47:43 in 
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace.
Stack dump:
0.	Program arguments: /Users/buildslave/jenkins/workspace/clang-stage2-cmake-RgSan/clang-build/bin/llc -fast-isel -fast-isel-abort=1 -verify-machineinstrs -mtriple=x86_64-apple-darwin10 -no-integrated-as 
1.	Running pass 'Function Pass Manager' on module '<stdin>'.
2.	Running pass 'ReachingDefAnalysis' on function '@foo'
/Users/buildslave/jenkins/workspace/clang-stage2-cmake-RgSan/clang-build/test/CodeGen/X86/Output/fast-isel.ll.script: line 2: 58319 Abort trap: 6           /Users/buildslave/jenkins/workspace/clang-stage2-cmake-RgSan/clang-build/bin/llc -fast-isel -fast-isel-abort=1 -verify-machineinstrs -mtriple=x86_64-apple-darwin10 -no-integrated-as < /Users/buildslave/jenkins/workspace/clang-stage2-cmake-RgSan/llvm-project/llvm/test/CodeGen/X86/fast-isel.ll

--