summaryrefslogtreecommitdiffstats
path: root/llvm/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
commita787aa2b1e6bad9b563ff448d7f48e8a5a2d5ea7 (patch)
treeea5c3bbd698e19a9ac4309fd06b4194e9135dbfe /llvm/test
parent1585fea1a21389eefeb09c9034272c98076fee23 (diff)
downloadbcm5719-llvm-a787aa2b1e6bad9b563ff448d7f48e8a5a2d5ea7.tar.gz
bcm5719-llvm-a787aa2b1e6bad9b563ff448d7f48e8a5a2d5ea7.zip
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. llvm-svn: 195569
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/CodeGen/Mips/largefr1.ll4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/test/CodeGen/Mips/largefr1.ll b/llvm/test/CodeGen/Mips/largefr1.ll
index b8cd6a1d17c..7594e22d0f4 100644
--- a/llvm/test/CodeGen/Mips/largefr1.ll
+++ b/llvm/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*, ...)
OpenPOWER on IntegriCloud