summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/Mips
diff options
context:
space:
mode:
authorBruno Cardoso Lopes <bruno.cardoso@gmail.com>2011-03-04 20:48:39 +0000
committerBruno Cardoso Lopes <bruno.cardoso@gmail.com>2011-03-04 20:48:39 +0000
commitd631599e38a50b2804831f47532fe05342cae260 (patch)
tree2283146dcc88528810454cd35cbf1d155b492f52 /llvm/test/CodeGen/Mips
parenta744ef3f90963d66358879d371e61ec866b38cb4 (diff)
downloadbcm5719-llvm-d631599e38a50b2804831f47532fe05342cae260.tar.gz
bcm5719-llvm-d631599e38a50b2804831f47532fe05342cae260.zip
Add testcase for r127032
llvm-svn: 127033
Diffstat (limited to 'llvm/test/CodeGen/Mips')
-rw-r--r--llvm/test/CodeGen/Mips/largeimm1.ll13
1 files changed, 13 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/Mips/largeimm1.ll b/llvm/test/CodeGen/Mips/largeimm1.ll
new file mode 100644
index 00000000000..d65cc025d08
--- /dev/null
+++ b/llvm/test/CodeGen/Mips/largeimm1.ll
@@ -0,0 +1,13 @@
+; RUN: llc -march=mipsel < %s | FileCheck %s
+
+; CHECK: lui $at, 49152
+; CHECK: lui $at, 16384
+define void @f() nounwind {
+entry:
+ %a1 = alloca [1073741824 x i8], align 1
+ %arrayidx = getelementptr inbounds [1073741824 x i8]* %a1, i32 0, i32 1048676
+ call void @f2(i8* %arrayidx) nounwind
+ ret void
+}
+
+declare void @f2(i8*)
OpenPOWER on IntegriCloud