Adding $$reverse. Bump to 0.3.45

This commit is contained in:
Christoffer Lerno
2022-09-16 14:09:37 +02:00
committed by Christoffer Lerno
parent 4d27150952
commit c8166f6fdb
7 changed files with 67 additions and 6 deletions

View File

@@ -0,0 +1,14 @@
// #target: macos-x64
module test;
import std::io;
fn void main()
{
int[<4>] a = { 1, -3, 5, -7 };
io::printfln("%s", $$reverse(a));
}
/* #expect: test.ll
%reverse = shufflevector <4 x i32> %3, <4 x i32> poison, <4 x i32> <i32 3, i32 2, i32 1, i32 0>