llvm-project/llvm/test/FrontendC/ptr-rotate.c

8 lines
305 B
C
Raw Normal View History

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