ir/tests/llvm/not_002.irt

18 lines
231 B
Plaintext
Raw Normal View History

2023-09-28 19:44:45 +02:00
--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
}