mirror of
https://github.com/danog/ir.git
synced 2024-12-02 17:55:40 +01:00
16 lines
236 B
Plaintext
16 lines
236 B
Plaintext
|
--TEST--
|
||
|
002: IJMP - computed goto (constant addr)
|
||
|
--ARGS--
|
||
|
--emit-llvm
|
||
|
--CODE--
|
||
|
{
|
||
|
uintptr_t p = 0xbaddad;
|
||
|
l_1 = START(l_2);
|
||
|
l_2 = IJMP(l_1, p);
|
||
|
}
|
||
|
--EXPECT--
|
||
|
define void @test()
|
||
|
{
|
||
|
indirectbr ptr inttoptr(i64 u0xbaddad to ptr), []
|
||
|
}
|