[LLVMbugs] [Bug 10451] New: [AVX] another bitcast / 'cannot select' error
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sat Jul 23 00:32:00 PDT 2011
http://llvm.org/bugs/show_bug.cgi?id=10451
Summary: [AVX] another bitcast / 'cannot select' error
Product: new-bugs
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: matt at pharr.org
CC: llvmbugs at cs.uiuc.edu
With the following input, if I run the following with top-of-tree (i.e.
including the recent fix for bug 10440), I get the following error.
declare <8 x float> @llvm.x86.avx.maskload.ps.256(i8*, <8 x float>) nounwind
readonly
declare void @llvm.x86.avx.maskstore.ps.256(i8*, <8 x float>, <8 x float>)
nounwind
define void @f_f([0 x float]* %RET, [0 x float]* %aFOO) nounwind {
allocas:
%base2i8 = bitcast [0 x float]* %aFOO to i8*
%floatval.i = tail call <8 x float> @llvm.x86.avx.maskload.ps.256(i8*
%base2i8, <8 x float> <float 0xFFFFFFFFE0000000, float 0xFFFFFFFFE0000000,
float 0xFFFFFFFFE0000000, float 0xFFFFFFFFE0000000, float 0xFFFFFFFFE0000000,
float 0xFFFFFFFFE0000000, float 0xFFFFFFFFE0000000, float 0xFFFFFFFFE0000000>)
nounwind
%binop = fadd <8 x float> %floatval.i, %floatval.i
%ptr.i = bitcast [0 x float]* %RET to i8*
tail call void @llvm.x86.avx.maskstore.ps.256(i8* %ptr.i, <8 x float> <float
0xFFFFFFFFE0000000, float 0xFFFFFFFFE0000000, float 0xFFFFFFFFE0000000, float
0xFFFFFFFFE0000000, float 0xFFFFFFFFE0000000, float 0xFFFFFFFFE0000000, float
0xFFFFFFFFE0000000, float 0xFFFFFFFFE0000000>, <8 x float> %binop) nounwind
ret void
}
% llc bug.ll -o - -mcpu=corei7-avx -mattr=+avx
.section __TEXT,__text,regular,pure_instructions
LLVM ERROR: Cannot select: 0x7f8b51834d10: v8f32 = bitcast 0x7f8b51834c10
[ID=10]
0x7f8b51834c10: v8i32 = BUILD_VECTOR 0x7f8b51834b10, 0x7f8b51834b10,
0x7f8b51834b10, 0x7f8b51834b10, 0x7f8b51834b10, 0x7f8b51834b10, 0x7f8b51834b10,
0x7f8b51834b10 [ID=9]
0x7f8b51834b10: i32 = TargetConstant<-1> [ID=6]
0x7f8b51834b10: i32 = TargetConstant<-1> [ID=6]
0x7f8b51834b10: i32 = TargetConstant<-1> [ID=6]
0x7f8b51834b10: i32 = TargetConstant<-1> [ID=6]
0x7f8b51834b10: i32 = TargetConstant<-1> [ID=6]
0x7f8b51834b10: i32 = TargetConstant<-1> [ID=6]
0x7f8b51834b10: i32 = TargetConstant<-1> [ID=6]
0x7f8b51834b10: i32 = TargetConstant<-1> [ID=6]
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list