Tanya Lattner | cd0aa81 | 2004-11-06 21:40:51 +0000 | [diff] [blame^] | 1 | ; RUN: llvm-as < %s | llc -march=c |
| 2 | |
Brian Gaeke | b1ef7d6 | 2003-11-22 04:58:25 +0000 | [diff] [blame] | 3 | %y = weak global sbyte 0 |
| 4 | implementation |
Brian Gaeke | 95c03fd | 2003-11-22 05:01:57 +0000 | [diff] [blame] | 5 | uint %testcaseshr() { |
Brian Gaeke | b1ef7d6 | 2003-11-22 04:58:25 +0000 | [diff] [blame] | 6 | entry: |
| 7 | ret uint shr (uint cast (sbyte* %y to uint), ubyte 4) |
| 8 | } |
Brian Gaeke | 95c03fd | 2003-11-22 05:01:57 +0000 | [diff] [blame] | 9 | uint %testcaseshl() { |
| 10 | entry: |
| 11 | ret uint shl (uint cast (sbyte* %y to uint), ubyte 4) |
| 12 | } |