-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into volsa/lit
- Loading branch information
Showing
351 changed files
with
816 additions
and
864 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 18 additions & 21 deletions
39
...nitialization_test__global_initializers__initial_values_in_global_constant_variables.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,25 @@ | ||
--- | ||
source: src/codegen/tests/initialization_test/global_initializers.rs | ||
assertion_line: 38 | ||
expression: result | ||
|
||
--- | ||
; ModuleID = 'main' | ||
source_filename = "main" | ||
|
||
@c_INT = unnamed_addr constant i16 7 | ||
@c_3c = unnamed_addr constant i16 21 | ||
@c_BOOL = unnamed_addr constant i8 1 | ||
@c_not = unnamed_addr constant i8 0 | ||
@c_str = unnamed_addr constant [11 x i8] c"Hello\00\00\00\00\00\00" | ||
@c_wstr = unnamed_addr constant [11 x i16] [i16 87, i16 111, i16 114, i16 108, i16 100, i16 0, i16 0, i16 0, i16 0, i16 0, i16 0] | ||
@c_real = unnamed_addr constant float 0x40091EB860000000 | ||
@c_lreal = unnamed_addr constant double 3.141500e+00 | ||
@x = unnamed_addr constant i16 7 | ||
@y = unnamed_addr constant i16 14 | ||
@z = unnamed_addr constant i16 32 | ||
@b = unnamed_addr constant i8 1 | ||
@nb = unnamed_addr constant i8 0 | ||
@bb = unnamed_addr constant i8 0 | ||
@str = unnamed_addr constant [11 x i8] c"Hello\00\00\00\00\00\00" | ||
@wstr = unnamed_addr constant [11 x i16] [i16 87, i16 111, i16 114, i16 108, i16 100, i16 0, i16 0, i16 0, i16 0, i16 0, i16 0] | ||
@r = unnamed_addr constant float 0x3FF91EB860000000 | ||
@tau = unnamed_addr constant double 6.283000e+00 | ||
|
||
@c_INT = unnamed_addr constant i16 7, section "var-c_INT:i16" | ||
@c_3c = unnamed_addr constant i16 21, section "var-c_3c:i16" | ||
@c_BOOL = unnamed_addr constant i8 1, section "var-c_BOOL:u8" | ||
@c_not = unnamed_addr constant i8 0, section "var-c_not:u8" | ||
@c_str = unnamed_addr constant [11 x i8] c"Hello\00\00\00\00\00\00", section "var-c_str:s8u11" | ||
@c_wstr = unnamed_addr constant [11 x i16] [i16 87, i16 111, i16 114, i16 108, i16 100, i16 0, i16 0, i16 0, i16 0, i16 0, i16 0], section "var-c_wstr:s16u11" | ||
@c_real = unnamed_addr constant float 0x40091EB860000000, section "var-c_real:f32" | ||
@c_lreal = unnamed_addr constant double 3.141500e+00, section "var-c_lreal:f64" | ||
@x = unnamed_addr constant i16 7, section "var-x:i16" | ||
@y = unnamed_addr constant i16 14, section "var-y:i16" | ||
@z = unnamed_addr constant i16 32, section "var-z:i16" | ||
@b = unnamed_addr constant i8 1, section "var-b:u8" | ||
@nb = unnamed_addr constant i8 0, section "var-nb:u8" | ||
@bb = unnamed_addr constant i8 0, section "var-bb:u8" | ||
@str = unnamed_addr constant [11 x i8] c"Hello\00\00\00\00\00\00", section "var-str:s8u11" | ||
@wstr = unnamed_addr constant [11 x i16] [i16 87, i16 111, i16 114, i16 108, i16 100, i16 0, i16 0, i16 0, i16 0, i16 0, i16 0], section "var-wstr:s16u11" | ||
@r = unnamed_addr constant float 0x3FF91EB860000000, section "var-r:f32" | ||
@tau = unnamed_addr constant double 6.283000e+00, section "var-tau:f64" |
9 changes: 3 additions & 6 deletions
9
..._tests__initialization_test__global_initializers__initial_values_in_global_variables.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,10 @@ | ||
--- | ||
source: src/codegen/tests/initialization_test/global_initializers.rs | ||
assertion_line: 53 | ||
expression: result | ||
|
||
--- | ||
; ModuleID = 'main' | ||
source_filename = "main" | ||
|
||
@x = global i16 7 | ||
@y = global i8 1 | ||
@z = global float 0x400921CAC0000000 | ||
|
||
@x = global i16 7, section "var-x:i16" | ||
@y = global i8 1, section "var-y:u8" | ||
@z = global float 0x400921CAC0000000, section "var-z:f32" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 1 addition & 3 deletions
4
...codegen__tests__initialization_test__global_initializers__uninitialized_global_array.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,8 @@ | ||
--- | ||
source: src/codegen/tests/initialization_test/global_initializers.rs | ||
expression: result | ||
|
||
--- | ||
; ModuleID = 'main' | ||
source_filename = "main" | ||
|
||
@a = global [2 x i8] zeroinitializer | ||
|
||
@a = global [2 x i8] zeroinitializer, section "var-a:v" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.