mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
36280bde58
Redirect the output of llc to /dev/null. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@199329 91177308-0d34-0410-b5e6-96231b3b80d8
24 lines
1.1 KiB
LLVM
24 lines
1.1 KiB
LLVM
; RUN: llc < %s -mtriple=x86_64-unknown-linux-gnu -mattr=sse2 -mcpu=corei7 -o /dev/null
|
|
|
|
; Revision 199135 introduced a wrong check in method
|
|
; DAGCombiner::SimplifyVBinOp in an attempt to refactor some code
|
|
; using the new method 'BuildVectorSDNode::isConstant' when possible.
|
|
;
|
|
; However the modified code in method SimplifyVBinOp now wrongly
|
|
; checks that the operands of a vector bin-op are both constants.
|
|
;
|
|
; With that wrong change, this test started failing because of a
|
|
; 'fatal error in the backend':
|
|
; Cannot select: 0x2e329d0: v4i32 = BUILD_VECTOR 0x2e2ea00, 0x2e2ea00, 0x2e2ea00, 0x2e2ea00
|
|
; 0x2e2ea00: i32 = Constant<1> [ID=4]
|
|
; 0x2e2ea00: i32 = Constant<1> [ID=4]
|
|
; 0x2e2ea00: i32 = Constant<1> [ID=4]
|
|
; 0x2e2ea00: i32 = Constant<1> [ID=4]
|
|
|
|
define <8 x i32> @reduced_test_case() {
|
|
%Shuff = shufflevector <8 x i32> zeroinitializer, <8 x i32> zeroinitializer, <8 x i32> <i32 1, i32 3, i32 undef, i32 7, i32 9, i32 11, i32 13, i32 15>
|
|
%B23 = sub <8 x i32> %Shuff, <i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1>
|
|
ret <8 x i32> %B23
|
|
}
|
|
|