summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorReed Kotler <rkotler@mips.com>2013-11-24 06:18:50 +0000
committerReed Kotler <rkotler@mips.com>2013-11-24 06:18:50 +0000
commite77071da427a2631c0c666845a78c953ca90e53c (patch)
treeb9b434a9274e82c55a200d5d813e74b9f5375399 /test
parent1fcb390d438f836ca5a84805a5193a695fb2d27f (diff)
downloadllvm-e77071da427a2631c0c666845a78c953ca90e53c.tar.gz
llvm-e77071da427a2631c0c666845a78c953ca90e53c.tar.bz2
llvm-e77071da427a2631c0c666845a78c953ca90e53c.tar.xz
Make sure that for C++ emitting LwConstant32 pseudos, that it corresponds
to what is needed for constant islands. The prescan method for Mips16 constant islands will eventually go away. It is only temporary and should be done earlier when the instructions are first created or from the DAG. If we keep it here we need to handle better the situation where constant islands is called multiple times since don't want to prescan more than once. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@195569 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/CodeGen/Mips/largefr1.ll4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/CodeGen/Mips/largefr1.ll b/test/CodeGen/Mips/largefr1.ll
index b8cd6a1d17..7594e22d0f 100644
--- a/test/CodeGen/Mips/largefr1.ll
+++ b/test/CodeGen/Mips/largefr1.ll
@@ -1,5 +1,6 @@
-; RUN: llc -march=mipsel -mcpu=mips16 -relocation-model=static < %s | FileCheck %s -check-prefix=1
+; RUN: llc -mtriple=mipsel-linux-gnu -march=mipsel -mcpu=mips16 -relocation-model=static < %s | FileCheck %s -check-prefix=1
+; RUN: llc -mtriple=mipsel-linux-gnu -march=mipsel -mcpu=mips16 -soft-float -mips16-hard-float -relocation-model=pic -mips16-constant-islands < %s | FileCheck %s -check-prefix=ci
@i = common global i32 0, align 4
@j = common global i32 0, align 4
@@ -71,4 +72,5 @@ entry:
ret i32 0
}
+; ci: lw ${{[0-9]+}}, $CPI{{[0-9]+}}_{{[0-9]+}}
declare i32 @printf(i8*, ...)