summaryrefslogtreecommitdiff
path: root/test/Other/2002-03-14-ValueToLarge.ll
blob: 8daa138c8802e0979332e435480b6336c72a0890 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
; Expression analysis had a problem where the following assertion would get
; emitted:
; Constants.cpp:114: failed assertion `isValueValidForType(Ty, V) &&
;                                       "Value too large for type!"'
;
; Testcase distilled from the bzip2 SPECint benchmark.
;
; RUN: analyze -exprs %s

implementation

void "sortIt"(ubyte %X)
begin
	%reg115 = shl ubyte %X, ubyte 8
	ret void
end