mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 13:11:39 +01: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
15 lines
398 B
LLVM
15 lines
398 B
LLVM
; RUN: llc < %s -mtriple=i386-apple-darwin | grep mov | count 4
|
|
|
|
define i16 @test(i16* %tmp179) nounwind {
|
|
%tmp180 = load i16, i16* %tmp179, align 2 ; <i16> [#uses=2]
|
|
%tmp184 = and i16 %tmp180, -1024 ; <i16> [#uses=1]
|
|
%tmp186 = icmp eq i16 %tmp184, -32768 ; <i1> [#uses=1]
|
|
br i1 %tmp186, label %bb189, label %bb288
|
|
|
|
bb189: ; preds = %0
|
|
ret i16 %tmp180
|
|
|
|
bb288: ; preds = %0
|
|
ret i16 32
|
|
}
|