llvm-6502/test/Transforms/LevelRaise/2003-11-28-IllegalTypeConversion.ll
2006-12-02 04:23:10 +00:00

11 lines
301 B
LLVM

; The program should not just cast 2143289344 to float and store it!
;
; RUN: llvm-upgrade < %s | llvm-as | opt -raise | llvm-dis | not grep 41DFF
void %test() {
%mem_tmp = alloca float
%tmp.0 = cast float* %mem_tmp to uint*
store uint 2143289344, uint* %tmp.0
ret void
}