mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-27 21:50:40 +00:00
7c9c6ed761
Essentially the same as the GEP change in r230786. A similar migration script can be used to update test cases, though a few more test case improvements/changes were required this time around: (r229269-r229278) import fileinput import sys import re pat = re.compile(r"((?:=|:|^)\s*load (?:atomic )?(?:volatile )?(.*?))(| addrspace\(\d+\) *)\*($| *(?:%|@|null|undef|blockaddress|getelementptr|addrspacecast|bitcast|inttoptr|\[\[[a-zA-Z]|\{\{).*$)") for line in sys.stdin: sys.stdout.write(re.sub(pat, r"\1, \2\3*\4", line)) Reviewers: rafael, dexonsmith, grosser Differential Revision: http://reviews.llvm.org/D7649 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@230794 91177308-0d34-0410-b5e6-96231b3b80d8
15 lines
526 B
LLVM
15 lines
526 B
LLVM
; RUN: llvm-as %s -o %t1.bc
|
|
; RUN: echo "declare void @__eprintf(i8*, i8*, i32, i8*) noreturn define void @foo() { tail call void @__eprintf( i8* undef, i8* undef, i32 4, i8* null ) noreturn nounwind unreachable }" | llvm-as -o %t2.bc
|
|
; RUN: llvm-link %t2.bc %t1.bc -S | FileCheck %s
|
|
; RUN: llvm-link %t1.bc %t2.bc -S | FileCheck %s
|
|
; CHECK: __eprintf
|
|
|
|
; rdar://6072702
|
|
|
|
@__eprintf = external global i8* ; <i8**> [#uses=1]
|
|
|
|
define i8* @test() {
|
|
%A = load i8*, i8** @__eprintf ; <i8*> [#uses=1]
|
|
ret i8* %A
|
|
}
|