diff options
author | Eric Christopher <echristo@apple.com> | 2011-07-20 03:09:11 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2011-07-20 03:09:11 +0000 |
commit | 60648578ba6203cb7cc2a4c119c81a6b48af6942 (patch) | |
tree | be2306ff61dbf74249875af690264675d32c001c | |
parent | 954bdafb50b61214a03d3d90be98218c1e5c0cf6 (diff) | |
download | bcm5719-llvm-60648578ba6203cb7cc2a4c119c81a6b48af6942.tar.gz bcm5719-llvm-60648578ba6203cb7cc2a4c119c81a6b48af6942.zip |
New pointer rotate test.
llvm-svn: 135562
-rw-r--r-- | llvm/test/CodeGen/X86/ptr-rotate.ll | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/X86/ptr-rotate.ll b/llvm/test/CodeGen/X86/ptr-rotate.ll new file mode 100644 index 00000000000..6debd16ba5d --- /dev/null +++ b/llvm/test/CodeGen/X86/ptr-rotate.ll @@ -0,0 +1,11 @@ +; RUN: llc -mtriple=i386-apple-darwin -o - < %s | FileCheck %s + +define i32 @func(i8* %A) nounwind readnone { +entry: + %tmp = ptrtoint i8* %A to i32 + %shr = lshr i32 %tmp, 5 + %shl = shl i32 %tmp, 27 + %or = or i32 %shr, %shl +; CHECK: roll $27 + ret i32 %or +} |