Mercurial > hg > CbC > CbC_llvm
annotate test/CodeGen/X86/ptr-rotate.ll @ 95:afa8332a0e37 LLVM3.8
LLVM 3.8
author | Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 13 Oct 2015 17:48:58 +0900 |
parents | 95c75e76d11b |
children |
rev | line source |
---|---|
0 | 1 ; RUN: llc -mtriple=i386-apple-darwin -mcpu=corei7 -o - < %s | FileCheck %s |
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 } |