diff --git a/llvm/test/CodeGen/PowerPC/aix-return55.ll b/llvm/test/CodeGen/PowerPC/aix-return55.ll new file mode 100644 --- /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 +} +