[llvm] d84cdf5 - [X86] Regenerate atom-pad-short-functions.ll test checks
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Sun Nov 6 05:36:02 PST 2022
Author: Simon Pilgrim
Date: 2022-11-06T13:35:46Z
New Revision: d84cdf5d285bdd0989c595a82ff609cfab09f8bc
URL: https://github.com/llvm/llvm-project/commit/d84cdf5d285bdd0989c595a82ff609cfab09f8bc
DIFF: https://github.com/llvm/llvm-project/commit/d84cdf5d285bdd0989c595a82ff609cfab09f8bc.diff
LOG: [X86] Regenerate atom-pad-short-functions.ll test checks
Added:
Modified:
llvm/test/CodeGen/X86/atom-pad-short-functions.ll
Removed:
################################################################################
diff --git a/llvm/test/CodeGen/X86/atom-pad-short-functions.ll b/llvm/test/CodeGen/X86/atom-pad-short-functions.ll
index c1bf727a176cc..c107dfff28ca3 100644
--- a/llvm/test/CodeGen/X86/atom-pad-short-functions.ll
+++ b/llvm/test/CodeGen/X86/atom-pad-short-functions.ll
@@ -1,64 +1,77 @@
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
; RUN: llc < %s -O1 -mcpu=atom -mtriple=i686-linux | FileCheck %s
declare void @external_function(...)
define i32 @test_return_val(i32 %a) nounwind {
-; CHECK: test_return_val
-; CHECK: movl
-; CHECK: nop
-; CHECK: nop
-; CHECK: nop
-; CHECK: nop
-; CHECK: nop
-; CHECK: nop
-; CHECK: ret
+; CHECK-LABEL: test_return_val:
+; CHECK: # %bb.0:
+; CHECK-NEXT: movl {{[0-9]+}}(%esp), %eax
+; CHECK-NEXT: nop
+; CHECK-NEXT: nop
+; CHECK-NEXT: nop
+; CHECK-NEXT: nop
+; CHECK-NEXT: nop
+; CHECK-NEXT: nop
+; CHECK-NEXT: retl
ret i32 %a
}
define i32 @test_optsize(i32 %a) nounwind optsize {
-; CHECK: test_optsize
-; CHECK: movl
-; CHECK-NEXT: ret
+; CHECK-LABEL: test_optsize:
+; CHECK: # %bb.0:
+; CHECK-NEXT: movl {{[0-9]+}}(%esp), %eax
+; CHECK-NEXT: retl
ret i32 %a
}
define i32 @test_minsize(i32 %a) nounwind minsize {
-; CHECK: test_minsize
-; CHECK: movl
-; CHECK-NEXT: ret
+; CHECK-LABEL: test_minsize:
+; CHECK: # %bb.0:
+; CHECK-NEXT: movl {{[0-9]+}}(%esp), %eax
+; CHECK-NEXT: retl
ret i32 %a
}
define i32 @test_pgso(i32 %a) nounwind !prof !14 {
-; CHECK: test_pgso
-; CHECK: movl
-; CHECK-NEXT: ret
+; CHECK-LABEL: test_pgso:
+; CHECK: # %bb.0:
+; CHECK-NEXT: movl {{[0-9]+}}(%esp), %eax
+; CHECK-NEXT: retl
ret i32 %a
}
define i32 @test_add(i32 %a, i32 %b) nounwind {
-; CHECK: test_add
-; CHECK: addl
-; CHECK: nop
-; CHECK: nop
-; CHECK: nop
-; CHECK: nop
-; CHECK: ret
+; CHECK-LABEL: test_add:
+; CHECK: # %bb.0:
+; CHECK-NEXT: movl {{[0-9]+}}(%esp), %eax
+; CHECK-NEXT: addl {{[0-9]+}}(%esp), %eax
+; CHECK-NEXT: nop
+; CHECK-NEXT: nop
+; CHECK-NEXT: nop
+; CHECK-NEXT: nop
+; CHECK-NEXT: retl
%result = add i32 %a, %b
ret i32 %result
}
define i32 @test_multiple_ret(i32 %a, i32 %b, i1 %c) nounwind {
-; CHECK: @test_multiple_ret
-; CHECK: je
+; CHECK-LABEL: test_multiple_ret:
+; CHECK: # %bb.0:
+; CHECK-NEXT: testb $1, {{[0-9]+}}(%esp)
+; CHECK-NEXT: je .LBB5_2
+; CHECK-NEXT: # %bb.1: # %bb1
+; CHECK-NEXT: movl {{[0-9]+}}(%esp), %eax
+; CHECK-NEXT: nop
+; CHECK-NEXT: nop
+; CHECK-NEXT: retl
+; CHECK-NEXT: .LBB5_2: # %bb2
+; CHECK-NEXT: movl {{[0-9]+}}(%esp), %eax
+; CHECK-NEXT: nop
+; CHECK-NEXT: nop
+; CHECK-NEXT: retl
-; CHECK: nop
-; CHECK: nop
-; CHECK: ret
-; CHECK: nop
-; CHECK: nop
-; CHECK: ret
br i1 %c, label %bb1, label %bb2
@@ -69,41 +82,52 @@ bb2:
ret i32 %b
}
-define void @test_call_others(i32 %x) nounwind
-{
-; CHECK: test_call_others
-; CHECK: je
+define void @test_call_others(i32 %x) nounwind {
+; CHECK-LABEL: test_call_others:
+; CHECK: # %bb.0:
+; CHECK-NEXT: cmpl $0, {{[0-9]+}}(%esp)
+; CHECK-NEXT: je .LBB6_1
+; CHECK-NEXT: # %bb.2: # %true.case
+; CHECK-NEXT: jmp external_function at PLT # TAILCALL
+; CHECK-NEXT: .LBB6_1: # %if.end
+; CHECK-NEXT: nop
+; CHECK-NEXT: nop
+; CHECK-NEXT: nop
+; CHECK-NEXT: nop
+; CHECK-NEXT: retl
%tobool = icmp eq i32 %x, 0
br i1 %tobool, label %if.end, label %true.case
-; CHECK: jmp external_function
true.case:
tail call void @external_function() nounwind
br label %if.end
-; CHECK: nop
-; CHECK: nop
-; CHECK: nop
-; CHECK: nop
-; CHECK: ret
if.end:
ret void
}
define void @test_branch_to_same_bb(i32 %x, i32 %y) nounwind {
-; CHECK: @test_branch_to_same_bb
+; CHECK-LABEL: test_branch_to_same_bb:
+; CHECK: # %bb.0:
+; CHECK-NEXT: cmpl $0, {{[0-9]+}}(%esp)
+; CHECK-NEXT: jle .LBB7_2
+; CHECK-NEXT: .p2align 4, 0x90
+; CHECK-NEXT: .LBB7_1: # %while.cond
+; CHECK-NEXT: # =>This Inner Loop Header: Depth=1
+; CHECK-NEXT: jmp .LBB7_1
+; CHECK-NEXT: .LBB7_2: # %while.end
+; CHECK-NEXT: nop
+; CHECK-NEXT: nop
+; CHECK-NEXT: nop
+; CHECK-NEXT: nop
+; CHECK-NEXT: retl
%cmp = icmp sgt i32 %x, 0
br i1 %cmp, label %while.cond, label %while.end
while.cond:
br label %while.cond
-; CHECK: nop
-; CHECK: nop
-; CHECK: nop
-; CHECK: nop
-; CHECK: ret
while.end:
ret void
}
More information about the llvm-commits
mailing list