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/MSP430/bit.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/MSP430/bit.ll')
-rw-r--r-- | test/CodeGen/MSP430/bit.ll | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/test/CodeGen/MSP430/bit.ll b/test/CodeGen/MSP430/bit.ll index 2ffc191695f..45964f97f1b 100644 --- a/test/CodeGen/MSP430/bit.ll +++ b/test/CodeGen/MSP430/bit.ll @@ -33,7 +33,7 @@ define i8 @bitbir(i8 %a) nounwind { ; CHECK: bit.b #15, r15 define i8 @bitbmi() nounwind { - %t1 = load i8* @foo8 + %t1 = load i8, i8* @foo8 %t2 = and i8 %t1, 15 %t3 = icmp ne i8 %t2, 0 %t4 = zext i1 %t3 to i8 @@ -43,7 +43,7 @@ define i8 @bitbmi() nounwind { ; CHECK: bit.b #15, &foo8 define i8 @bitbim() nounwind { - %t1 = load i8* @foo8 + %t1 = load i8, i8* @foo8 %t2 = and i8 15, %t1 %t3 = icmp ne i8 %t2, 0 %t4 = zext i1 %t3 to i8 @@ -53,7 +53,7 @@ define i8 @bitbim() nounwind { ; CHECK: bit.b #15, &foo8 define i8 @bitbrm(i8 %a) nounwind { - %t1 = load i8* @foo8 + %t1 = load i8, i8* @foo8 %t2 = and i8 %a, %t1 %t3 = icmp ne i8 %t2, 0 %t4 = zext i1 %t3 to i8 @@ -63,7 +63,7 @@ define i8 @bitbrm(i8 %a) nounwind { ; CHECK: bit.b &foo8, r15 define i8 @bitbmr(i8 %a) nounwind { - %t1 = load i8* @foo8 + %t1 = load i8, i8* @foo8 %t2 = and i8 %t1, %a %t3 = icmp ne i8 %t2, 0 %t4 = zext i1 %t3 to i8 @@ -73,8 +73,8 @@ define i8 @bitbmr(i8 %a) nounwind { ; CHECK: bit.b r15, &foo8 define i8 @bitbmm() nounwind { - %t1 = load i8* @foo8 - %t2 = load i8* @bar8 + %t1 = load i8, i8* @foo8 + %t2 = load i8, i8* @bar8 %t3 = and i8 %t1, %t2 %t4 = icmp ne i8 %t3, 0 %t5 = zext i1 %t4 to i8 @@ -114,7 +114,7 @@ define i16 @bitwir(i16 %a) nounwind { ; CHECK: bit.w #4080, r15 define i16 @bitwmi() nounwind { - %t1 = load i16* @foo16 + %t1 = load i16, i16* @foo16 %t2 = and i16 %t1, 4080 %t3 = icmp ne i16 %t2, 0 %t4 = zext i1 %t3 to i16 @@ -124,7 +124,7 @@ define i16 @bitwmi() nounwind { ; CHECK: bit.w #4080, &foo16 define i16 @bitwim() nounwind { - %t1 = load i16* @foo16 + %t1 = load i16, i16* @foo16 %t2 = and i16 4080, %t1 %t3 = icmp ne i16 %t2, 0 %t4 = zext i1 %t3 to i16 @@ -134,7 +134,7 @@ define i16 @bitwim() nounwind { ; CHECK: bit.w #4080, &foo16 define i16 @bitwrm(i16 %a) nounwind { - %t1 = load i16* @foo16 + %t1 = load i16, i16* @foo16 %t2 = and i16 %a, %t1 %t3 = icmp ne i16 %t2, 0 %t4 = zext i1 %t3 to i16 @@ -144,7 +144,7 @@ define i16 @bitwrm(i16 %a) nounwind { ; CHECK: bit.w &foo16, r15 define i16 @bitwmr(i16 %a) nounwind { - %t1 = load i16* @foo16 + %t1 = load i16, i16* @foo16 %t2 = and i16 %t1, %a %t3 = icmp ne i16 %t2, 0 %t4 = zext i1 %t3 to i16 @@ -154,8 +154,8 @@ define i16 @bitwmr(i16 %a) nounwind { ; CHECK: bit.w r15, &foo16 define i16 @bitwmm() nounwind { - %t1 = load i16* @foo16 - %t2 = load i16* @bar16 + %t1 = load i16, i16* @foo16 + %t2 = load i16, i16* @bar16 %t3 = and i16 %t1, %t2 %t4 = icmp ne i16 %t3, 0 %t5 = zext i1 %t4 to i16 |