mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-02 22:04:55 +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
41 lines
927 B
LLVM
41 lines
927 B
LLVM
; RUN: llc < %s
|
|
; PR748
|
|
@G = external global i16 ; <i16*> [#uses=1]
|
|
|
|
define void @OmNewObjHdr() {
|
|
entry:
|
|
br i1 false, label %endif.4, label %then.0
|
|
|
|
then.0: ; preds = %entry
|
|
ret void
|
|
|
|
endif.4: ; preds = %entry
|
|
br i1 false, label %else.3, label %shortcirc_next.3
|
|
|
|
shortcirc_next.3: ; preds = %endif.4
|
|
ret void
|
|
|
|
else.3: ; preds = %endif.4
|
|
switch i32 0, label %endif.10 [
|
|
i32 5001, label %then.10
|
|
i32 -5008, label %then.10
|
|
]
|
|
|
|
then.10: ; preds = %else.3, %else.3
|
|
%tmp.112 = load i16, i16* null ; <i16> [#uses=2]
|
|
%tmp.113 = load i16, i16* @G ; <i16> [#uses=2]
|
|
%tmp.114 = icmp ugt i16 %tmp.112, %tmp.113 ; <i1> [#uses=1]
|
|
%tmp.120 = icmp ult i16 %tmp.112, %tmp.113 ; <i1> [#uses=1]
|
|
%bothcond = and i1 %tmp.114, %tmp.120 ; <i1> [#uses=1]
|
|
br i1 %bothcond, label %else.4, label %then.11
|
|
|
|
then.11: ; preds = %then.10
|
|
ret void
|
|
|
|
else.4: ; preds = %then.10
|
|
ret void
|
|
|
|
endif.10: ; preds = %else.3
|
|
ret void
|
|
}
|