AVX-512: Added FMA intrinsics with rounding mode
[oota-llvm.git] / test / Linker / 2003-01-30-LinkerRename.ll
index 4956f7c003a6dc6131e4d874615f69798c9d858d..1e25d3eef0c61ebec88ed32eec18d447297846a2 100644 (file)
@@ -1,10 +1,17 @@
-; This fails because the linker renames the external symbol not the internal 
-; one...
+; RUN: llvm-as %S/Inputs/2003-01-30-LinkerRename.ll -o %t.1.bc
+; RUN: llvm-as %s -o %t.2.bc
+; RUN: llvm-link %t.1.bc %t.2.bc -S | FileCheck %s
 
-; RUN: echo "implementation internal int %foo() { ret int 7 }" | as > Output/%s.1.bc
-; RUN: as < %s > Output/%s.2.bc
-; RUN: link Output/%s.[12].bc | dis | grep '%foo()' | grep -v internal
+; CHECK: @bar = global i32 ()* @foo2
 
-implementation
-int %foo() { ret int 0 }
+; CHECK:      define internal i32 @foo2() {
+; CHECK-NEXT:   ret i32 7
+; CHECK-NEXT: }
 
+; CHECK:      define i32 @foo() {
+; CHECK-NEXT:   ret i32 0
+; CHECK-NEXT: }
+
+define i32 @foo() {
+  ret i32 0
+}