commit | b8703fe265d44a3eb909c289cb5d31b840ca893c | [log] [tgz] |
---|---|---|
author | Chad Rosier <mcrosier@apple.com> | Fri Feb 17 01:21:28 2012 +0000 |
committer | Chad Rosier <mcrosier@apple.com> | Fri Feb 17 01:21:28 2012 +0000 |
tree | c6131921ee44791d64c0e6adbe610f4de068f74e | |
parent | 29879d7f86cac0f6a546675c5172a22ab7176519 [diff] [blame] |
[fast-isel] Add support for returning non-legal types with no sign- or zero- entend flag. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150774 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/CodeGen/ARM/fast-isel-ret.ll b/test/CodeGen/ARM/fast-isel-ret.ll index 175cd90..689b169 100644 --- a/test/CodeGen/ARM/fast-isel-ret.ll +++ b/test/CodeGen/ARM/fast-isel-ret.ll
@@ -46,3 +46,12 @@ ; CHECK: bx lr ret i16 %a } + +define i16 @ret6(i16 %a) nounwind uwtable ssp { +entry: +; CHECK: ret6 +; CHECK-NOT: uxth +; CHECK-NOT: sxth +; CHECK: bx lr + ret i16 %a +}