llvm-6502/test/CodeGen/PowerPC/2008-02-05-LiveIntervalsAssert.ll
David Blaikie 5a70dd1d82 [opaque pointer type] Add textual IR support for explicit type parameter to gep operator
Similar to gep (r230786) and load (r230794) changes.

Similar migration script can be used to update test cases, which
successfully migrated all of LLVM and Polly, but about 4 test cases
needed manually changes in Clang.

(this script will read the contents of stdin and massage it into stdout
- wrap it in the 'apply.sh' script shown in previous commits + xargs to
apply it over a large set of test cases)

import fileinput
import sys
import re

rep = re.compile(r"(getelementptr(?:\s+inbounds)?\s*\()((<\d*\s+x\s+)?([^@]*?)(|\s*addrspace\(\d+\))\s*\*(?(3)>)\s*)(?=$|%|@|null|undef|blockaddress|getelementptr|addrspacecast|bitcast|inttoptr|zeroinitializer|<|\[\[[a-zA-Z]|\{\{)", re.MULTILINE | re.DOTALL)

def conv(match):
  line = match.group(1)
  line += match.group(4)
  line += ", "
  line += match.group(2)
  return line

line = sys.stdin.read()
off = 0
for match in re.finditer(rep, line):
  sys.stdout.write(line[off:match.start()])
  sys.stdout.write(conv(match))
  off = match.end()
sys.stdout.write(line[off:])

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@232184 91177308-0d34-0410-b5e6-96231b3b80d8
2015-03-13 18:20:45 +00:00

68 lines
2.1 KiB
LLVM

; RUN: llc < %s -mtriple=powerpc-apple-darwin
%struct.Handle = type { %struct.oopDesc** }
%struct.JNI_ArgumentPusher = type { %struct.SignatureIterator, %struct.JavaCallArguments* }
%struct.JNI_ArgumentPusherArray = type { %struct.JNI_ArgumentPusher, %struct.JvmtiEventEnabled* }
%struct.JavaCallArguments = type { [9 x i32], [9 x i32], i32*, i32*, i32, i32, i32 }
%struct.JvmtiEventEnabled = type { i64 }
%struct.KlassHandle = type { %struct.Handle }
%struct.SignatureIterator = type { i32 (...)**, %struct.KlassHandle, i32, i32, i32 }
%struct.instanceOopDesc = type { %struct.oopDesc }
%struct.oopDesc = type { %struct.instanceOopDesc*, %struct.instanceOopDesc* }
@.str = external constant [44 x i8] ; <[44 x i8]*> [#uses=1]
define void @_ZN23JNI_ArgumentPusherArray7iterateEy(%struct.JNI_ArgumentPusherArray* %this, i64 %fingerprint) nounwind {
entry:
br label %bb113
bb22.preheader: ; preds = %bb113
ret void
bb32.preheader: ; preds = %bb113
ret void
bb42.preheader: ; preds = %bb113
ret void
bb52: ; preds = %bb113
br label %bb113
bb62.preheader: ; preds = %bb113
ret void
bb72.preheader: ; preds = %bb113
ret void
bb82: ; preds = %bb113
br label %bb113
bb93: ; preds = %bb113
br label %bb113
bb103.preheader: ; preds = %bb113
ret void
bb113: ; preds = %bb113, %bb93, %bb82, %bb52, %entry
%fingerprint_addr.0.reg2mem.9 = phi i64 [ 0, %entry ], [ 0, %bb52 ], [ 0, %bb82 ], [ 0, %bb93 ], [ %tmp118, %bb113 ] ; <i64> [#uses=1]
tail call void @_Z28report_should_not_reach_herePKci( i8* getelementptr ([44 x i8], [44 x i8]* @.str, i32 0, i32 0), i32 817 ) nounwind
%tmp118 = lshr i64 %fingerprint_addr.0.reg2mem.9, 4 ; <i64> [#uses=2]
%tmp21158 = and i64 %tmp118, 15 ; <i64> [#uses=1]
switch i64 %tmp21158, label %bb113 [
i64 1, label %bb22.preheader
i64 2, label %bb52
i64 3, label %bb32.preheader
i64 4, label %bb42.preheader
i64 5, label %bb62.preheader
i64 6, label %bb82
i64 7, label %bb93
i64 8, label %bb103.preheader
i64 9, label %bb72.preheader
i64 10, label %UnifiedReturnBlock
]
UnifiedReturnBlock: ; preds = %bb113
ret void
}
declare void @_Z28report_should_not_reach_herePKci(i8*, i32)