Skip to content

Commit 2e2c61e

Browse files
[x86] precommit test conversion via update_llc_test_checks.py (#67463)
I'm looking to update this test; pre-processing it with update_llc_test_checks.py makes it clearer what I'm changing in #20571.
1 parent e04bf91 commit 2e2c61e

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed
Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,26 @@
1+
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 3
12
; PR13504
23
; RUN: llc -mtriple=i686-- -mcpu=atom < %s | FileCheck %s
34
; Check that treemap is read before the asm statement.
4-
; CHECK: movl 8(%{{esp|ebp}})
5-
; CHECK: bsfl
6-
; CHECK-NOT: movl 8(%{{esp|ebp}})
75

8-
define i32 @foo(i32 %treemap) nounwind uwtable {
6+
define i32 @foo(i32 %treemap) nounwind {
7+
; CHECK-LABEL: foo:
8+
; CHECK: # %bb.0: # %entry
9+
; CHECK-NEXT: pushl %eax
10+
; CHECK-NEXT: movl {{[0-9]+}}(%esp), %eax
11+
; CHECK-NEXT: movl %eax, %ecx
12+
; CHECK-NEXT: negl %ecx
13+
; CHECK-NEXT: andl %eax, %ecx
14+
; CHECK-NEXT: movl %ecx, (%esp)
15+
; CHECK-NEXT: #APP
16+
; CHECK-NEXT: bsfl (%esp), %eax
17+
; CHECK-NEXT: #NO_APP
18+
; CHECK-NEXT: popl %ecx
19+
; CHECK-NEXT: retl
920
entry:
1021
%sub = sub i32 0, %treemap
1122
%and = and i32 %treemap, %sub
12-
%0 = tail call i32 asm "bsfl $1,$0\0A\09", "=r,rm,~{dirflag},~{fpsr},~{flags}"(i32 %and) nounwind
23+
%0 = call i32 asm "bsfl $1,$0", "=r,rm"(i32 %and)
1324
ret i32 %0
1425
}
1526

0 commit comments

Comments
 (0)