blob: 3866200de08c620fe456524de6af22ddfaec1f7c [file] [log] [blame]
Reid Spencerd0e30dc2006-12-02 04:23:10 +00001; RUN: llvm-upgrade < %s | llvm-as | llc -march=c
Tanya Lattnerf14e76d2004-11-06 21:40:51 +00002
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}