blob: 3866200de08c620fe456524de6af22ddfaec1f7c [file] [log] [blame]
Reid Spencer69ccadd2006-12-02 04:23:10 +00001; RUN: llvm-upgrade < %s | llvm-as | llc -march=c
Tanya Lattnercd0aa812004-11-06 21:40:51 +00002
Brian Gaekeb1ef7d62003-11-22 04:58:25 +00003%y = weak global sbyte 0
4implementation
Brian Gaeke95c03fd2003-11-22 05:01:57 +00005uint %testcaseshr() {
Brian Gaekeb1ef7d62003-11-22 04:58:25 +00006entry:
7 ret uint shr (uint cast (sbyte* %y to uint), ubyte 4)
8}
Brian Gaeke95c03fd2003-11-22 05:01:57 +00009uint %testcaseshl() {
10entry:
11 ret uint shl (uint cast (sbyte* %y to uint), ubyte 4)
12}