Reid Spencer | d0e30dc | 2006-12-02 04:23:10 +0000 | [diff] [blame] | 1 | ; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine -disable-output |
Chris Lattner | 4c6f868 | 2006-06-28 17:34:28 +0000 | [diff] [blame] | 2 | target endian = big |
| 3 | target pointersize = 32 |
| 4 | target triple = "powerpc-apple-darwin8" |
| 5 | |
| 6 | implementation ; Functions: |
| 7 | |
| 8 | void %test() { |
| 9 | entry: |
| 10 | %tmp = getelementptr { long, long, long, long }* null, int 0, uint 3 |
| 11 | %tmp = load long* %tmp ; <long> [#uses=1] |
Reid Spencer | deb4d5a | 2006-12-31 06:02:00 +0000 | [diff] [blame] | 12 | %tmp8.ui = load ulong* null ; <ulong> [#uses=1] |
| 13 | %tmp8 = cast ulong %tmp8.ui to long ; <long> [#uses=1] |
Chris Lattner | 4c6f868 | 2006-06-28 17:34:28 +0000 | [diff] [blame] | 14 | %tmp9 = and long %tmp8, %tmp ; <long> [#uses=1] |
| 15 | %sext = cast long %tmp9 to int ; <int> [#uses=1] |
| 16 | %tmp27.i = cast int %sext to long ; <long> [#uses=1] |
| 17 | tail call void %foo( uint 0, long %tmp27.i ) |
| 18 | unreachable |
| 19 | } |
| 20 | |
| 21 | declare void %foo(uint, long) |