mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 12:12:47 +01:00
6460b25da9
Convert to new test system. This exposes test/Transforms/ConstProp/calls.ll llvm-svn: 36027
14 lines
357 B
LLVM
14 lines
357 B
LLVM
; RUN: llvm-upgrade < %s | llvm-as | opt -constprop | llvm-dis | \
|
|
; RUN: not grep {ret bool false}
|
|
|
|
%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
|
|
}
|