aboutsummaryrefslogtreecommitdiff
path: root/test/Transforms/InstCombine/2006-02-07-SextZextCrash.ll
blob: e06dca914e098130e1ee31e86bbbb43190722003 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine -disable-output	

	%struct.rtx_const = type { uint, { %union.real_extract } }
	%struct.rtx_def = type { int, [1 x %union.rtunion_def] }
	%union.real_extract = type { double }
	%union.rtunion_def = type { uint }

implementation   ; Functions:

fastcc void %decode_rtx_const(%struct.rtx_def* %x, %struct.rtx_const* %value) {
	%tmp.54 = getelementptr %struct.rtx_const* %value, int 0, uint 0		; <uint*> [#uses=1]
	%tmp.56 = getelementptr %struct.rtx_def* %x, int 0, uint 0		; <int*> [#uses=1]
	%tmp.57 = load int* %tmp.56		; <int> [#uses=1]
	%tmp.58 = shl int %tmp.57, ubyte 8		; <int> [#uses=1]
	%tmp.59 = shr int %tmp.58, ubyte 24		; <int> [#uses=1]
	%tmp.60 = cast int %tmp.59 to ushort		; <ushort> [#uses=1]
	%tmp.61 = cast ushort %tmp.60 to uint		; <uint> [#uses=1]
	%tmp.62 = shl uint %tmp.61, ubyte 16		; <uint> [#uses=1]
	%tmp.65 = or uint 0, %tmp.62		; <uint> [#uses=1]
	store uint %tmp.65, uint* %tmp.54
	ret void
}