mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-02 00:16:25 +00:00
ab043ff680
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 llvm-svn: 230794
30 lines
581 B
LLVM
30 lines
581 B
LLVM
; RUN: llc < %s -march=x86
|
|
; PR3241
|
|
|
|
@g_620 = external global i32
|
|
|
|
define void @func_18(i32 %p_21) nounwind {
|
|
entry:
|
|
%t0 = call i32 @func_31(i32 %p_21) nounwind
|
|
%t1 = call i32 @safe_add_macro_uint32_t_u_u() nounwind
|
|
%t2 = icmp sgt i32 %t1, 0
|
|
%t3 = zext i1 %t2 to i32
|
|
%t4 = load i32, i32* @g_620, align 4
|
|
%t5 = icmp eq i32 %t3, %t4
|
|
%t6 = xor i32 %p_21, 1
|
|
%t7 = call i32 @func_55(i32 %t6) nounwind
|
|
br i1 %t5, label %return, label %bb
|
|
|
|
bb:
|
|
unreachable
|
|
|
|
return:
|
|
unreachable
|
|
}
|
|
|
|
declare i32 @func_31(i32)
|
|
|
|
declare i32 @safe_add_macro_uint32_t_u_u()
|
|
|
|
declare i32 @func_55(i32)
|