merge two tests.
[oota-llvm.git] / test / Transforms / InstCombine / 2003-09-09-VolatileLoadElim.ll
index 355087a4cef3d77bfb72f57f87e086a72503923a..32979191f853be8c545e47660847eb4b8bf625ed 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 = volatile load i32* %P              ; <i32> [#uses=0]
+        ret void
 }