mirror of
https://github.com/danog/ir.git
synced 2024-12-02 09:38:29 +01:00
20 lines
293 B
Plaintext
20 lines
293 B
Plaintext
|
--TEST--
|
||
|
001: vstore function
|
||
|
--ARGS--
|
||
|
--emit-llvm
|
||
|
--CODE--
|
||
|
{
|
||
|
l_1 = START(l_3);
|
||
|
int32_t d_2 = PARAM(l_1, "x", 1);
|
||
|
int32_t d_3 = VAR(l_1, "v");
|
||
|
l_2 = VSTORE(l_1, d_3, d_2);
|
||
|
l_3 = RETURN(l_2);
|
||
|
}
|
||
|
--EXPECT--
|
||
|
define void @test(i32 %d2)
|
||
|
{
|
||
|
%d3 = alloca i32
|
||
|
store i32 %d2, ptr %d3
|
||
|
ret void
|
||
|
}
|