ir/tests/llvm/copy_001.irt

18 lines
255 B
Plaintext
Raw Normal View History

2023-09-28 19:44:45 +02:00
--TEST--
001: copy function
--ARGS--
--emit-llvm
--CODE--
{
l_1 = START(l_2);
int32_t d_2 = PARAM(l_1, "x", 1);
int32_t d_3 = COPY(d_2, 1);
l_2 = RETURN(l_1, d_3);
}
--EXPECT--
define i32 @test(i32 %d2)
{
%d3 = bitcast i32 %d2 to i32
ret i32 %d3
}