https://bugs.llvm.org/show_bug.cgi?id=38038
Bug ID: 38038
Summary: Transformation forms a non-viable shift node.
Product: libraries
Version: trunk
Hardware: Macintosh
OS: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: Scalar Optimizations
Assignee: unassignedb...@nondot.org
Reporter: sca...@apple.com
CC: llvm-bugs@lists.llvm.org
$ cat c.ll
define i8 @crash(half) {
entry:
%1 = bitcast half %0 to i16
%.lobit = lshr i16 %1, 15
%2 = trunc i16 %.lobit to i8
ret i8 %2
}
$ build01/llvm-macosx-x86_64/bin/llc c.ll
Assertion failed: (VT == N1.getValueType() && "Shift operators return type must
be the same as their first arg"), function getNode, file
/Users/arnold/Github/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp, line 4351.
Apparent root cause of https://bugs.swift.org/browse/SR-7763
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs