Skip to content

Commit

Permalink
modify test format
Browse files Browse the repository at this point in the history
  • Loading branch information
wenhu1024 committed Jul 31, 2024
1 parent 3db391f commit c3da371
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions test/Conversion/ImportVerilog/basic.sv
Original file line number Diff line number Diff line change
Expand Up @@ -202,17 +202,17 @@ module Basic;
MyEnum ev1 = VariantA;
MyEnum ev2 = VariantB;

// CHECK: [[STR_WELCOME:%.+]] = moore.string_constant "Welcome to Moore" : i128
// CHECK: [[CONV_WELCOME:%.+]] = moore.conversion [[STR_WELCOME]] : !moore.i128 -> !moore.string
// CHECK: [[VAR_S:%.+]] = moore.variable [[CONV_WELCOME]] : <string>
string s = "Welcome to Moore";

// CHECK: [[VAR_S1:%.+]] = moore.variable : <string>
// CHECK: [[STR_HELLO:%.+]] = moore.string_constant "Hello World" : i88
// CHECK: [[CONV_HELLO:%.+]] = moore.conversion [[STR_HELLO]] : !moore.i88 -> !moore.string
// CHECK: moore.assign [[VAR_S1]], [[CONV_HELLO]] : string
string s1;
assign s1 = "Hello World";
// CHECK: [[STR_WELCOME:%.+]] = moore.string_constant "Welcome to Moore" : i128
// CHECK: [[CONV_WELCOME:%.+]] = moore.conversion [[STR_WELCOME]] : !moore.i128 -> !moore.string
// CHECK: [[VAR_S:%.+]] = moore.variable [[CONV_WELCOME]] : <string>
string s = "Welcome to Moore";

// CHECK: [[VAR_S1:%.+]] = moore.variable : <string>
// CHECK: [[STR_HELLO:%.+]] = moore.string_constant "Hello World" : i88
// CHECK: [[CONV_HELLO:%.+]] = moore.conversion [[STR_HELLO]] : !moore.i88 -> !moore.string
// CHECK: moore.assign [[VAR_S1]], [[CONV_HELLO]] : string
string s1;
assign s1 = "Hello World";

endmodule

Expand Down

0 comments on commit c3da371

Please sign in to comment.