summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2011-08-19 22:19:48 +0000
committerJim Grosbach <grosbach@apple.com>2011-08-19 22:19:48 +0000
commit066e9ec1e474ba04fcccbdf4055c73ef74c83dd4 (patch)
tree657efa6641b06ab544d8cbff7016680380671988 /llvm/lib
parent58ce352d329835e6ceedb39b5d9ca30a9c143a35 (diff)
downloadbcm5719-llvm-066e9ec1e474ba04fcccbdf4055c73ef74c83dd4.tar.gz
bcm5719-llvm-066e9ec1e474ba04fcccbdf4055c73ef74c83dd4.zip
Update tests.
llvm-svn: 138116
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/ARM/ARMInstrThumb.td4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Target/ARM/ARMInstrThumb.td b/llvm/lib/Target/ARM/ARMInstrThumb.td
index 9163629da14..8da7be05d40 100644
--- a/llvm/lib/Target/ARM/ARMInstrThumb.td
+++ b/llvm/lib/Target/ARM/ARMInstrThumb.td
@@ -1114,6 +1114,10 @@ def tRSB : // A8.6.141
"rsb", "\t$Rd, $Rn, #0",
[(set tGPR:$Rd, (ineg tGPR:$Rn))]>;
+def : InstAlias<"neg${s}${p} $Rd, $Rm",
+ (tRSB tGPR:$Rd, CPSR, tGPR:$Rm, pred:$p)>,
+ Requires<[IsThumb]>;
+
// Subtract with carry register
let Uses = [CPSR] in
def tSBC : // A8.6.151
OpenPOWER on IntegriCloud