make check test

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'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