diff options
author | Joey Gouly <joey.gouly@arm.com> | 2013-08-27 11:24:16 +0000 |
---|---|---|
committer | Joey Gouly <joey.gouly@arm.com> | 2013-08-27 11:24:16 +0000 |
commit | dcfa0f7a408e54f15f0237daf2336df852053c6b (patch) | |
tree | 43306b223d9789023cf36dc852bc5b5c5d0a0fb7 /lib/Target/ARM/ARMInstrVFP.td | |
parent | 9dc1842b3f7bab8304f0dd23c077c6ef3788b6f1 (diff) | |
download | external_llvm-dcfa0f7a408e54f15f0237daf2336df852053c6b.zip external_llvm-dcfa0f7a408e54f15f0237daf2336df852053c6b.tar.gz external_llvm-dcfa0f7a408e54f15f0237daf2336df852053c6b.tar.bz2 |
[ARMv8] Add some negative tests for the recent VFP/NEON instructions.
Fix two issues I found while writing these tests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189341 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMInstrVFP.td')
-rw-r--r-- | lib/Target/ARM/ARMInstrVFP.td | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Target/ARM/ARMInstrVFP.td b/lib/Target/ARM/ARMInstrVFP.td index 3bb4d6f..34d83c6 100644 --- a/lib/Target/ARM/ARMInstrVFP.td +++ b/lib/Target/ARM/ARMInstrVFP.td @@ -669,6 +669,11 @@ multiclass vrint_inst_zrx<string opc, bit op, bit op2> { let Inst{7} = op2; let Inst{16} = op; } + + def : InstAlias<!strconcat("vrint", opc, "$p.f32.f32\t$Sd, $Sm"), + (!cast<Instruction>(NAME#"S") SPR:$Sd, SPR:$Sm, pred:$p)>; + def : InstAlias<!strconcat("vrint", opc, "$p.f64.f64\t$Dd, $Dm"), + (!cast<Instruction>(NAME#"D") DPR:$Dd, DPR:$Dm, pred:$p)>; } defm VRINTZ : vrint_inst_zrx<"z", 0, 1>; |