[InstCombine] Rephrase fix to SimplifyWithOpReplaced
[oota-llvm.git] / test / Transforms / InstCombine / 2003-09-09-VolatileLoadElim.ll
index 355087a4cef3d77bfb72f57f87e086a72503923a..3e0cf1247d90fca58c65bfe635ce7b6c9f5fd751 100644 (file)
@@ -1,5 +1,7 @@
-; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep load
-void %test(int* %P) {
-       %X = volatile load int* %P  ; Dead but not deletable!
-       ret void
+; RUN: opt < %s -instcombine -S | grep load
+
+define void @test(i32* %P) {
+        ; Dead but not deletable!
+        %X = load volatile i32, i32* %P              ; <i32> [#uses=0]
+        ret void
 }