blob: 837494f5301dfeca18874ba7d80975f7be4bfcd3 [file] [log] [blame]
Reid Spencerd0e30dc2006-12-02 04:23:10 +00001; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | grep false
Chris Lattnercad69cd2003-10-23 16:00:59 +00002;
3; This actually looks like a constant propagation bug
4
Chris Lattner04f11632003-10-23 05:10:53 +00005%X = type { [10 x int], float }
6
7implementation
8
9bool %test() {
Reid Spencer0e43e152006-11-23 15:14:52 +000010 %A = getelementptr %X* null, long 0, uint 0, long 0
Chris Lattner04f11632003-10-23 05:10:53 +000011 %B = setne int* %A, null
12 ret bool %B
13}