diff options
author | Jim Grosbach <grosbach@apple.com> | 2010-10-13 00:50:27 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2010-10-13 00:50:27 +0000 |
commit | 89c898f8af3e96db25fe4986b7e7f27663ebe26a (patch) | |
tree | 81f6ffa08d22ea47336e27ecb9269268dbc2c22d /test | |
parent | 1fc6d8837f03471b815a9312091b9432939b49fc (diff) |
Add ARM encoding information for comparisons, forced-cc-out arithmetics, and
arithmetic-with-carry-in instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116384 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/MC/ARM/simple-encoding.ll | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/test/MC/ARM/simple-encoding.ll b/test/MC/ARM/simple-encoding.ll index a13c7eea7e..997ccc8665 100644 --- a/test/MC/ARM/simple-encoding.ll +++ b/test/MC/ARM/simple-encoding.ll @@ -45,5 +45,14 @@ entry: ret i32 %add } - +define i32 @f5(i32 %a, i32 %b, i32 %c) nounwind readnone ssp { +entry: +; CHECK: f5 +; CHECK: cmp r0, r1 @ encoding: [0x01,0x00,0x50,0xe1] +; CHECK: mov r0, r2 @ encoding: [0x02,0x00,0xa0,0xe1] +; CHECK: movgt r0, r1 @ encoding: [0x01,0x00,0xa0,0xc1] + %cmp = icmp sgt i32 %a, %b + %retval.0 = select i1 %cmp, i32 %b, i32 %c + ret i32 %retval.0 +} declare void @llvm.trap() nounwind |