Skip to content

Commit 17d4f9b

Browse files
committed
Prepare remaining tests for -join-physreg going away.
llvm-svn: 130893
1 parent 808dca1 commit 17d4f9b

15 files changed

+48
-34
lines changed

llvm/test/CodeGen/X86/2008-12-19-EarlyClobberBug.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
; CHECK: ## InlineAsm End
66
; CHECK-NEXT: BB0_2:
7-
; CHECK-NEXT: movl %esi, %eax
7+
; CHECK-NEXT: {{movl %esi, %eax|addl %edi, %esi}}
88

99

1010
@"\01LC" = internal constant [7 x i8] c"n0=%d\0A\00" ; <[7 x i8]*> [#uses=1]

llvm/test/CodeGen/X86/2009-03-13-PHIElimBug.ll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,5 @@ lpad: ; preds = %cont, %entry
2828
}
2929

3030
; CHECK: call{{.*}}f
31-
; CHECK-NEXT: Ltmp0:
32-
; CHECK-NEXT: movl %eax, %esi
31+
; CHECK: movl %eax, %esi
32+
; CHECK: call{{.*}}g

llvm/test/CodeGen/X86/abi-isel.ll

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,16 @@
1212
; RUN: llc < %s -asm-verbose=0 -mtriple=x86_64-apple-darwin -march=x86-64 -relocation-model=dynamic-no-pic -code-model=small | FileCheck %s -check-prefix=DARWIN-64-DYNAMIC
1313
; RUN: llc < %s -asm-verbose=0 -mtriple=x86_64-apple-darwin -march=x86-64 -relocation-model=pic -code-model=small | FileCheck %s -check-prefix=DARWIN-64-PIC
1414

15-
; RUN: llc < %s -asm-verbose=0 -regalloc=basic -mtriple=i686-unknown-linux-gnu -march=x86 -relocation-model=static -code-model=small | FileCheck %s -check-prefix=LINUX-32-STATIC
16-
; RUN: llc < %s -asm-verbose=0 -regalloc=basic -mtriple=i686-unknown-linux-gnu -march=x86 -relocation-model=static -code-model=small | FileCheck %s -check-prefix=LINUX-32-PIC
17-
; RUN: llc < %s -asm-verbose=0 -regalloc=basic -mtriple=x86_64-unknown-linux-gnu -march=x86-64 -relocation-model=static -code-model=small | FileCheck %s -check-prefix=LINUX-64-STATIC
18-
; RUN: llc < %s -asm-verbose=0 -regalloc=basic -mtriple=x86_64-unknown-linux-gnu -march=x86-64 -relocation-model=pic -code-model=small | FileCheck %s -check-prefix=LINUX-64-PIC
19-
; RUN: llc < %s -asm-verbose=0 -regalloc=basic -mtriple=i686-apple-darwin -march=x86 -relocation-model=static -code-model=small | FileCheck %s -check-prefix=DARWIN-32-STATIC
20-
; RUN: llc < %s -asm-verbose=0 -regalloc=basic -mtriple=i686-apple-darwin -march=x86 -relocation-model=dynamic-no-pic -code-model=small | FileCheck %s -check-prefix=DARWIN-32-DYNAMIC
21-
; RUN: llc < %s -asm-verbose=0 -regalloc=basic -mtriple=i686-apple-darwin -march=x86 -relocation-model=pic -code-model=small | FileCheck %s -check-prefix=DARWIN-32-PIC
22-
; RUN: llc < %s -asm-verbose=0 -regalloc=basic -mtriple=x86_64-apple-darwin -march=x86-64 -relocation-model=static -code-model=small | FileCheck %s -check-prefix=DARWIN-64-STATIC
23-
; RUN: llc < %s -asm-verbose=0 -regalloc=basic -mtriple=x86_64-apple-darwin -march=x86-64 -relocation-model=dynamic-no-pic -code-model=small | FileCheck %s -check-prefix=DARWIN-64-DYNAMIC
24-
; RUN: llc < %s -asm-verbose=0 -regalloc=basic -mtriple=x86_64-apple-darwin -march=x86-64 -relocation-model=pic -code-model=small | FileCheck %s -check-prefix=DARWIN-64-PIC
15+
; RUN: llc < %s -asm-verbose=0 -regalloc=basic -join-physregs -mtriple=i686-unknown-linux-gnu -march=x86 -relocation-model=static -code-model=small | FileCheck %s -check-prefix=LINUX-32-STATIC
16+
; RUN: llc < %s -asm-verbose=0 -regalloc=basic -join-physregs -mtriple=i686-unknown-linux-gnu -march=x86 -relocation-model=static -code-model=small | FileCheck %s -check-prefix=LINUX-32-PIC
17+
; RUN: llc < %s -asm-verbose=0 -regalloc=basic -join-physregs -mtriple=x86_64-unknown-linux-gnu -march=x86-64 -relocation-model=static -code-model=small | FileCheck %s -check-prefix=LINUX-64-STATIC
18+
; RUN: llc < %s -asm-verbose=0 -regalloc=basic -join-physregs -mtriple=x86_64-unknown-linux-gnu -march=x86-64 -relocation-model=pic -code-model=small | FileCheck %s -check-prefix=LINUX-64-PIC
19+
; RUN: llc < %s -asm-verbose=0 -regalloc=basic -join-physregs -mtriple=i686-apple-darwin -march=x86 -relocation-model=static -code-model=small | FileCheck %s -check-prefix=DARWIN-32-STATIC
20+
; RUN: llc < %s -asm-verbose=0 -regalloc=basic -join-physregs -mtriple=i686-apple-darwin -march=x86 -relocation-model=dynamic-no-pic -code-model=small | FileCheck %s -check-prefix=DARWIN-32-DYNAMIC
21+
; RUN: llc < %s -asm-verbose=0 -regalloc=basic -join-physregs -mtriple=i686-apple-darwin -march=x86 -relocation-model=pic -code-model=small | FileCheck %s -check-prefix=DARWIN-32-PIC
22+
; RUN: llc < %s -asm-verbose=0 -regalloc=basic -join-physregs -mtriple=x86_64-apple-darwin -march=x86-64 -relocation-model=static -code-model=small | FileCheck %s -check-prefix=DARWIN-64-STATIC
23+
; RUN: llc < %s -asm-verbose=0 -regalloc=basic -join-physregs -mtriple=x86_64-apple-darwin -march=x86-64 -relocation-model=dynamic-no-pic -code-model=small | FileCheck %s -check-prefix=DARWIN-64-DYNAMIC
24+
; RUN: llc < %s -asm-verbose=0 -regalloc=basic -join-physregs -mtriple=x86_64-apple-darwin -march=x86-64 -relocation-model=pic -code-model=small | FileCheck %s -check-prefix=DARWIN-64-PIC
2525

