mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-21 18:29:46 +00:00
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
19 lines
999 B
LLVM
19 lines
999 B
LLVM
; RUN: llc -mtriple=arm-eabi %s -o /dev/null
|
|
; PR3795
|
|
|
|
define fastcc void @_D3foo3fooFAriZv({ i32, { double, double }* } %d_arg, i32 %x_arg) {
|
|
entry:
|
|
%d = alloca { i32, { double, double }* } ; <{ i32, { double, double }* }*> [#uses=2]
|
|
%x = alloca i32 ; <i32*> [#uses=2]
|
|
%b = alloca { double, double } ; <{ double, double }*> [#uses=1]
|
|
store { i32, { double, double }* } %d_arg, { i32, { double, double }* }* %d
|
|
store i32 %x_arg, i32* %x
|
|
%tmp = load i32, i32* %x ; <i32> [#uses=1]
|
|
%tmp1 = getelementptr { i32, { double, double }* }, { i32, { double, double }* }* %d, i32 0, i32 1 ; <{ double, double }**> [#uses=1]
|
|
%.ptr = load { double, double }*, { double, double }** %tmp1 ; <{ double, double }*> [#uses=1]
|
|
%tmp2 = getelementptr { double, double }, { double, double }* %.ptr, i32 %tmp ; <{ double, double }*> [#uses=1]
|
|
%tmp3 = load { double, double }, { double, double }* %tmp2 ; <{ double, double }> [#uses=1]
|
|
store { double, double } %tmp3, { double, double }* %b
|
|
ret void
|
|
}
|