Skip to content

Commit fd452da

Browse files
committed
[X86] constant-hoisting-cmp.ll - regenerate test checks
1 parent a0adadd commit fd452da

File tree

1 file changed

+20
-4
lines changed

1 file changed

+20
-4
lines changed

llvm/test/CodeGen/X86/constant-hoisting-cmp.ll

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,31 @@
1+
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5
12
; RUN: llc < %s -O3 -mtriple=x86_64-- |FileCheck %s
2-
define i64 @foo(i64 %data1, i64 %data2, i64 %data3)
3-
{
3+
44
; If constant 4294967295 is hoisted to a variable, then we won't be able to
55
; use a shift right by 32 to optimize the compare.
6+
define i64 @foo(i64 %data1, i64 %data2, i64 %data3) {
7+
; CHECK-LABEL: foo:
8+
; CHECK: # %bb.0: # %entry
9+
; CHECK-NEXT: movq %rdx, %rax
10+
; CHECK-NEXT: shrq $32, %rdi
11+
; CHECK-NEXT: je .LBB0_2
12+
; CHECK-NEXT: # %bb.1:
13+
; CHECK-NEXT: incq %rax
14+
; CHECK-NEXT: retq
15+
; CHECK-NEXT: .LBB0_2: # %L_val2
16+
; CHECK-NEXT: shrq $32, %rsi
17+
; CHECK-NEXT: je .LBB0_4
18+
; CHECK-NEXT: # %bb.3:
19+
; CHECK-NEXT: addq $2, %rax
20+
; CHECK-NEXT: retq
21+
; CHECK-NEXT: .LBB0_4: # %L_val3
22+
; CHECK-NEXT: addq $3, %rax
23+
; CHECK-NEXT: retq
624
entry:
725
%val1 = add i64 %data3, 1
826
%x = icmp ugt i64 %data1, 4294967295
927
br i1 %x, label %End, label %L_val2
1028

11-
; CHECK: shrq $32, {{.*}}
12-
; CHECK: shrq $32, {{.*}}
1329
L_val2:
1430
%val2 = add i64 %data3, 2
1531
%y = icmp ugt i64 %data2, 4294967295

0 commit comments

Comments
 (0)