mirror of
https://github.com/danog/ir.git
synced 2024-12-11 16:59:46 +01:00
16 lines
210 B
Plaintext
16 lines
210 B
Plaintext
|
--TEST--
|
||
|
001: IJMP - computed goto
|
||
|
--ARGS--
|
||
|
--emit-llvm
|
||
|
--CODE--
|
||
|
{
|
||
|
l_1 = START(l_2);
|
||
|
uintptr_t p = PARAM(l_1, "p", 1);
|
||
|
l_2 = IJMP(l_1, p);
|
||
|
}
|
||
|
--EXPECT--
|
||
|
define void @test(ptr %d2)
|
||
|
{
|
||
|
indirectbr ptr %d2, []
|
||
|
}
|