Chromium Code Reviews

Side by Side Diff: tests_lit/llvm2ice_tests/align-spill-locations.ll

Issue 659513005: Allow conditional lit tests in Subzero, based on build flags. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix tests to handle MINIMAL builds. Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
OLDNEW
1 ; This checks to ensure that Subzero aligns spill slots. 1 ; This checks to ensure that Subzero aligns spill slots.
2 2
3 ; TODO(kschimpf) Find out why lc2i needed. 3 ; TODO(kschimpf) Find out why lc2i needed.
4 ; RUN: %lc2i -i %s --args --verbose none \ 4 ; RUN: %lc2i -i %s --args --verbose none \
5 ; RUN: | llvm-mc -triple=i686-none-nacl -x86-asm-syntax=intel -filetype=obj \ 5 ; RUN: | llvm-mc -triple=i686-none-nacl -x86-asm-syntax=intel -filetype=obj \
6 ; RUN: | llvm-objdump -d --symbolize -x86-asm-syntax=intel - | FileCheck %s 6 ; RUN: | llvm-objdump -d --symbolize -x86-asm-syntax=intel - \
7 ; RUN: | %iflc FileCheck %s
7 ; RUN: %lc2i -i %s --args -O2 --verbose none \ 8 ; RUN: %lc2i -i %s --args -O2 --verbose none \
8 ; RUN: | llvm-mc -triple=i686-none-nacl -x86-asm-syntax=intel -filetype=obj \ 9 ; RUN: | llvm-mc -triple=i686-none-nacl -x86-asm-syntax=intel -filetype=obj \
9 ; RUN: | llvm-objdump -d --symbolize -x86-asm-syntax=intel - | FileCheck %s 10 ; RUN: | llvm-objdump -d --symbolize -x86-asm-syntax=intel - \
10 ; RUN: %lc2i -i %s --args --verbose none | FileCheck --check-prefix=ERRORS %s 11 ; RUN: | %iflc FileCheck %s
12 ; RUN: %lc2i -i %s --args --verbose none \
13 ; RUN: | %iflc FileCheck --check-prefix=ERRORS %s
11 14
12 ; The location of the stack slot for a variable is inferred from the 15 ; The location of the stack slot for a variable is inferred from the
13 ; return sequence. 16 ; return sequence.
14 17
15 ; In this file, "global" refers to a variable with a live range across 18 ; In this file, "global" refers to a variable with a live range across
16 ; multiple basic blocks (not an LLVM global variable) and "local" 19 ; multiple basic blocks (not an LLVM global variable) and "local"
17 ; refers to a variable that is live in only a single basic block. 20 ; refers to a variable that is live in only a single basic block.
18 21
19 define <4 x i32> @align_global_vector(i32 %arg) { 22 define <4 x i32> @align_global_vector(i32 %arg) {
20 entry: 23 entry:
(...skipping 65 matching lines...)
86 ; CHECK-NEXT: movss dword ptr [esp + {{12|28}}], xmm0 89 ; CHECK-NEXT: movss dword ptr [esp + {{12|28}}], xmm0
87 ; CHECK: movups xmm0, xmmword ptr [{{esp|esp \+ 16}}] 90 ; CHECK: movups xmm0, xmmword ptr [{{esp|esp \+ 16}}]
88 ; CHECK-NEXT: add esp, 44 91 ; CHECK-NEXT: add esp, 44
89 ; CHECK-NEXT: ret 92 ; CHECK-NEXT: ret
90 } 93 }
91 94
92 declare void @ForceXmmSpillsAndUseAlloca(i8*) 95 declare void @ForceXmmSpillsAndUseAlloca(i8*)
93 declare void @ForceXmmSpillsAndUseFloat(float) 96 declare void @ForceXmmSpillsAndUseFloat(float)
94 97
95 ; ERRORS-NOT: ICE translation error 98 ; ERRORS-NOT: ICE translation error
OLDNEW

Powered by Google App Engine