InstCombine: fold (A << C) == (B << C) --> ((A^B) & (~0U >> C)) == 0
[oota-llvm.git] / test / Transforms / InstCombine / 2003-09-09-VolatileLoadElim.ll
index adb1474a98c4d29a37503e794545c236d3a7cdb8..3e0cf1247d90fca58c65bfe635ce7b6c9f5fd751 100644 (file)
@@ -1,5 +1,7 @@
-; RUN: llvm-upgrade < %s | llvm-as | 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
 }