Skip to content

Commit 8987369

Browse files
committed
[X86] sibcall - cleanup check prefixes identified in #92248
Avoid using numbers as check prefix - replace with actual triple config names
1 parent 8a71284 commit 8987369

File tree

2 files changed

+28
-28
lines changed

2 files changed

+28
-28
lines changed

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

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,48 @@
1-
; RUN: llc -verify-machineinstrs < %s -mtriple=i386-apple-darwin -frame-pointer=all | FileCheck %s -check-prefix=32
2-
; RUN: llc -verify-machineinstrs < %s -mtriple=x86_64-apple-darwin -frame-pointer=all | FileCheck %s -check-prefix=64
1+
; RUN: llc -verify-machineinstrs < %s -mtriple=i386-apple-darwin -frame-pointer=all | FileCheck %s -check-prefix=X86
2+
; RUN: llc -verify-machineinstrs < %s -mtriple=x86_64-apple-darwin -frame-pointer=all | FileCheck %s -check-prefix=X64
33

44
; Tail call should not use ebp / rbp after it's popped. Use esp / rsp.
55

66
define void @t1(ptr nocapture %value) nounwind {
77
entry:
8-
; 32-LABEL: t1:
9-
; 32: jmpl *4(%esp)
8+
; X86-LABEL: t1:
9+
; X86: jmpl *4(%esp)
1010

11-
; 64-LABEL: t1:
12-
; 64: jmpq *%rdi
11+
; X64-LABEL: t1:
12+
; X64: jmpq *%rdi
1313
tail call void %value() nounwind
1414
ret void
1515
}
1616

1717
define void @t2(i32 %a, ptr nocapture %value) nounwind {
1818
entry:
19-
; 32-LABEL: t2:
20-
; 32: jmpl *8(%esp)
19+
; X86-LABEL: t2:
20+
; X86: jmpl *8(%esp)
2121

22-
; 64-LABEL: t2:
23-
; 64: jmpq *%rsi
22+
; X64-LABEL: t2:
23+
; X64: jmpq *%rsi
2424
tail call void %value() nounwind
2525
ret void
2626
}
2727

2828
define void @t3(i32 %a, i32 %b, i32 %c, i32 %d, i32 %e, i32 %f, ptr nocapture %value) nounwind {
2929
entry:
30-
; 32-LABEL: t3:
31-
; 32: jmpl *28(%esp)
30+
; X86-LABEL: t3:
31+
; X86: jmpl *28(%esp)
3232

33-
; 64-LABEL: t3:
34-
; 64: jmpq *8(%rsp)
33+
; X64-LABEL: t3:
34+
; X64: jmpq *8(%rsp)
3535
tail call void %value() nounwind
3636
ret void
3737
}
3838

3939
define void @t4(i32 %a, i32 %b, i32 %c, i32 %d, i32 %e, i32 %f, i32 %g, ptr nocapture %value) nounwind {
4040
entry:
41-
; 32-LABEL: t4:
42-
; 32: jmpl *32(%esp)
41+
; X86-LABEL: t4:
42+
; X86: jmpl *32(%esp)
4343

44-
; 64-LABEL: t4:
45-
; 64: jmpq *16(%rsp)
44+
; X64-LABEL: t4:
45+
; X64: jmpq *16(%rsp)
4646
tail call void %value() nounwind
4747
ret void
4848
}

llvm/test/CodeGen/X86/sibcall-byval.ll

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
; RUN: llc < %s -mtriple=i386-apple-darwin9 | FileCheck %s -check-prefix=32
2-
; RUN: llc < %s -mtriple=x86_64-apple-darwin | FileCheck %s -check-prefix=64
1+
; RUN: llc < %s -mtriple=i386-apple-darwin9 | FileCheck %s -check-prefix=X86
2+
; RUN: llc < %s -mtriple=x86_64-apple-darwin | FileCheck %s -check-prefix=X64
33

44
%struct.p = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
55

66
define i32 @f(ptr byval(%struct.p) align 4 %q) nounwind ssp {
77
entry:
8-
; 32: _f:
9-
; 32: jmp _g
8+
; X86: _f:
9+
; X86: jmp _g
1010

11-
; 64: _f:
12-
; 64: jmp _g
11+
; X64: _f:
12+
; X64: jmp _g
1313
%call = tail call i32 @g(ptr byval(%struct.p) align 4 %q) nounwind
1414
ret i32 %call
1515
}
@@ -18,11 +18,11 @@ declare i32 @g(ptr byval(%struct.p) align 4)
1818

1919
define i32 @h(ptr byval(%struct.p) align 4 %q, i32 %r) nounwind ssp {
2020
entry:
21-
; 32: _h:
22-
; 32: jmp _i
21+
; X86: _h:
22+
; X86: jmp _i
2323

24-
; 64: _h:
25-
; 64: jmp _i
24+
; X64: _h:
25+
; X64: jmp _i
2626

2727
%call = tail call i32 @i(ptr byval(%struct.p) align 4 %q, i32 %r) nounwind
2828
ret i32 %call

0 commit comments

Comments
 (0)