mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-28 19:31:58 +00:00
[AArch64 NEON] Replace fpimm with fpz32 for floating compare with zero.
This is a small change to be strict. Just want get pattern safer. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196889 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3171b8df48
commit
cbb73d1b91
@ -776,21 +776,21 @@ multiclass NeonI_fpcmpz_sizes<bit u, bit size, bits<5> opcode,
|
||||
(outs VPR64:$Rd), (ins VPR64:$Rn, fpz32:$FPImm),
|
||||
asmop # "\t$Rd.2s, $Rn.2s, $FPImm",
|
||||
[(set (v2i32 VPR64:$Rd),
|
||||
(v2i32 (Neon_cmpz (v2f32 VPR64:$Rn), (f32 fpimm:$FPImm), CC)))],
|
||||
(v2i32 (Neon_cmpz (v2f32 VPR64:$Rn), (f32 fpz32:$FPImm), CC)))],
|
||||
NoItinerary>;
|
||||
|
||||
def _4S : NeonI_2VMisc<0b1, u, {size, 0b0}, opcode,
|
||||
(outs VPR128:$Rd), (ins VPR128:$Rn, fpz32:$FPImm),
|
||||
asmop # "\t$Rd.4s, $Rn.4s, $FPImm",
|
||||
[(set (v4i32 VPR128:$Rd),
|
||||
(v4i32 (Neon_cmpz (v4f32 VPR128:$Rn), (f32 fpimm:$FPImm), CC)))],
|
||||
(v4i32 (Neon_cmpz (v4f32 VPR128:$Rn), (f32 fpz32:$FPImm), CC)))],
|
||||
NoItinerary>;
|
||||
|
||||
def _2D : NeonI_2VMisc<0b1, u, {size, 0b1}, opcode,
|
||||
(outs VPR128:$Rd), (ins VPR128:$Rn, fpz32:$FPImm),
|
||||
asmop # "\t$Rd.2d, $Rn.2d, $FPImm",
|
||||
[(set (v2i64 VPR128:$Rd),
|
||||
(v2i64 (Neon_cmpz (v2f64 VPR128:$Rn), (f32 fpimm:$FPImm), CC)))],
|
||||
(v2i64 (Neon_cmpz (v2f64 VPR128:$Rn), (f32 fpz32:$FPImm), CC)))],
|
||||
NoItinerary>;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user