[llvm-bugs] [Bug 34246] New: [PowerPC] failed to match nor+and to andc?
via llvm-bugs
llvm-bugs at lists.llvm.org
Sun Aug 20 08:06:09 PDT 2017
https://bugs.llvm.org/show_bug.cgi?id=34246
Bug ID: 34246
Summary: [PowerPC] failed to match nor+and to andc?
Product: libraries
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: Backend: PowerPC
Assignee: unassignedbugs at nondot.org
Reporter: spatel+llvm at rotateright.com
CC: llvm-bugs at lists.llvm.org
This example is derived from https://reviews.llvm.org/D36840 :
$ cat xxlandc.ll
define <4 x i32> @cmp_sel_0_or_1_vec(<4 x i32> %x, <4 x i32> %y) {
%cond = icmp eq <4 x i32> %x, %y
%sext = sext <4 x i1> %cond to <4 x i32>
%add = add <4 x i32> %sext, <i32 1, i32 1, i32 1, i32 1>
ret <4 x i32> %add
}
$ ./llc -o - xxlandc.ll -mtriple=powerpc64le
vcmpequw 2, 2, 3
vspltisw 19, 1
xxlnor 0, 34, 34
xxland 34, 0, 51
blr
Or with old PPC64 + Altivec:
vcmpequw 2, 2, 3
vspltisw 19, 1
vnot 2, 2
vand 2, 2, 19
This should match to xxlandc / vandc?
--
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/20170820/5b45aff6/attachment.html>
More information about the llvm-bugs
mailing list