summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/X86/3addr-or.ll
blob: 395ba46aab321b4ea5e432d8a8f7f8c2d783b1b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
; RUN: llc < %s -mtriple=x86_64-apple-darwin | FileCheck %s
; rdar://7527734

define i32 @test(i32 %x) nounwind readnone ssp {
entry:
; CHECK: test:
; CHECK: leal 3(%rdi), %eax
  %0 = shl i32 %x, 5                              ; <i32> [#uses=1]
  %1 = or i32 %0, 3                               ; <i32> [#uses=1]
  ret i32 %1
}
OpenPOWER on IntegriCloud