mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 20:29:48 +00:00
e16746d92d
is now generated by the LLVM backend for "trunc to bool" instructions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31935 91177308-0d34-0410-b5e6-96231b3b80d8
17 lines
302 B
C
17 lines
302 B
C
// RUN: %llvmgcc -S %s -o - | grep 'trunc.*to bool'
|
|
// RUN: %llvmgcc -S %s -o - | llvm-as | llc -march=x86 | grep 'test.*1'
|
|
int
|
|
main ( int argc, char** argv)
|
|
{
|
|
int i;
|
|
int result = 1;
|
|
for (i = 2; i <= 3; i++)
|
|
{
|
|
if ((i & 1) == 0)
|
|
{
|
|
result = result + 17;
|
|
}
|
|
}
|
|
return result;
|
|
}
|