hanchenye-llvm-project/llvm/test/Transforms/ConstProp/2005-01-28-SetCCGEP.ll

14 lines
357 B
LLVM
Raw Normal View History

; RUN: llvm-upgrade < %s | llvm-as | opt -constprop | llvm-dis | \
; RUN: not grep {ret bool false}
2005-01-29 03:08:32 +08:00
%b = external global [2 x { }]
implementation
bool %f() {
; tmp.2 -> true, not false.
%tmp.2 = seteq { }* getelementptr ([2 x { }]* %b, int 0, int 0),
getelementptr ([2 x { }]* %b, int 0, int 1)
ret bool %tmp.2
}