diff options
| author | Sjoerd Meijer <sjoerd.meijer@arm.com> | 2018-02-15 10:33:07 +0000 |
|---|---|---|
| committer | Sjoerd Meijer <sjoerd.meijer@arm.com> | 2018-02-15 10:33:07 +0000 |
| commit | 9430c8cd1c6fd35777604a2abc055075bc29d9b8 (patch) | |
| tree | 2f3181f7dcca00fc6c850b4d184ccab989c47ca3 /llvm/lib | |
| parent | 4500001905805be5437cfe21e9f65820202c8966 (diff) | |
| download | bcm5719-llvm-9430c8cd1c6fd35777604a2abc055075bc29d9b8.tar.gz bcm5719-llvm-9430c8cd1c6fd35777604a2abc055075bc29d9b8.zip | |
[ARM] f16 vcmp fixes
This adds f16 VCMP match rules and fixes the test cases.
Differential Revision: https://reviews.llvm.org/D43291
llvm-svn: 325228
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Target/ARM/ARMInstrVFP.td | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/Target/ARM/ARMInstrVFP.td b/llvm/lib/Target/ARM/ARMInstrVFP.td index 6e805475698..9efc4f9c343 100644 --- a/llvm/lib/Target/ARM/ARMInstrVFP.td +++ b/llvm/lib/Target/ARM/ARMInstrVFP.td @@ -594,9 +594,9 @@ def VCMPEZS : ASuI<0b11101, 0b11, 0b0101, 0b11, 0, } def VCMPEZH : AHuI<0b11101, 0b11, 0b0101, 0b11, 0, - (outs), (ins SPR:$Sd), + (outs), (ins HPR:$Sd), IIC_fpCMP16, "vcmpe", ".f16\t$Sd, #0", - []> { + [(arm_cmpfp0 HPR:$Sd, (i32 1))]> { let Inst{3-0} = 0b0000; let Inst{5} = 0; } @@ -622,9 +622,9 @@ def VCMPZS : ASuI<0b11101, 0b11, 0b0101, 0b01, 0, } def VCMPZH : AHuI<0b11101, 0b11, 0b0101, 0b01, 0, - (outs), (ins SPR:$Sd), + (outs), (ins HPR:$Sd), IIC_fpCMP16, "vcmp", ".f16\t$Sd, #0", - []> { + [(arm_cmpfp0 HPR:$Sd, (i32 0))]> { let Inst{3-0} = 0b0000; let Inst{5} = 0; } |

