llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

[AVX-512] llc fails with with setcce

Open Vsevolod-Livinskij opened this issue 10 years ago • 1 comments

Bugzilla Link 26232
Resolution FIXED
Resolved on Feb 01, 2016 02:22
Version 3.8
OS Linux
Attachments Reproducer.
CC @dbabokin,@delena,@hfinkel,@igor-breger,@Vsevolod-Livinskij

Extended Description

When I compile with llc -mcpu=knl -march=x86 reproducer.ll it fails with error, while with -mcpu=core-avx2 it works fine.

LLVM ERROR: Cannot select: t31: i1 = setcce undef:i32, Constant:i32<0>, t44:1, setlt:ch t26: i32 = undef t25: i32 = Constant<0> t44: i32,i32 = X86ISD::SUB undef:i32, Constant:i32<65536> t26: i32 = undef t24: i32 = Constant<65536> In function: f_f

llc --version LLVM (http://llvm.org/): LLVM version 3.8.0 Optimized build with assertions. Built Jan 20 2016 (07:57:05). Default target: x86_64-unknown-linux-gnu Host CPU: haswell

clang version 3.8.0 (branches/release_38)

Vsevolod-Livinskij avatar Jan 21 '16 15:01 Vsevolod-Livinskij

fixed in r259342

http://reviews.llvm.org/D16752

igor-breger avatar Feb 01 '16 10:02 igor-breger