| Michael Liao | 2de86af | 2012-09-26 08:24:51 +0000 | [diff] [blame] | 1 | ; RUN: llc -mtriple=i386-apple-darwin -mcpu=corei7 -o - < %s | FileCheck %s |
| Eric Christopher | 6064857 | 2011-07-20 03:09:11 +0000 | [diff] [blame] | 2 | |
| 3 | define i32 @func(i8* %A) nounwind readnone { | ||||
| 4 | entry: | ||||
| 5 | %tmp = ptrtoint i8* %A to i32 | ||||
| 6 | %shr = lshr i32 %tmp, 5 | ||||
| 7 | %shl = shl i32 %tmp, 27 | ||||
| 8 | %or = or i32 %shr, %shl | ||||
| 9 | ; CHECK: roll $27 | ||||
| 10 | ret i32 %or | ||||
| 11 | } | ||||