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 | a79ac14fa68297f9888bc70a10df5ed9b8864e38 (patch) | |
tree | 8d8217a8928e3ee599bdde405e2e178b3a55b645 /llvm/test/CodeGen/SystemZ/fp-sqrt-01.ll | |
parent | 83687fb9e654c9d0086e7f6b728c26fa0b729e71 (diff) | |
download | bcm5719-llvm-a79ac14fa68297f9888bc70a10df5ed9b8864e38.tar.gz bcm5719-llvm-a79ac14fa68297f9888bc70a10df5ed9b8864e38.zip |
[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
llvm-svn: 230794
Diffstat (limited to 'llvm/test/CodeGen/SystemZ/fp-sqrt-01.ll')
-rw-r--r-- | llvm/test/CodeGen/SystemZ/fp-sqrt-01.ll | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/llvm/test/CodeGen/SystemZ/fp-sqrt-01.ll b/llvm/test/CodeGen/SystemZ/fp-sqrt-01.ll index 32623eefb42..e8bf65bdc98 100644 --- a/llvm/test/CodeGen/SystemZ/fp-sqrt-01.ll +++ b/llvm/test/CodeGen/SystemZ/fp-sqrt-01.ll @@ -19,7 +19,7 @@ define float @f2(float *%ptr) { ; CHECK-LABEL: f2: ; CHECK: sqeb %f0, 0(%r2) ; CHECK: br %r14 - %val = load float *%ptr + %val = load float , float *%ptr %res = call float @llvm.sqrt.f32(float %val) ret float %res } @@ -30,7 +30,7 @@ define float @f3(float *%base) { ; CHECK: sqeb %f0, 4092(%r2) ; CHECK: br %r14 %ptr = getelementptr float, float *%base, i64 1023 - %val = load float *%ptr + %val = load float , float *%ptr %res = call float @llvm.sqrt.f32(float %val) ret float %res } @@ -43,7 +43,7 @@ define float @f4(float *%base) { ; CHECK: sqeb %f0, 0(%r2) ; CHECK: br %r14 %ptr = getelementptr float, float *%base, i64 1024 - %val = load float *%ptr + %val = load float , float *%ptr %res = call float @llvm.sqrt.f32(float %val) ret float %res } @@ -55,7 +55,7 @@ define float @f5(float *%base) { ; CHECK: sqeb %f0, 0(%r2) ; CHECK: br %r14 %ptr = getelementptr float, float *%base, i64 -1 - %val = load float *%ptr + %val = load float , float *%ptr %res = call float @llvm.sqrt.f32(float %val) ret float %res } @@ -68,7 +68,7 @@ define float @f6(float *%base, i64 %index) { ; CHECK: br %r14 %ptr1 = getelementptr float, float *%base, i64 %index %ptr2 = getelementptr float, float *%ptr1, i64 100 - %val = load float *%ptr2 + %val = load float , float *%ptr2 %res = call float @llvm.sqrt.f32(float %val) ret float %res } @@ -79,23 +79,23 @@ define void @f7(float *%ptr) { ; CHECK-LABEL: f7: ; CHECK: sqeb {{%f[0-9]+}}, 16{{[04]}}(%r15) ; CHECK: br %r14 - %val0 = load volatile float *%ptr - %val1 = load volatile float *%ptr - %val2 = load volatile float *%ptr - %val3 = load volatile float *%ptr - %val4 = load volatile float *%ptr - %val5 = load volatile float *%ptr - %val6 = load volatile float *%ptr - %val7 = load volatile float *%ptr - %val8 = load volatile float *%ptr - %val9 = load volatile float *%ptr - %val10 = load volatile float *%ptr - %val11 = load volatile float *%ptr - %val12 = load volatile float *%ptr - %val13 = load volatile float *%ptr - %val14 = load volatile float *%ptr - %val15 = load volatile float *%ptr - %val16 = load volatile float *%ptr + %val0 = load volatile float , float *%ptr + %val1 = load volatile float , float *%ptr + %val2 = load volatile float , float *%ptr + %val3 = load volatile float , float *%ptr + %val4 = load volatile float , float *%ptr + %val5 = load volatile float , float *%ptr + %val6 = load volatile float , float *%ptr + %val7 = load volatile float , float *%ptr + %val8 = load volatile float , float *%ptr + %val9 = load volatile float , float *%ptr + %val10 = load volatile float , float *%ptr + %val11 = load volatile float , float *%ptr + %val12 = load volatile float , float *%ptr + %val13 = load volatile float , float *%ptr + %val14 = load volatile float , float *%ptr + %val15 = load volatile float , float *%ptr + %val16 = load volatile float , float *%ptr %sqrt0 = call float @llvm.sqrt.f32(float %val0) %sqrt1 = call float @llvm.sqrt.f32(float %val1) |