blob: 73f2900a1525163421630059b7353c481c37799d [file] [log] [blame]
Reid Spencer4dc9e5a2006-12-03 16:17:19 +00001; RUN: llvm-upgrade %s | llvm-as -f -o %t.bc
Tanya Lattnere9789ef2004-11-06 23:32:43 +00002; RUN: lli %t.bc > /dev/null
3
Chris Lattner4a8068f2003-01-13 01:03:16 +00004; We were accidentally inverting the signedness of right shifts. Whoops.
5
6int %main() {
7 %X = shr int -1, ubyte 16
8 %Y = shr int %X, ubyte 16
9 %Z = add int %Y, 1
10 ret int %Z
11}