Skip to content

Commit

Permalink
[FIX] fixing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Cr0a3 committed Oct 19, 2024
1 parent 970117d commit 2ca2203
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 33 deletions.
21 changes: 0 additions & 21 deletions fp.yl

This file was deleted.

16 changes: 5 additions & 11 deletions tests/IR/assign/fp0.yl
Original file line number Diff line number Diff line change
@@ -1,19 +1,13 @@
# RUN:
cargo run -p ylc -- -in=%s -o=out.o
gcc out.o %c -o a.exe
gcc out.o -o a.exe
./a.exe
# IN:
define f32 @test() {
define i32 @main() {
entry:
%return_value = f32 5.0
ret f32 5
}

# IN2:
extern float test();

int main() {
return (int)test();
%val = f32 5.0
%ret = cast f32 %val to i32
ret i32 %ret
}

# EXIT_CODE=5
2 changes: 1 addition & 1 deletion tests/Optimizations/const_eval/cast0.yl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ cargo run -p ylc -- -in=%s -O -fmt -passes=cp
define i32 @main() {
entry:
%0 = i32 5
%1 = cast %0 to i32
%1 = cast i32 %0 to i32
ret i32 %1
}

Expand Down

0 comments on commit 2ca2203

Please sign in to comment.