llvm.org GIT mirror llvm / 5b50701
Fix remaining lit tests which were failing when run on an Atom processor. Patches by Tyler Nowicki, Andy Zhang, and Preston Gurd! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@160520 91177308-0d34-0410-b5e6-96231b3b80d8 Preston Gurd 7 years ago
12 changed file(s) with 51 addition(s) and 16 deletion(s). Raw diff Collapse all Expand all
0 ; RUN: llc -mtriple=i386-apple-darwin10.0 -relocation-model=pic -asm-verbose=false \
1 ; RUN: -disable-fp-elim -mattr=-sse41,-sse3,+sse2 -post-RA-scheduler=false -regalloc=basic < %s | \
1 ; RUN: -mcpu=generic -disable-fp-elim -mattr=-sse41,-sse3,+sse2 -post-RA-scheduler=false -regalloc=basic < %s | \
22 ; RUN: FileCheck %s
33 ; rdar://6808032
44
None ; RUN: llc < %s -march=x86 -mattr=+sse | FileCheck %s
0 ; RUN: llc < %s -mcpu=generic -march=x86 -mattr=+sse | FileCheck %s
11
22 define float @chainfail1(i64* nocapture %a, i64* nocapture %b, i32 %x, i32 %y, float* nocapture %f) nounwind uwtable noinline ssp {
33 entry:
99 ;CHECK-NEXT: .short Lset
1010 ;CHECK-NEXT: Ltmp
1111 ;CHECK-NEXT: .byte 85 ## DW_OP_reg5
12 ;CHECK-NEXT: Ltmp5
12 ;CHECK-NEXT: Ltmp
1313 ;CHECK-NEXT: .quad 0
1414 ;CHECK-NEXT: .quad 0
1515
None ; RUN: llc < %s -march=x86-64 -mattr=+avx -mtriple=i686-apple-darwin10 | FileCheck %s
1 ; RUN: llc < %s -force-align-stack -stack-alignment=32 -march=x86-64 -mattr=+avx -mtriple=i686-apple-darwin10 | FileCheck %s -check-prefix=FORCE-ALIGN
0 ; RUN: llc < %s -mcpu=generic -march=x86-64 -mattr=+avx -mtriple=i686-apple-darwin10 | FileCheck %s
1 ; RUN: llc < %s -mcpu=generic -force-align-stack -stack-alignment=32 -march=x86-64 -mattr=+avx -mtriple=i686-apple-darwin10 | FileCheck %s -check-prefix=FORCE-ALIGN
22 ; rdar://11496434
33
44 ; no VLAs or dynamic alignment
None ; RUN: llc < %s -fast-isel -mtriple=i386-apple-darwin | FileCheck %s
0 ; RUN: llc < %s -fast-isel -mtriple=i386-apple-darwin -mcpu=generic | FileCheck %s
1 ; RUN: llc < %s -fast-isel -mtriple=i386-apple-darwin -mcpu=atom | FileCheck -check-prefix=ATOM %s
12
23 @src = external global i32
34
1718 ; CHECK: movl %eax, (%ecx)
1819 ; CHECK: ret
1920
21 ; ATOM: loadgv:
22 ; ATOM: movl L_src$non_lazy_ptr, %ecx
23 ; ATOM: movl (%ecx), %eax
24 ; ATOM: addl (%ecx), %eax
25 ; ATOM: movl %eax, (%ecx)
26 ; ATOM: ret
27
2028 }
2129
2230 %stuff = type { i32 (...)** }
3038 ; CHECK: movl $0, %eax
3139 ; CHECK: movl L_LotsStuff$non_lazy_ptr, %ecx
3240
41 ; ATOM: _t:
42 ; ATOM: movl L_LotsStuff$non_lazy_ptr, %ecx
43 ; ATOM: movl $0, %eax
44
3345 }
22 ; arbitrarily force alignment up to 32-bytes for i386 hoping that this will
33 ; exceed any ABI provisions.
44 ;
5 ; RUN: llc < %s -force-align-stack -stack-alignment=32 | FileCheck %s
5 ; RUN: llc < %s -mcpu=generic -force-align-stack -stack-alignment=32 | FileCheck %s
66
77 target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:32:32-n8:16:32-S128"
88 target triple = "i386-unknown-linux-gnu"
None ; RUN: llc < %s -regalloc=fast -optimize-regalloc=0 -verify-machineinstrs -mtriple=x86_64-apple-darwin10
0 ; RUN: llc < %s -mcpu=generic -regalloc=fast -optimize-regalloc=0 -verify-machineinstrs -mtriple=x86_64-apple-darwin10
11 ;
22 ; PR12821
33
None ; RUN: llc -mtriple=x86_64-darwin < %s | FileCheck %s
0 ; RUN: llc -mtriple=x86_64-darwin -mcpu=generic < %s | FileCheck %s
1 ; RUN: llc -mtriple=x86_64-darwin -mcpu=atom < %s | FileCheck -check-prefix=ATOM %s
12
23 ; CHECK: t:
34 ; CHECK: decq
4 ; CHECK-NEXT: movl (
5 ; CHECK-NEXT: movl (%r11,%rax,4), %eax
56 ; CHECK-NEXT: jne
7
8 ; ATOM: t:
9 ; ATOM: movl (%r10,%rax,4), %eax
10 ; ATOM-NEXT: decq
11 ; ATOM-NEXT: jne
612
713 @Te0 = external global [256 x i32] ; <[256 x i32]*> [#uses=5]
814 @Te1 = external global [256 x i32] ; <[256 x i32]*> [#uses=4]
148154 ; CHECK: jne
149155 ; CHECK: ret
150156
157 ; ATOM: f:
158 ; ATOM: %for.body
159 ; ATOM: incl [[IV:%e..]]
160 ; ATOM: cmpl $1, [[IV]]
161 ; ATOM: jne
162 ; ATOM: ret
163
151164 define i32 @f(i32 %i, i32* nocapture %a) nounwind uwtable readonly ssp {
152165 entry:
153166 %cmp4 = icmp eq i32 %i, 1
None ; RUN: llc -march=x86-64 -mtriple=x86_64-unknown-linux-gnu -relocation-model=static -asm-verbose=false < %s | FileCheck %s
0 ; RUN: llc -march=x86-64 -mcpu=generic -mtriple=x86_64-unknown-linux-gnu -relocation-model=static -asm-verbose=false < %s | FileCheck %s
1 ; RUN: llc -march=x86-64 -mcpu=atom -mtriple=x86_64-unknown-linux-gnu -relocation-model=static -asm-verbose=false < %s | FileCheck -check-prefix=ATOM %s
12
23 ; CHECK: xorl %eax, %eax
34 ; CHECK: movsd .LCPI0_0(%rip), %xmm0
78 ; CHECK-NEXT: mulsd
89 ; CHECK-NEXT: movsd
910 ; CHECK-NEXT: incq %rax
11
12 ; ATOM: movsd .LCPI0_0(%rip), %xmm0
13 ; ATOM: xorl %eax, %eax
14 ; ATOM: align
15 ; ATOM-NEXT: BB0_2:
16 ; ATOM-NEXT: movsd A(,%rax,8)
17 ; ATOM-NEXT: mulsd
18 ; ATOM-NEXT: movsd
19 ; ATOM-NEXT: incq %rax
1020
1121 @A = external global [0 x double]
1222
None ; RUN: llc < %s -march=x86-64 -mattr=+rdrand | FileCheck %s
0 ; RUN: llc < %s -march=x86-64 -mcpu=core-avx-i -mattr=+rdrand | FileCheck %s
11 declare {i16, i32} @llvm.x86.rdrand.16()
22 declare {i32, i32} @llvm.x86.rdrand.32()
33 declare {i64, i32} @llvm.x86.rdrand.64()
99
1010 define void @testv() nounwind {
1111 ; CHECK: testv:
12 ; CHECK: leal
12 ; CHECK: leal 16(%esp), %esi
1313 ; CHECK-NEXT: movl %esi, (%esp)
1414 ; CHECK-NEXT: calll _ZN1CC1Ev
1515 ; CHECK: leal 8(%esp), %eax
2828
2929 define void @test2v() nounwind {
3030 ; CHECK: test2v:
31 ; CHECK: leal
31 ; CHECK: leal 16(%esp), %esi
3232 ; CHECK-NEXT: movl %esi, (%esp)
3333 ; CHECK-NEXT: calll _ZN1CC1Ev
3434 ; CHECK: leal 8(%esp), %eax
None ; RUN: llc < %s -march=x86 -mtriple=i386-linux-gnu -relocation-model=pic -enable-pie \
0 ; RUN: llc < %s -march=x86 -mcpu=generic -mtriple=i386-linux-gnu -relocation-model=pic -enable-pie \
11 ; RUN: | FileCheck -check-prefix=X32 %s
2 ; RUN: llc < %s -march=x86-64 -mtriple=x86_64-linux-gnu -relocation-model=pic -enable-pie \
2 ; RUN: llc < %s -march=x86-64 -mcpu=generic -mtriple=x86_64-linux-gnu -relocation-model=pic -enable-pie \
33 ; RUN: | FileCheck -check-prefix=X64 %s
44
55 @i = thread_local global i32 15