1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00
llvm-mirror/test/FrontendC/ptr-rotate.c
Bill Wendling 6f187b7ee9 Make for 32-bit only.
llvm-svn: 79614
2009-08-21 09:29:26 +00:00

8 lines
305 B
C

// RUN: %llvmgcc %s -c -m32 -o /dev/null
// RUN: %llvmgcc %s -c -O1 -m32 -emit-llvm -o - | llc -march=x86 -mtriple=i386-apple-darwin9.7 | FileCheck %s -check-prefix=DARWIN
unsigned int func(void *A) {
// DARWIN: roll $27
return ((((unsigned long long) A) >> 5) | (((unsigned long long) A) << 27));
}