diff options
author | Chad Rosier <mcrosier@apple.com> | 2011-11-08 00:03:32 +0000 |
---|---|---|
committer | Chad Rosier <mcrosier@apple.com> | 2011-11-08 00:03:32 +0000 |
commit | 5de1bea5c90d6a834acdf2c851b6ff9d0659b7dd (patch) | |
tree | efafd6d820aac8d1dadaf17d058bd26a9c76c27f /llvm/test/CodeGen/ARM/fast-isel-call.ll | |
parent | 2dc40434aa1635130dcb5407fc3c4229071dc74b (diff) | |
download | bcm5719-llvm-5de1bea5c90d6a834acdf2c851b6ff9d0659b7dd.tar.gz bcm5719-llvm-5de1bea5c90d6a834acdf2c851b6ff9d0659b7dd.zip |
Enable support for returning i1, i8, and i16. Nothing special todo as it's the
callee's responsibility to sign or zero-extend the return value. The additional
test case just checks to make sure the calls are selected (i.e., -fast-isel-abort
doesn't assert).
llvm-svn: 144047
Diffstat (limited to 'llvm/test/CodeGen/ARM/fast-isel-call.ll')
-rw-r--r-- | llvm/test/CodeGen/ARM/fast-isel-call.ll | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/ARM/fast-isel-call.ll b/llvm/test/CodeGen/ARM/fast-isel-call.ll index 20046a32f99..00346bf404c 100644 --- a/llvm/test/CodeGen/ARM/fast-isel-call.ll +++ b/llvm/test/CodeGen/ARM/fast-isel-call.ll @@ -65,3 +65,18 @@ define void @foo(i8 %a, i16 %b) nounwind { %7 = call i32 @t4(i16 zeroext 65535) ret void } + +define void @foo2() nounwind { + %1 = call signext i16 @t5() + %2 = call zeroext i16 @t6() + %3 = call signext i8 @t7() + %4 = call zeroext i8 @t8() + %5 = call zeroext i1 @t9() + ret void +} + +declare signext i16 @t5(); +declare zeroext i16 @t6(); +declare signext i8 @t7(); +declare zeroext i8 @t8(); +declare zeroext i1 @t9(); |