Added the ability to xfail based on llvmgcc version
[llvm-complete.git] / test / Transforms / GCSE / 2003-06-13-LoadStoreEliminate.ll
blob3c3b17da5d527d1964b3e4d2f570f46d89a355a2
1 ; This testcase shows a bug where an common subexpression exists, but there
2 ; is no shared dominator block that the expression can be hoisted out to.
4 ; RUN: llvm-as < %s | opt -load-vn -gcse | llvm-dis | not grep load
6 int %test(int* %P) {
7         store int 5, int* %P
8         %Z = load int* %P
9         ret int %Z