[llvm-commits] [llvm] r116538 - /llvm/trunk/test/MC/ARM/simple-encoding.ll

Jim Grosbach grosbach at apple.com
Thu Oct 14 16:29:18 PDT 2010


Author: grosbach
Date: Thu Oct 14 18:29:18 2010
New Revision: 116538

URL: http://llvm.org/viewvc/llvm-project?rev=116538&view=rev
Log:
Add testcase for RRX and ASRS (which effectively tests MOVs, since those
are just forms of that instruction).

Modified:
    llvm/trunk/test/MC/ARM/simple-encoding.ll

Modified: llvm/trunk/test/MC/ARM/simple-encoding.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/ARM/simple-encoding.ll?rev=116538&r1=116537&r2=116538&view=diff
==============================================================================
--- llvm/trunk/test/MC/ARM/simple-encoding.ll (original)
+++ llvm/trunk/test/MC/ARM/simple-encoding.ll Thu Oct 14 18:29:18 2010
@@ -90,5 +90,13 @@
   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





More information about the llvm-commits mailing list