[llvm-commits] [llvm] r167999 - in /llvm/trunk/test: CodeGen/PowerPC/2012-09-16-TOC-entry-check.ll CodeGen/PowerPC/mem_update.ll CodeGen/PowerPC/ppc64-toc.ll CodeGen/PowerPC/vec_extload.ll MC/PowerPC/ppc64-relocs-01.ll

Bill Schmidt wschmidt at linux.vnet.ibm.com
Wed Nov 14 15:23:27 PST 2012


Author: wschmidt
Date: Wed Nov 14 17:23:27 2012
New Revision: 167999

URL: http://llvm.org/viewvc/llvm-project?rev=167999&view=rev
Log:
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.


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

Modified: llvm/trunk/test/CodeGen/PowerPC/2012-09-16-TOC-entry-check.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/PowerPC/2012-09-16-TOC-entry-check.ll?rev=167999&r1=167998&r2=167999&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/PowerPC/2012-09-16-TOC-entry-check.ll (original)
+++ llvm/trunk/test/CodeGen/PowerPC/2012-09-16-TOC-entry-check.ll Wed Nov 14 17:23:27 2012
@@ -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"
 

Modified: llvm/trunk/test/CodeGen/PowerPC/mem_update.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/PowerPC/mem_update.ll?rev=167999&r1=167998&r2=167999&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/PowerPC/mem_update.ll (original)
+++ llvm/trunk/test/CodeGen/PowerPC/mem_update.ll Wed Nov 14 17:23:27 2012
@@ -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

Modified: llvm/trunk/test/CodeGen/PowerPC/ppc64-toc.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/PowerPC/ppc64-toc.ll?rev=167999&r1=167998&r2=167999&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/PowerPC/ppc64-toc.ll (original)
+++ llvm/trunk/test/CodeGen/PowerPC/ppc64-toc.ll Wed Nov 14 17:23:27 2012
@@ -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"
 

Modified: llvm/trunk/test/CodeGen/PowerPC/vec_extload.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/PowerPC/vec_extload.ll?rev=167999&r1=167998&r2=167999&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/PowerPC/vec_extload.ll (original)
+++ llvm/trunk/test/CodeGen/PowerPC/vec_extload.ll Wed Nov 14 17:23:27 2012
@@ -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.
 

Modified: llvm/trunk/test/MC/PowerPC/ppc64-relocs-01.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/PowerPC/ppc64-relocs-01.ll?rev=167999&r1=167998&r2=167999&view=diff
==============================================================================
--- llvm/trunk/test/MC/PowerPC/ppc64-relocs-01.ll (original)
+++ llvm/trunk/test/MC/PowerPC/ppc64-relocs-01.ll Wed Nov 14 17:23:27 2012
@@ -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
 





More information about the llvm-commits mailing list