projects
/
oota-llvm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Fix a bug in GetKnownAlignment of packed structs.
[oota-llvm.git]
/
test
/
CodeGen
/
CBackend
/
2003-11-21-ConstantShiftExpr.ll
1
; RUN: llvm-upgrade < %s | llvm-as | llc -march=c
2
3
%y = weak global sbyte 0
4
implementation
5
uint %testcaseshr() {
6
entry:
7
ret uint shr (uint cast (sbyte* %y to uint), ubyte 4)
8
}
9
uint %testcaseshl() {
10
entry:
11
ret uint shl (uint cast (sbyte* %y to uint), ubyte 4)
12
}