summaryrefslogtreecommitdiff
path: root/test/Transforms/LevelRaise/2002-03-21-MissedRaise3.ll
blob: 310f34fb81aa0bdb2b2962a7d9e7d68c93c31a7a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
; XFAIL: *
; RUN: llvm-upgrade < %s | llvm-as | opt -raise | llvm-dis | not grep bitcast

	%Hash = type { { uint, sbyte *, \2 } * *, int (uint) *, int } *
	%HashEntry = type { uint, sbyte *, \2 } *
	%hash = type { { uint, sbyte *, \2 } * *, int (uint) *, int }
	%hash_entry = type { uint, sbyte *, \2 * }
implementation

%Hash "MakeHash"(int %size, int (uint) * %map) {
	%reg112 = malloc sbyte * *, uint 3		; <sbyte * * *> [#uses=5]
	%reg107-uint = cast int %size to uint		; <uint> [#uses=1]
	%reg115 = malloc sbyte *, uint %reg107-uint		; <sbyte * *> [#uses=1]
	store sbyte * * %reg115, sbyte * * * %reg112

	%cast246 = cast sbyte * * * %reg112 to %Hash		; <%Hash> [#uses=1]
	ret %Hash %cast246
}