We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 478c420 commit 6a5f3d4Copy full SHA for 6a5f3d4
llvm/test/CodeGen/X86/propogate-disjoint-in-shl-or.ll
@@ -0,0 +1,18 @@
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 void @add_shl_or_disjoint(i32 %x, ptr addrspace(1) %o) {
5
+; CHECK-LABEL: add_shl_or_disjoint:
6
+; CHECK: # %bb.0:
7
+; CHECK-NEXT: shll $2, %edi
8
+; CHECK-NEXT: orl $-1069531068, %edi # imm = 0xC0404044
9
+; CHECK-NEXT: addl $1234567890, %edi # imm = 0x499602D2
10
+; CHECK-NEXT: movl %edi, (%rsi)
11
+; CHECK-NEXT: retq
12
+ %or = or disjoint i32 %x, 4027584529
13
+ %shl = shl i32 %or, 2
14
+ %add = add i32 %shl, 1234567890
15
+ store i32 %add, ptr addrspace(1) %o
16
+ ret void
17
+}
18
0 commit comments