mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
19 lines
342 B
Plaintext
19 lines
342 B
Plaintext
// #target: macos-x64
|
|
module test;
|
|
fn void main()
|
|
{
|
|
{
|
|
float[<2>] vf1 = { 1, -1 };
|
|
float[<2>] absf = $$abs(vf1);
|
|
}
|
|
{
|
|
int[<2>] v1 = { 1, -1 };
|
|
int[<2>] absi = $$abs(v1);
|
|
}
|
|
}
|
|
|
|
/* #expect: test.ll
|
|
|
|
%1 = call <2 x float> @llvm.fabs.v2f32(<2 x float> %0)
|
|
%3 = call <2 x i32> @llvm.abs.v2i32(<2 x i32> %2, i1 false)
|