2626
@src = external global [131072 x i32]
2727
@dst = external global [131072 x i32]

llvm/test/CodeGen/X86/add.ll

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
; RUN: llc < %s -march=x86 | FileCheck %s -check-prefix=X32
2-
; RUN: llc < %s -mtriple=x86_64-linux | FileCheck %s -check-prefix=X64
3-
; RUN: llc < %s -mtriple=x86_64-win32 | FileCheck %s -check-prefix=X64
2+
; RUN: llc < %s -mtriple=x86_64-linux -join-physregs | FileCheck %s -check-prefix=X64
3+
; RUN: llc < %s -mtriple=x86_64-win32 -join-physregs | FileCheck %s -check-prefix=X64
4+
5+
; Some of these tests depend on -join-physregs to commute instructions.
46

57
; The immediate can be encoded in a smaller way if the
68
; instruction is a sub instead of an add.

llvm/test/CodeGen/X86/andimm8.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: llc < %s -march=x86-64 -mtriple=x86_64-pc-linux-gnu -show-mc-encoding | FileCheck %s
1+
; RUN: llc < %s -march=x86-64 -mtriple=x86_64-pc-linux-gnu -show-mc-encoding -join-physregs | FileCheck %s
22

33
; PR8365
44
; CHECK: andl $-64, %edi # encoding: [0x83,0xe7,0xc0]

llvm/test/CodeGen/X86/byval7.ll

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ entry:
99
; CHECK: main:
1010
; CHECK: movl $1, (%esp)
1111
; CHECK: leal 16(%esp), %edi
12-
; CHECK: movl $36, %ecx
1312
; CHECK: leal 160(%esp), %esi
1413
; CHECK: rep;movsl
1514
%s = alloca %struct.S ; <%struct.S*> [#uses=2]

llvm/test/CodeGen/X86/coalescer-commute2.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: llc < %s -mtriple=x86_64-linux | FileCheck %s
1+
; RUN: llc < %s -mtriple=x86_64-linux -join-physregs | FileCheck %s
22
; CHECK-NOT: mov
33
; CHECK: paddw
44
; CHECK-NOT: mov

llvm/test/CodeGen/X86/dbg-value-range.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
; RUN: llc -mtriple=x86_64-apple-darwin10 < %s | FileCheck %s
2-
; RUN: llc -mtriple=x86_64-apple-darwin10 -regalloc=basic < %s | FileCheck %s
2+
; RUN: llc -mtriple=x86_64-apple-darwin10 -regalloc=basic -join-physregs < %s | FileCheck %s
33

44
%struct.a = type { i32 }
55

llvm/test/CodeGen/X86/optimize-max-3.ll

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,13 @@ for.end: ; preds = %for.body, %entry
4141

4242
; CHECK: jle
4343
; CHECK-NOT: cmov
44-
; CHECK: xorl {{%edi, %edi|%ecx, %ecx}}
44+
; CHECK: xorl {{%edi, %edi|%ecx, %ecx|%eax, %eax}}
4545
; CHECK-NEXT: align
4646
; CHECK-NEXT: BB1_2:
47-
; CHECK-NEXT: callq
47+
; CHECK: callq
4848
; CHECK-NEXT: incl [[BX:%[a-z0-9]+]]
4949
; CHECK-NEXT: cmpl [[R14:%[a-z0-9]+]], [[BX]]
50-
; CHECK-NEXT: movq %rax, %r{{di|cx}}
51-
; CHECK-NEXT: jl
50+
; CHECK: jl
5251

5352
define void @_Z18GenerateStatusPagei(i32 %jobs_to_display) nounwind {
5453
entry:

llvm/test/CodeGen/X86/phys_subreg_coalesce-2.ll

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: llc < %s -march=x86 | grep mov | count 4
1+
; RUN: llc < %s -march=x86 | FileCheck %s
22
; PR2659
33

44
define i32 @binomial(i32 %n, i32 %k) nounwind {
@@ -12,7 +12,8 @@ forcond.preheader: ; preds = %entry
1212

1313
ifthen: ; preds = %entry
1414
ret i32 0
15-
15+
; CHECK: forbody
16+
; CHECK-NOT: mov
1617
forbody: ; preds = %forbody, %forcond.preheader
1718
%indvar = phi i32 [ 0, %forcond.preheader ], [ %divisor.02, %forbody ] ; <i32> [#uses=3]
1819
%accumulator.01 = phi i32 [ 1, %forcond.preheader ], [ %div, %forbody ] ; <i32> [#uses=1]

0 commit comments

Comments
 (0)