X86: Make sure we account for the FMA4 register immediate value, otherwise rip-rel...
[oota-llvm.git] / test / Feature / load_module.ll
index b229e261e810df04799c95a6dabac82a3d44fdb8..14c1153fa5698ae0519be69bf666609a602f6f1e 100644 (file)
@@ -1,6 +1,12 @@
 ; PR1318
-; RUN: llvm-as < %s > %t.bc &&
-; RUN: opt -load=%llvmlibsdir/LLVMHello%shlibext -hello \
-; RUN:   -disable-output %t.bc | grep Hello
+; RUN: opt < %s -load=%llvmshlibdir/LLVMHello%shlibext -hello \
+; RUN:   -disable-output 2>&1 | grep Hello
+; REQUIRES: loadable_module
+; FIXME: On Cygming, it might fail without building LLVMHello manually.
 
 @junk = global i32 0
+
+define i32* @somefunk() {
+  ret i32* @junk
+}
+