projects
/
oota-llvm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Select an OR with immediate as an ADD if the input bits are known zero. This allow...
[oota-llvm.git]
/
test
/
CodeGen
/
X86
/
3addr-or.ll
1
; RUN: llc < %s -mtriple=x86_64-apple-darwin | FileCheck %s
2
; rdar://7527734
3
4
define i32 @test(i32 %x) nounwind readnone ssp {
5
entry:
6
; CHECK: test:
7
; CHECK: leal 3(%rdi), %eax
8
%0 = shl i32 %x, 5 ; <i32> [#uses=1]
9
%1 = or i32 %0, 3 ; <i32> [#uses=1]
10
ret i32 %1
11
}