blob: 0723d6baac830d479017849feccc2e657250b3f9 [file] [log] [blame]
Brian Gaeke508a41b2003-06-23 19:59:17 +00001
2; RUN: as < %s | dis -c > Output/%s.cbe.c
3; RUN: gcc -B/usr/bin/ Output/%s.cbe.c -o Output/%s.cbe
4; RUN: Output/%s.cbe
5
6bool %doTest(ubyte %x) {
7 %dec.0 = add ubyte %x, 255
8 %tmp.1001 = cast ubyte %dec.0 to bool
9 ret bool %tmp.1001
10}
11
12int %main () {
13 %result = call bool %doTest(ubyte 1)
14 %p = cast bool %result to int
15 ret int %p
16}