diff options
author | David Blaikie <dblaikie@gmail.com> | 2015-02-27 21:17:42 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2015-02-27 21:17:42 +0000 |
commit | 7c9c6ed761bf9d28c0c257a045b35781969136e0 (patch) | |
tree | 508cac951011b10e2817eacecc1fa640bbdba51e /test/CodeGen/X86/scalar_widen_div.ll | |
parent | dc64962c8649964d13cc60b83c8c400d5ae7504a (diff) |
[opaque pointer type] Add textual IR support for explicit type parameter to load instruction
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
Diffstat (limited to 'test/CodeGen/X86/scalar_widen_div.ll')
-rw-r--r-- | test/CodeGen/X86/scalar_widen_div.ll | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/test/CodeGen/X86/scalar_widen_div.ll b/test/CodeGen/X86/scalar_widen_div.ll index 2d23fc47b42..1671f8f8910 100644 --- a/test/CodeGen/X86/scalar_widen_div.ll +++ b/test/CodeGen/X86/scalar_widen_div.ll @@ -17,17 +17,17 @@ entry: store <2 x i32> addrspace(1)* %nsource, <2 x i32> addrspace(1)** %nsource.addr store <2 x i32> addrspace(1)* %dsource, <2 x i32> addrspace(1)** %dsource.addr store <2 x i32> addrspace(1)* %qdest, <2 x i32> addrspace(1)** %qdest.addr - %tmp = load <2 x i32> addrspace(1)** %qdest.addr - %tmp1 = load i32* %index + %tmp = load <2 x i32> addrspace(1)*, <2 x i32> addrspace(1)** %qdest.addr + %tmp1 = load i32, i32* %index %arrayidx = getelementptr <2 x i32>, <2 x i32> addrspace(1)* %tmp, i32 %tmp1 - %tmp2 = load <2 x i32> addrspace(1)** %nsource.addr - %tmp3 = load i32* %index + %tmp2 = load <2 x i32> addrspace(1)*, <2 x i32> addrspace(1)** %nsource.addr + %tmp3 = load i32, i32* %index %arrayidx4 = getelementptr <2 x i32>, <2 x i32> addrspace(1)* %tmp2, i32 %tmp3 - %tmp5 = load <2 x i32> addrspace(1)* %arrayidx4 - %tmp6 = load <2 x i32> addrspace(1)** %dsource.addr - %tmp7 = load i32* %index + %tmp5 = load <2 x i32>, <2 x i32> addrspace(1)* %arrayidx4 + %tmp6 = load <2 x i32> addrspace(1)*, <2 x i32> addrspace(1)** %dsource.addr + %tmp7 = load i32, i32* %index %arrayidx8 = getelementptr <2 x i32>, <2 x i32> addrspace(1)* %tmp6, i32 %tmp7 - %tmp9 = load <2 x i32> addrspace(1)* %arrayidx8 + %tmp9 = load <2 x i32>, <2 x i32> addrspace(1)* %arrayidx8 %tmp10 = sdiv <2 x i32> %tmp5, %tmp9 store <2 x i32> %tmp10, <2 x i32> addrspace(1)* %arrayidx ret void @@ -181,9 +181,9 @@ bb.nph: for.body: %i.014 = phi i32 [ 0, %bb.nph ], [ %inc, %for.body ] %arrayidx11 = getelementptr <3 x i32>, <3 x i32>* %dest, i32 %i.014 - %tmp4 = load <3 x i32>* %arrayidx11 ; <<3 x i32>> [#uses=1] + %tmp4 = load <3 x i32>, <3 x i32>* %arrayidx11 ; <<3 x i32>> [#uses=1] %arrayidx7 = getelementptr inbounds <3 x i32>, <3 x i32>* %old, i32 %i.014 - %tmp8 = load <3 x i32>* %arrayidx7 ; <<3 x i32>> [#uses=1] + %tmp8 = load <3 x i32>, <3 x i32>* %arrayidx7 ; <<3 x i32>> [#uses=1] %div = sdiv <3 x i32> %tmp4, %tmp8 store <3 x i32> %div, <3 x i32>* %arrayidx11 %inc = add nsw i32 %i.014, 1 |