blob: 32358a409f4754eb937543116e7e3ed0ea6853f0 [file] [log] [blame]
Tanya Lattnerf14e76d2004-11-06 21:40:51 +00001; RUN: llvm-as < %s | llc -march=c
2
Brian Gaekeb4c17822003-11-22 04:58:25 +00003%y = weak global sbyte 0
4implementation
Brian Gaeke27a07722003-11-22 05:01:57 +00005uint %testcaseshr() {
Brian Gaekeb4c17822003-11-22 04:58:25 +00006entry:
7 ret uint shr (uint cast (sbyte* %y to uint), ubyte 4)
8}
Brian Gaeke27a07722003-11-22 05:01:57 +00009uint %testcaseshl() {
10entry:
11 ret uint shl (uint cast (sbyte* %y to uint), ubyte 4)
12}