summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/PowerPC
diff options
context:
space:
mode:
authorBill Schmidt <wschmidt@linux.vnet.ibm.com>2012-11-14 23:23:27 +0000
committerBill Schmidt <wschmidt@linux.vnet.ibm.com>2012-11-14 23:23:27 +0000
commit451499f02d8ff590fc782fe72f69ff899b467dfc (patch)
tree593f2b077b3f34be1cea1a200fc01bcb7ebffdfa /llvm/test/CodeGen/PowerPC
parent905a2d3d1739db79be3cfc2c53091c996fea33d2 (diff)
downloadbcm5719-llvm-451499f02d8ff590fc782fe72f69ff899b467dfc.tar.gz
bcm5719-llvm-451499f02d8ff590fc782fe72f69ff899b467dfc.zip
This patch is in preparation for adding medium code model support to the
PPC64 target. The five tests modified herein test code generation that is sensitive to the code model selected. So I've added -code-model=small to the RUN commands for each. Since small code model is the default, this has no effect for now; but this prepares us for eventually changing the default to medium code model for PPC64. Test changes verified with small and medium code model as default on powerpc64-unknown-linux-gnu. All tests continue to pass. llvm-svn: 167999
Diffstat (limited to 'llvm/test/CodeGen/PowerPC')
-rw-r--r--llvm/test/CodeGen/PowerPC/2012-09-16-TOC-entry-check.ll2
-rw-r--r--llvm/test/CodeGen/PowerPC/mem_update.ll2
-rw-r--r--llvm/test/CodeGen/PowerPC/ppc64-toc.ll2
-rw-r--r--llvm/test/CodeGen/PowerPC/vec_extload.ll2
4 files changed, 4 insertions, 4 deletions
diff --git a/llvm/test/CodeGen/PowerPC/2012-09-16-TOC-entry-check.ll b/llvm/test/CodeGen/PowerPC/2012-09-16-TOC-entry-check.ll
index 9d2e390c1c9..5bff58f2bbf 100644
--- a/llvm/test/CodeGen/PowerPC/2012-09-16-TOC-entry-check.ll
+++ b/llvm/test/CodeGen/PowerPC/2012-09-16-TOC-entry-check.ll
@@ -1,4 +1,4 @@
-; RUN: llc < %s | FileCheck %s
+; RUN: llc -code-model=small < %s | FileCheck %s
target datalayout = "E-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v128:128:128-n32:64"
target triple = "powerpc64-unknown-linux-gnu"
diff --git a/llvm/test/CodeGen/PowerPC/mem_update.ll b/llvm/test/CodeGen/PowerPC/mem_update.ll
index 39af11a3d54..fcf53da67fc 100644
--- a/llvm/test/CodeGen/PowerPC/mem_update.ll
+++ b/llvm/test/CodeGen/PowerPC/mem_update.ll
@@ -1,6 +1,6 @@
; RUN: llc < %s -march=ppc32 | \
; RUN: not grep addi
-; RUN: llc < %s -march=ppc64 | \
+; RUN: llc -code-model=small < %s -march=ppc64 | \
; RUN: not grep addi
@Glob = global i64 4
diff --git a/llvm/test/CodeGen/PowerPC/ppc64-toc.ll b/llvm/test/CodeGen/PowerPC/ppc64-toc.ll
index a29bdcb2503..7f30ef883e9 100644
--- a/llvm/test/CodeGen/PowerPC/ppc64-toc.ll
+++ b/llvm/test/CodeGen/PowerPC/ppc64-toc.ll
@@ -1,4 +1,4 @@
-; RUN: llc < %s | FileCheck %s
+; RUN: llc -code-model=small < %s | FileCheck %s
target datalayout = "E-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v128:128:128-n32:64"
target triple = "powerpc64-unknown-linux-gnu"
diff --git a/llvm/test/CodeGen/PowerPC/vec_extload.ll b/llvm/test/CodeGen/PowerPC/vec_extload.ll
index 201c15b9c73..15a3f9f2959 100644
--- a/llvm/test/CodeGen/PowerPC/vec_extload.ll
+++ b/llvm/test/CodeGen/PowerPC/vec_extload.ll
@@ -1,4 +1,4 @@
-; RUN: llc -mcpu=pwr6 -mattr=+altivec < %s | FileCheck %s
+; RUN: llc -mcpu=pwr6 -mattr=+altivec -code-model=small < %s | FileCheck %s
; Check vector extend load expansion with altivec enabled.
OpenPOWER on IntegriCloud