[llvm-bugs] [Bug 41926] New: select statement crashes wasm64 backend
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri May 17 12:51:30 PDT 2019
https://bugs.llvm.org/show_bug.cgi?id=41926
Bug ID: 41926
Summary: select statement crashes wasm64 backend
Product: libraries
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: release blocker
Priority: P
Component: Backend: WebAssembly
Assignee: unassignedbugs at nondot.org
Reporter: husseydevin at gmail.com
CC: llvm-bugs at lists.llvm.org
On LLVM versions 7.0 and later, this code causes a crash on the wasm64
backend.:
define i32 @foo(i32){
%2 = icmp sgt i32 %0, 15
%3 = select i1 %2, i32 0, i32 3
ret i32 %3
}
llc --mtriple=wasm64 test.ll
LLVM ERROR: Cannot select: 0x4f1608: i32 = select 0x4f1810, Constant:i32<0>,
Constant:i32<3>
0x4f1810: i64 = and 0x4f1740, Constant:i64<1>
0x4f1740: i64 = any_extend 0x4f1468
0x4f1468: i32 = WebAssemblyISD::ARGUMENT TargetConstant:i32<0>
0x4f1400: i32 = TargetConstant<0>
0x4f17a8: i64 = Constant<1>
0x4f1538: i32 = Constant<0>
0x4f15a0: i32 = Constant<3>
In function: foo
Ubuntu 18.04 LTS amd64 on WSL
Windows 10 Home 1903 x64
Dell Precision T3400
2.80 GHz Intel Core 2 Duo E7400
4 GB RAM
Known affected versions:
version 7.1.0~svn353565-1~exp1~20190406090509.61 from the
llvm-toolchain-bionic-7 apt repo
version 8.0.0 from releases.llvm.org
version 9.0.0-svn360862-1~exp1+0~20190516072237.984~1.gbp398e29 from the
llvm-toolchain-bionic apt repo
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190517/bfd3bae2/attachment.html>
More information about the llvm-bugs
mailing list