mirror of
https://github.com/danog/ir.git
synced 2024-12-12 09:19:47 +01:00
18 lines
231 B
Plaintext
18 lines
231 B
Plaintext
|
--TEST--
|
||
|
002: not function
|
||
|
--ARGS--
|
||
|
--emit-llvm
|
||
|
--CODE--
|
||
|
{
|
||
|
l_1 = START(l_4);
|
||
|
bool x = PARAM(l_1, "x", 1);
|
||
|
bool ret = NOT(x);
|
||
|
l_4 = RETURN(l_1, ret);
|
||
|
}
|
||
|
--EXPECT--
|
||
|
define i1 @test(i1 %d2)
|
||
|
{
|
||
|
%d3 = icmp eq i1 %d2, 0
|
||
|
ret i1 %d3
|
||
|
}
|