Chris Lattner | c79260a | 2002-05-10 15:14:54 +0000 | [diff] [blame] | 1 | ; This testcase should have the cast propogated through the load |
2 | ; just like a store does... | ||||
3 | ; | ||||
Reid Spencer | 3da59db | 2006-11-27 01:05:10 +0000 | [diff] [blame^] | 4 | ; RUN: llvm-as < %s | opt -raise | llvm-dis | not grep 'bitcast uint \*' |
Chris Lattner | c79260a | 2002-05-10 15:14:54 +0000 | [diff] [blame] | 5 | |
6 | int "test"(uint * %Ptr) { | ||||
7 | %P2 = cast uint *%Ptr to int * | ||||
8 | %Val = load int * %P2 | ||||
9 | ret int %Val | ||||
10 | } |