diff --git a/test/Transforms/InstCombine/store.ll b/test/Transforms/InstCombine/store.ll new file mode 100644 index 00000000000..6982e0deb06 --- /dev/null +++ b/test/Transforms/InstCombine/store.ll @@ -0,0 +1,9 @@ +; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep -v 'store.*,.*null' | not grep store + + +void %test1(int* %P) { + store int undef, int* %P + store int 123, int* undef + store int 124, int* null + ret void +}