[LLVMdev] make check test

Jonathan Roelofs jonathan at codesourcery.com
Tue Aug 5 17:33:07 PDT 2014



On 8/5/14, 5:42 PM, Reed Kotler wrote:
> On 08/05/2014 04:31 PM, reed kotler wrote:
>> I'm trying to make a make check test that will assign a constant (0, 1)
>> of type i1 into
>> a larger integer (i32 for example).?
>> Any idea how to create a C program or bitcode to do that.
>>
>> The test case for my code is from test-suite but am trying to make the
>> comparable make check test.
>>
>> Tia.
>>
>> Reed
>
> Just to be clear, the constant needs to be a literal.

I think what you want is:

%0 = bitcast i1 1 to i32

... or am I missing something?


Cheers,
Jon
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev

-- 
Jon Roelofs
jonathan at codesourcery.com
CodeSourcery / Mentor Embedded



More information about the llvm-dev mailing list