OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e250f2a
)
Testcase for r79597.
author
Bill Wendling
<isanbard@gmail.com>
Fri, 21 Aug 2009 06:12:30 +0000
(06:12 +0000)
committer
Bill Wendling
<isanbard@gmail.com>
Fri, 21 Aug 2009 06:12:30 +0000
(06:12 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79598
91177308
-0d34-0410-b5e6-
96231b3b80d8
test/FrontendC/ptr-rotate.c
[new file with mode: 0644]
patch
|
blob
diff --git a/test/FrontendC/ptr-rotate.c
b/test/FrontendC/ptr-rotate.c
new file mode 100644
(file)
index 0000000..
6c46723
--- /dev/null
+++ b/
test/FrontendC/ptr-rotate.c
@@ -0,0
+1,7
@@
+// RUN: %llvmgcc %s -c -m32 -o /dev/null
+// RUN: %llvmgcc %s -S -O1 -m32 -emit-llvm -o - | llc -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));
+}