Evan Cheng | 4621d27 | 2010-01-11 17:03:47 +0000 | [diff] [blame^] | 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 | } |