Fix pointer info on PPC byval stores
[oota-llvm.git] / test / Transforms / InstCombine / 2003-09-09-VolatileLoadElim.ll
index 890d61e7ca2d32f4c80dd5abd14945040b9ae979..7f7390809c77ab1f56f6b5a2b3aa6b8444ef9eba 100644 (file)
@@ -1,5 +1,7 @@
-; RUN: as < %s | opt -instcombine | 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* %P              ; <i32> [#uses=0]
+        ret void
 }