Skip to content

Commit d08e118

Browse files
committed
Precommit test for propagate disjoint.NFC
Signed-off-by: feng.feng <[email protected]>
1 parent f811d7b commit d08e118

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2+
; RUN: llc -mtriple=x86_64 %s -start-before=x86-isel -o - | FileCheck %s
3+
4+
define i32 @add_shl_or_disjoint(i32 %x) {
5+
; CHECK-LABEL: add_shl_or_disjoint:
6+
; CHECK: # %bb.0:
7+
; CHECK-NEXT: # kill: def $edi killed $edi def $rdi
8+
; CHECK-NEXT: leal (,%rdi,4), %eax
9+
; CHECK-NEXT: orl $-1069531068, %eax # imm = 0xC0404044
10+
; CHECK-NEXT: addl $1234567890, %eax # imm = 0x499602D2
11+
; CHECK-NEXT: retq
12+
%or = or disjoint i32 %x, 4027584529
13+
%shl = shl i32 %or, 2
14+
%add = add i32 %shl, 1234567890
15+
ret i32 %add
16+
}
17+

0 commit comments

Comments
 (0)