xref: /aosp_15_r20/external/llvm/test/CodeGen/X86/ptr-rotate.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: llc -mtriple=i386-apple-darwin -mcpu=corei7 -o - < %s | FileCheck %s
2*9880d681SAndroid Build Coastguard Worker
3*9880d681SAndroid Build Coastguard Workerdefine i32 @func(i8* %A) nounwind readnone {
4*9880d681SAndroid Build Coastguard Workerentry:
5*9880d681SAndroid Build Coastguard Worker  %tmp = ptrtoint i8* %A to i32
6*9880d681SAndroid Build Coastguard Worker  %shr = lshr i32 %tmp, 5
7*9880d681SAndroid Build Coastguard Worker  %shl = shl i32 %tmp, 27
8*9880d681SAndroid Build Coastguard Worker  %or = or i32 %shr, %shl
9*9880d681SAndroid Build Coastguard Worker; CHECK: roll  $27
10*9880d681SAndroid Build Coastguard Worker  ret i32 %or
11*9880d681SAndroid Build Coastguard Worker}
12