mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-22 18:35:45 +00:00
14285c89e7
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8544 91177308-0d34-0410-b5e6-96231b3b80d8
17 lines
333 B
Plaintext
17 lines
333 B
Plaintext
|
|
; RUN: llvm-as < %s | llvm-dis -c > f1.cbe.c
|
|
; RUN: gcc -B/usr/bin/ f1.cbe.c -o f1.cbe
|
|
; RUN: ./f1.cbe
|
|
|
|
bool %doTest(ubyte %x) {
|
|
%dec.0 = add ubyte %x, 255
|
|
%tmp.1001 = cast ubyte %dec.0 to bool
|
|
ret bool %tmp.1001
|
|
}
|
|
|
|
int %main () {
|
|
%result = call bool %doTest(ubyte 1)
|
|
%p = cast bool %result to int
|
|
ret int %p
|
|
}
|