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/vsx.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/vsx.ll')
-rw-r--r-- | test/CodeGen/PowerPC/vsx.ll | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/test/CodeGen/PowerPC/vsx.ll b/test/CodeGen/PowerPC/vsx.ll index f91ffdb960b..25cf3d4750a 100644 --- a/test/CodeGen/PowerPC/vsx.ll +++ b/test/CodeGen/PowerPC/vsx.ll @@ -501,7 +501,7 @@ define <2 x i64> @test27(<2 x i64> %a, <2 x i64> %b) { } define <2 x double> @test28(<2 x double>* %a) { - %v = load <2 x double>* %a, align 16 + %v = load <2 x double>, <2 x double>* %a, align 16 ret <2 x double> %v ; CHECK-LABEL: @test28 @@ -519,7 +519,7 @@ define void @test29(<2 x double>* %a, <2 x double> %b) { } define <2 x double> @test28u(<2 x double>* %a) { - %v = load <2 x double>* %a, align 8 + %v = load <2 x double>, <2 x double>* %a, align 8 ret <2 x double> %v ; CHECK-LABEL: @test28u @@ -537,7 +537,7 @@ define void @test29u(<2 x double>* %a, <2 x double> %b) { } define <2 x i64> @test30(<2 x i64>* %a) { - %v = load <2 x i64>* %a, align 16 + %v = load <2 x i64>, <2 x i64>* %a, align 16 ret <2 x i64> %v ; CHECK-REG-LABEL: @test30 @@ -562,7 +562,7 @@ define void @test31(<2 x i64>* %a, <2 x i64> %b) { } define <4 x float> @test32(<4 x float>* %a) { - %v = load <4 x float>* %a, align 16 + %v = load <4 x float>, <4 x float>* %a, align 16 ret <4 x float> %v ; CHECK-REG-LABEL: @test32 @@ -590,7 +590,7 @@ define void @test33(<4 x float>* %a, <4 x float> %b) { } define <4 x float> @test32u(<4 x float>* %a) { - %v = load <4 x float>* %a, align 8 + %v = load <4 x float>, <4 x float>* %a, align 8 ret <4 x float> %v ; CHECK-LABEL: @test32u @@ -616,7 +616,7 @@ define void @test33u(<4 x float>* %a, <4 x float> %b) { } define <4 x i32> @test34(<4 x i32>* %a) { - %v = load <4 x i32>* %a, align 16 + %v = load <4 x i32>, <4 x i32>* %a, align 16 ret <4 x i32> %v ; CHECK-REG-LABEL: @test34 @@ -718,7 +718,7 @@ define <2 x i64> @test47(<2 x float> %a) { } define <2 x double> @test50(double* %a) { - %v = load double* %a, align 8 + %v = load double, double* %a, align 8 %w = insertelement <2 x double> undef, double %v, i32 0 %x = insertelement <2 x double> %w, double %v, i32 1 ret <2 x double> %x |