summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--llvm/test/CodeGen/PowerPC/aix-return55.ll11
1 files changed, 11 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/PowerPC/aix-return55.ll b/llvm/test/CodeGen/PowerPC/aix-return55.ll
new file mode 100644
index 00000000000..b16f2fa66e7
--- /dev/null
+++ b/llvm/test/CodeGen/PowerPC/aix-return55.ll
@@ -0,0 +1,11 @@
+; RUN: llc -mcpu=pwr9 -mtriple=powerpc-ibm-aix-xcoff -verify-machineinstrs < %s | FileCheck %s
+
+
+define dso_local signext i32 @foo() {
+entry:
+ ret i32 55
+; CHECK-LABEL: .foo:
+; CHECK: li 3, 55
+; CHECK: blr
+}
+
OpenPOWER on IntegriCloud