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/PowerPC/unaligned.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/PowerPC/unaligned.ll')
-rw-r--r-- | test/CodeGen/PowerPC/unaligned.ll | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/CodeGen/PowerPC/unaligned.ll b/test/CodeGen/PowerPC/unaligned.ll index 64c03cdda35..6b23b18762d 100644 --- a/test/CodeGen/PowerPC/unaligned.ll +++ b/test/CodeGen/PowerPC/unaligned.ll @@ -5,7 +5,7 @@ target datalayout = "E-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f3 define void @foo1(i16* %p, i16* %r) nounwind { entry: - %v = load i16* %p, align 1 + %v = load i16, i16* %p, align 1 store i16 %v, i16* %r, align 1 ret void @@ -20,7 +20,7 @@ entry: define void @foo2(i32* %p, i32* %r) nounwind { entry: - %v = load i32* %p, align 1 + %v = load i32, i32* %p, align 1 store i32 %v, i32* %r, align 1 ret void @@ -35,7 +35,7 @@ entry: define void @foo3(i64* %p, i64* %r) nounwind { entry: - %v = load i64* %p, align 1 + %v = load i64, i64* %p, align 1 store i64 %v, i64* %r, align 1 ret void @@ -50,7 +50,7 @@ entry: define void @foo4(float* %p, float* %r) nounwind { entry: - %v = load float* %p, align 1 + %v = load float, float* %p, align 1 store float %v, float* %r, align 1 ret void @@ -65,7 +65,7 @@ entry: define void @foo5(double* %p, double* %r) nounwind { entry: - %v = load double* %p, align 1 + %v = load double, double* %p, align 1 store double %v, double* %r, align 1 ret void @@ -80,7 +80,7 @@ entry: define void @foo6(<4 x float>* %p, <4 x float>* %r) nounwind { entry: - %v = load <4 x float>* %p, align 1 + %v = load <4 x float>, <4 x float>* %p, align 1 store <4 x float> %v, <4 x float>* %r, align 1 ret void |