diff options
Diffstat (limited to 'test/MC/ARM/simple-encoding.ll')
-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 |