mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +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
34 lines
1.0 KiB
LLVM
34 lines
1.0 KiB
LLVM
; RUN: opt < %s -reassociate
|
|
; PR9039
|
|
target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:32:32-n8:16:32"
|
|
target triple = "i386-gnu-linux"
|
|
|
|
define void @exp_averages_intraday__deviation() {
|
|
entry:
|
|
%0 = load i32, i32* undef, align 4
|
|
%1 = shl i32 %0, 2
|
|
%2 = add nsw i32 undef, %1
|
|
%3 = add nsw i32 %2, undef
|
|
%4 = mul nsw i32 %0, 12
|
|
%5 = add nsw i32 %3, %4
|
|
%6 = add nsw i32 %5, %4
|
|
%7 = add nsw i32 %6, undef
|
|
br i1 false, label %"4", label %"12"
|
|
|
|
"4": ; preds = %entry
|
|
br i1 undef, label %"5", label %"8"
|
|
|
|
"5": ; preds = %"4"
|
|
unreachable
|
|
|
|
"8": ; preds = %"4"
|
|
%8 = getelementptr inbounds i8, i8* undef, i32 %6
|
|
br i1 undef, label %"13", label %"12"
|
|
|
|
"12": ; preds = %"8", %entry
|
|
ret void
|
|
|
|
"13": ; preds = %"8"
|
|
ret void
|
|
}
|