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-mul-02.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-mul-02.ll')
-rw-r--r-- | llvm/test/CodeGen/SystemZ/fp-mul-02.ll | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/llvm/test/CodeGen/SystemZ/fp-mul-02.ll b/llvm/test/CodeGen/SystemZ/fp-mul-02.ll index 151d5b13adf..8435c3f5d3a 100644 --- a/llvm/test/CodeGen/SystemZ/fp-mul-02.ll +++ b/llvm/test/CodeGen/SystemZ/fp-mul-02.ll @@ -20,7 +20,7 @@ define double @f2(float %f1, float *%ptr) { ; CHECK-LABEL: f2: ; CHECK: mdeb %f0, 0(%r2) ; CHECK: br %r14 - %f2 = load float *%ptr + %f2 = load float , float *%ptr %f1x = fpext float %f1 to double %f2x = fpext float %f2 to double %res = fmul double %f1x, %f2x @@ -33,7 +33,7 @@ define double @f3(float %f1, float *%base) { ; CHECK: mdeb %f0, 4092(%r2) ; CHECK: br %r14 %ptr = getelementptr float, float *%base, i64 1023 - %f2 = load float *%ptr + %f2 = load float , float *%ptr %f1x = fpext float %f1 to double %f2x = fpext float %f2 to double %res = fmul double %f1x, %f2x @@ -48,7 +48,7 @@ define double @f4(float %f1, float *%base) { ; CHECK: mdeb %f0, 0(%r2) ; CHECK: br %r14 %ptr = getelementptr float, float *%base, i64 1024 - %f2 = load float *%ptr + %f2 = load float , float *%ptr %f1x = fpext float %f1 to double %f2x = fpext float %f2 to double %res = fmul double %f1x, %f2x @@ -62,7 +62,7 @@ define double @f5(float %f1, float *%base) { ; CHECK: mdeb %f0, 0(%r2) ; CHECK: br %r14 %ptr = getelementptr float, float *%base, i64 -1 - %f2 = load float *%ptr + %f2 = load float , float *%ptr %f1x = fpext float %f1 to double %f2x = fpext float %f2 to double %res = fmul double %f1x, %f2x @@ -77,7 +77,7 @@ define double @f6(float %f1, float *%base, i64 %index) { ; CHECK: br %r14 %ptr1 = getelementptr float, float *%base, i64 %index %ptr2 = getelementptr float, float *%ptr1, i64 100 - %f2 = load float *%ptr2 + %f2 = load float , float *%ptr2 %f1x = fpext float %f1 to double %f2x = fpext float %f2 to double %res = fmul double %f1x, %f2x @@ -101,17 +101,17 @@ define float @f7(float *%ptr0) { %ptr9 = getelementptr float, float *%ptr0, i64 18 %ptr10 = getelementptr float, float *%ptr0, i64 20 - %val0 = load float *%ptr0 - %val1 = load float *%ptr1 - %val2 = load float *%ptr2 - %val3 = load float *%ptr3 - %val4 = load float *%ptr4 - %val5 = load float *%ptr5 - %val6 = load float *%ptr6 - %val7 = load float *%ptr7 - %val8 = load float *%ptr8 - %val9 = load float *%ptr9 - %val10 = load float *%ptr10 + %val0 = load float , float *%ptr0 + %val1 = load float , float *%ptr1 + %val2 = load float , float *%ptr2 + %val3 = load float , float *%ptr3 + %val4 = load float , float *%ptr4 + %val5 = load float , float *%ptr5 + %val6 = load float , float *%ptr6 + %val7 = load float , float *%ptr7 + %val8 = load float , float *%ptr8 + %val9 = load float , float *%ptr9 + %val10 = load float , float *%ptr10 %frob0 = fadd float %val0, %val0 %frob1 = fadd float %val1, %val1 |