http://llvm.org/bugs/show_bug.cgi?id=19680
Bug ID: 19680
Summary: [ARM64] CSINC is not generated when there is ZEXT
between SETCC and ADD
Product: new-bugs
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: new bugs
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
For exmaple:
define i64 @foo19(i64 %a, i64 %b, i64 %c) {
entry:
; CHECK-LABEL: foo19:
; CHECK: csinc x0, x2, x2
; CHECK-NOT: add
%cmp = icmp ult i64 %a, %b
%inc = zext i1 %cmp to i64
%inc.c = add i64 %inc, %c
ret i64 %inc.c
}
Currently, it emits:
cmp x0, x1
csinc w8, wzr, wzr, hs
add x0, x2, w8, uxtw
ret
We expect:
cmp x0, x1
csinc x0, x2, x2, cs
ret
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs