summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2010-10-14 23:29:18 +0000
committerJim Grosbach <grosbach@apple.com>2010-10-14 23:29:18 +0000
commit89efff37637de17ddf679f76edd0d1113dee41f7 (patch)
tree7c3f0bd912b3f09e28815008c5662f28d913c4b0 /llvm
parent19c6cb978bed9741e77fc3769f1fd04a57043cd2 (diff)
downloadbcm5719-llvm-89efff37637de17ddf679f76edd0d1113dee41f7.tar.gz
bcm5719-llvm-89efff37637de17ddf679f76edd0d1113dee41f7.zip
Add testcase for RRX and ASRS (which effectively tests MOVs, since those
are just forms of that instruction). llvm-svn: 116538
Diffstat (limited to 'llvm')
-rw-r--r--llvm/test/MC/ARM/simple-encoding.ll8
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/test/MC/ARM/simple-encoding.ll b/llvm/test/MC/ARM/simple-encoding.ll
index a165160aaf8..00522da03ff 100644
--- a/llvm/test/MC/ARM/simple-encoding.ll
+++ b/llvm/test/MC/ARM/simple-encoding.ll
@@ -90,5 +90,13 @@ entry:
ret i32 42405
}
+define i64 @f10(i64 %a) nounwind readnone ssp {
+entry:
+; CHECK: f10
+; CHECK: asrs r1, r1, #1 @ encoding: [0xc1,0x10,0xb0,0xe1]
+; CHECK: rrx r0, r0 @ encoding: [0x60,0x00,0xa0,0xe1]
+ %shr = ashr i64 %a, 1
+ ret i64 %shr
+}
declare void @llvm.trap() nounwind
OpenPOWER on IntegriCloud