diff options
| author | Anton Korobeynikov <asl@math.spbu.ru> | 2012-08-18 13:08:43 +0000 |
|---|---|---|
| committer | Anton Korobeynikov <asl@math.spbu.ru> | 2012-08-18 13:08:43 +0000 |
| commit | 1e28826abe06f32de53298de2a48cb29bef35d3c (patch) | |
| tree | 9d505f8011e9832eecf2f3bcb0103cceb99b4e84 /llvm/lib/Target/ARM | |
| parent | e59bed4e8aa109ff17991ec49cc65648ff90563f (diff) | |
| download | bcm5719-llvm-1e28826abe06f32de53298de2a48cb29bef35d3c.tar.gz bcm5719-llvm-1e28826abe06f32de53298de2a48cb29bef35d3c.zip | |
fp16-to-fp32 conversion instructions are available in Thumb mode as well.
Make sure the generic pattern is used.
llvm-svn: 162170
Diffstat (limited to 'llvm/lib/Target/ARM')
| -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 eb7eaa6c970..7d6692f3072 100644 --- a/llvm/lib/Target/ARM/ARMInstrVFP.td +++ b/llvm/lib/Target/ARM/ARMInstrVFP.td @@ -450,11 +450,11 @@ def VCVTBSH: ASuI<0b11101, 0b11, 0b0011, 0b01, 0, (outs SPR:$Sd), (ins SPR:$Sm), /* FIXME */ IIC_fpCVTHS, "vcvtb", ".f16.f32\t$Sd, $Sm", [/* For disassembly only; pattern left blank */]>; -def : ARMPat<(f32_to_f16 SPR:$a), - (i32 (COPY_TO_REGCLASS (VCVTBSH SPR:$a), GPR))>; +def : Pat<(f32_to_f16 SPR:$a), + (i32 (COPY_TO_REGCLASS (VCVTBSH SPR:$a), GPR))>; -def : ARMPat<(f16_to_f32 GPR:$a), - (VCVTBHS (COPY_TO_REGCLASS GPR:$a, SPR))>; +def : Pat<(f16_to_f32 GPR:$a), + (VCVTBHS (COPY_TO_REGCLASS GPR:$a, SPR))>; def VCVTTHS: ASuI<0b11101, 0b11, 0b0010, 0b11, 0, (outs SPR:$Sd), (ins SPR:$Sm), /* FIXME */ IIC_fpCVTSH, "vcvtt", ".f32.f16\t$Sd, $Sm", |

