This patch is in preparation for adding medium code model support to the
authorBill Schmidt <wschmidt@linux.vnet.ibm.com>
Wed, 14 Nov 2012 23:23:27 +0000 (23:23 +0000)
committerBill Schmidt <wschmidt@linux.vnet.ibm.com>
Wed, 14 Nov 2012 23:23:27 +0000 (23:23 +0000)
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167999 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/PowerPC/2012-09-16-TOC-entry-check.ll
test/CodeGen/PowerPC/mem_update.ll
test/CodeGen/PowerPC/ppc64-toc.ll
test/CodeGen/PowerPC/vec_extload.ll
test/MC/PowerPC/ppc64-relocs-01.ll

index 9d2e390c1c9729e029ae09e79e18cc513537d4d9..5bff58f2bbf55c53f7ba256d05b6f9be7ce5ba47 100644 (file)
@@ -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"
 
index 39af11a3d54cd1f5f786db541e01de62e0b7d73b..fcf53da67fc2475ebc79a15a962c88e1d669c529 100644 (file)
@@ -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
index a29bdcb25031fc1021474fd7ff463e71feed7463..7f30ef883e9ad9612b5c9ffcceb0ccd1b40f0808 100644 (file)
@@ -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"
 
index 201c15b9c735957af13c932f01ea03278e222dd0..15a3f9f295989e7e065272e3a58ea2167b4f5865 100644 (file)
@@ -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.
 
index 5996af84f448816ccb222ebaff93c631856459e0..4919e91400ba52ac6c5715a34e8d0c768577b968 100644 (file)
@@ -1,4 +1,4 @@
-;; RUN: llc -mtriple=powerpc64-unknown-linux-gnu -O3  \
+;; RUN: llc -mtriple=powerpc64-unknown-linux-gnu -O3 -code-model=small  \
 ;; RUN:  -filetype=obj %s -o - | \
 ;; RUN: elf-dump --dump-section-data | FileCheck %s