aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/ARM/fast-isel-ret.ll
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@apple.com>2012-02-17 01:21:28 +0000
committerChad Rosier <mcrosier@apple.com>2012-02-17 01:21:28 +0000
commitb8703fe265d44a3eb909c289cb5d31b840ca893c (patch)
treec6131921ee44791d64c0e6adbe610f4de068f74e /test/CodeGen/ARM/fast-isel-ret.ll
parent29879d7f86cac0f6a546675c5172a22ab7176519 (diff)
[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
Diffstat (limited to 'test/CodeGen/ARM/fast-isel-ret.ll')
-rw-r--r--test/CodeGen/ARM/fast-isel-ret.ll9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/CodeGen/ARM/fast-isel-ret.ll b/test/CodeGen/ARM/fast-isel-ret.ll
index 175cd9034c..689b169ee3 100644
--- a/test/CodeGen/ARM/fast-isel-ret.ll
+++ b/test/CodeGen/ARM/fast-isel-ret.ll
@@ -46,3 +46,12 @@ entry:
; 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
+}