aboutsummaryrefslogtreecommitdiffstats
path: root/test/MC/ARM/simple-encoding.ll
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2010-10-13 19:56:10 +0000
committerJim Grosbach <grosbach@apple.com>2010-10-13 19:56:10 +0000
commitb35ad41fef5d1edd9495f708fb7eae1a0a94ef9d (patch)
tree8d089cf4102930124cb74fb4fa58955d0013d78d /test/MC/ARM/simple-encoding.ll
parente822f9450992774a2058163d0572538375e74051 (diff)
downloadexternal_llvm-b35ad41fef5d1edd9495f708fb7eae1a0a94ef9d.zip
external_llvm-b35ad41fef5d1edd9495f708fb7eae1a0a94ef9d.tar.gz
external_llvm-b35ad41fef5d1edd9495f708fb7eae1a0a94ef9d.tar.bz2
Add ARM mode encoding for [SU]XT[BH] and [SU]XTA[BH] instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116421 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC/ARM/simple-encoding.ll')
-rw-r--r--test/MC/ARM/simple-encoding.ll10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/MC/ARM/simple-encoding.ll b/test/MC/ARM/simple-encoding.ll
index 01e9c98..05ecb96 100644
--- a/test/MC/ARM/simple-encoding.ll
+++ b/test/MC/ARM/simple-encoding.ll
@@ -64,4 +64,14 @@ entry:
%add = add nsw i64 %b, %a
ret i64 %add
}
+
+define i32 @f7(i32 %a, i32 %b) nounwind readnone optsize ssp {
+entry:
+; CHECK: f7
+; CHECK: uxtab r0, r0, r1 @ encoding: [0x71,0x00,0xe0,0xe6]
+ %and = and i32 %b, 255
+ %add = add i32 %and, %a
+ ret i32 %add
+}
+
declare void @llvm.trap() nounwind