diff options
author | Jim Grosbach <grosbach@apple.com> | 2010-10-14 18:54:27 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2010-10-14 18:54:27 +0000 |
commit | 1de588df69ceb999dd4680679cc3fe519bf9a124 (patch) | |
tree | f76612bb9fc2dd4ac0d6b544639fb5ed8e81ad5b /test | |
parent | ab00e9f498a23a511a06d9fcd33e7232e9a3f916 (diff) | |
download | external_llvm-1de588df69ceb999dd4680679cc3fe519bf9a124.zip external_llvm-1de588df69ceb999dd4680679cc3fe519bf9a124.tar.gz external_llvm-1de588df69ceb999dd4680679cc3fe519bf9a124.tar.bz2 |
MOVi16 and MOVT ARM mode encodings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116498 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/MC/ARM/simple-encoding.ll | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/MC/ARM/simple-encoding.ll b/test/MC/ARM/simple-encoding.ll index 05ecb96..a165160 100644 --- a/test/MC/ARM/simple-encoding.ll +++ b/test/MC/ARM/simple-encoding.ll @@ -74,4 +74,21 @@ entry: ret i32 %add } +define i32 @f8(i32 %a) nounwind readnone ssp { +entry: +; CHECK: f8 +; CHECK: movt r0, #42405 @ encoding: [0xa5,0x05,0x4a,0xe3] + %and = and i32 %a, 65535 + %or = or i32 %and, -1515913216 + ret i32 %or +} + +define i32 @f9() nounwind readnone ssp { +entry: +; CHECK: f9 +; CHECK: movw r0, #42405 @ encoding: [0xa5,0x05,0x0a,0xe3] + ret i32 42405 +} + + declare void @llvm.trap() nounwind |