mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-01 03:33:42 +00:00
ARM64: add pattern for <1 x i64> custom not node.
This should fix PR19367. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@205835 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d640febcc8
commit
7db3c63bb2
@ -2150,6 +2150,7 @@ def : Pat<(ARM64not (v16i8 V128:$Rn)), (NOTv16i8 V128:$Rn)>;
|
||||
def : Pat<(ARM64not (v4i16 V64:$Rn)), (NOTv8i8 V64:$Rn)>;
|
||||
def : Pat<(ARM64not (v8i16 V128:$Rn)), (NOTv16i8 V128:$Rn)>;
|
||||
def : Pat<(ARM64not (v2i32 V64:$Rn)), (NOTv8i8 V64:$Rn)>;
|
||||
def : Pat<(ARM64not (v1i64 V64:$Rn)), (NOTv8i8 V64:$Rn)>;
|
||||
def : Pat<(ARM64not (v4i32 V128:$Rn)), (NOTv16i8 V128:$Rn)>;
|
||||
def : Pat<(ARM64not (v2i64 V128:$Rn)), (NOTv16i8 V128:$Rn)>;
|
||||
|
||||
|
@ -225,3 +225,12 @@ define <1 x i64> @fcmlt_d(<1 x double> %A, <1 x double> %B) nounwind {
|
||||
%mask = sext <1 x i1> %tst to <1 x i64>
|
||||
ret <1 x i64> %mask
|
||||
}
|
||||
|
||||
define <1 x i64> @cmnez_d(<1 x i64> %A) nounwind {
|
||||
; CHECK-LABEL: cmnez_d:
|
||||
; CHECK: cmeq d[[EQ:[0-9]+]], d0, #0
|
||||
; CHECK: not.8b v0, v[[EQ]]
|
||||
%tst = icmp ne <1 x i64> %A, zeroinitializer
|
||||
%mask = sext <1 x i1> %tst to <1 x i64>
|
||||
ret <1 x i64> %mask
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user