llvm-project/llvm/test/Regression/CodeGen/CBackend/2003-11-21-ConstantShiftExp...

13 lines
263 B
LLVM
Raw Normal View History

; RUN: llvm-upgrade < %s | llvm-as | llc -march=c
2004-11-07 05:40:51 +08:00
%y = weak global sbyte 0
implementation
2003-11-22 13:01:57 +08:00
uint %testcaseshr() {
entry:
ret uint shr (uint cast (sbyte* %y to uint), ubyte 4)
}
2003-11-22 13:01:57 +08:00
uint %testcaseshl() {
entry:
ret uint shl (uint cast (sbyte* %y to uint), ubyte 4)
}