summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--llvm/test/CodeGen/PowerPC/pr26381.ll8
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/PowerPC/pr26381.ll b/llvm/test/CodeGen/PowerPC/pr26381.ll
new file mode 100644
index 00000000000..a45288e545f
--- /dev/null
+++ b/llvm/test/CodeGen/PowerPC/pr26381.ll
@@ -0,0 +1,8 @@
+; RUN: llc -mcpu=pwr7 -mtriple=powerpc64le-unknown-unknown -O0 < %s | FileCheck %s
+
+define internal signext i32 @foo() #0 {
+ ret i32 -125452974
+}
+
+; CHECK: lis 3, -1915
+; CHECK: ori 3, 3, 48466
OpenPOWER on IntegriCloud