llvm.org GIT mirror llvm / 527388d
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167999 91177308-0d34-0410-b5e6-96231b3b80d8 Bill Schmidt 7 years ago
5 changed file(s) with 5 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
None ; RUN: llc < %s | FileCheck %s
0 ; RUN: llc -code-model=small < %s | FileCheck %s
11 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"
22 target triple = "powerpc64-unknown-linux-gnu"
33
0 ; RUN: llc < %s -march=ppc32 | \
11 ; RUN: not grep addi
2 ; RUN: llc < %s -march=ppc64 | \
2 ; RUN: llc -code-model=small < %s -march=ppc64 | \
33 ; RUN: not grep addi
44
55 @Glob = global i64 4
None ; RUN: llc < %s | FileCheck %s
0 ; RUN: llc -code-model=small < %s | FileCheck %s
11 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"
22 target triple = "powerpc64-unknown-linux-gnu"
33
None ; RUN: llc -mcpu=pwr6 -mattr=+altivec < %s | FileCheck %s
0 ; RUN: llc -mcpu=pwr6 -mattr=+altivec -code-model=small < %s | FileCheck %s
11
22 ; Check vector extend load expansion with altivec enabled.
33
None ;; RUN: llc -mtriple=powerpc64-unknown-linux-gnu -O3 \
0 ;; RUN: llc -mtriple=powerpc64-unknown-linux-gnu -O3 -code-model=small \
11 ;; RUN: -filetype=obj %s -o - | \
22 ;; RUN: elf-dump --dump-section-data | FileCheck %s
33