mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Updated mangling and bump to 0.2.18
This commit is contained in:
committed by
Christoffer Lerno
parent
4afec24434
commit
d3a053e049
@@ -39,7 +39,7 @@ fn void main()
|
||||
/* #expect: vector_bit.ll
|
||||
|
||||
; Function Attrs: nounwind
|
||||
define void @vector_bit.testf() #0 {
|
||||
define void @vector_bit_testf() #0 {
|
||||
entry:
|
||||
%y = alloca <4 x float>, align 16
|
||||
%w = alloca <4 x i32>, align 16
|
||||
@@ -61,7 +61,7 @@ entry:
|
||||
}
|
||||
|
||||
; Function Attrs: nounwind
|
||||
define void @vector_bit.testi() #0 {
|
||||
define void @vector_bit_testi() #0 {
|
||||
entry:
|
||||
%y = alloca <4 x i32>, align 16
|
||||
%z = alloca <4 x i32>, align 16
|
||||
|
||||
@@ -38,7 +38,7 @@ fn void main()
|
||||
|
||||
/* #expect: vector_incdec.ll
|
||||
|
||||
define void @vector_incdec.testf() #0 {
|
||||
define void @vector_incdec_testf() #0 {
|
||||
entry:
|
||||
%y = alloca <4 x float>, align 16
|
||||
%z = alloca <4 x float>, align 16
|
||||
@@ -113,7 +113,7 @@ entry:
|
||||
}
|
||||
|
||||
; Function Attrs: nounwind
|
||||
define void @vector_incdec.testi() #0 {
|
||||
define void @vector_incdec_testi() #0 {
|
||||
entry:
|
||||
%y = alloca <4 x i32>, align 16
|
||||
%z = alloca <4 x i32>, align 16
|
||||
@@ -182,9 +182,9 @@ entry:
|
||||
ret void
|
||||
}
|
||||
|
||||
define void @vector_incdec.main() #0 {
|
||||
define void @vector_incdec_main() #0 {
|
||||
entry:
|
||||
call void @vector_incdec.testf()
|
||||
call void @vector_incdec.testi()
|
||||
call void @vector_incdec_testf()
|
||||
call void @vector_incdec_testi()
|
||||
ret void
|
||||
}
|
||||
|
||||
@@ -14,10 +14,10 @@ fn void main()
|
||||
|
||||
/* #expect: vector_init.ll
|
||||
|
||||
@vector_init.baz = local_unnamed_addr global <4 x i32> <i32 1, i32 4, i32 5, i32 7>, align 16
|
||||
@vector_init_baz = local_unnamed_addr global <4 x i32> <i32 1, i32 4, i32 5, i32 7>, align 16
|
||||
|
||||
; Function Attrs: nounwind
|
||||
define void @vector_init.main() #0 {
|
||||
define void @vector_init_main() #0 {
|
||||
entry:
|
||||
%foo = alloca <4 x i32>, align 16
|
||||
%z = alloca i32, align 4
|
||||
|
||||
@@ -98,7 +98,7 @@ fn void main()
|
||||
/* #expect: vector_ops.ll
|
||||
|
||||
; Function Attrs: nounwind
|
||||
define void @vector_ops.testf() #0 {
|
||||
define void @vector_ops_testf() #0 {
|
||||
entry:
|
||||
%y = alloca <4 x float>, align 16
|
||||
%z = alloca <4 x float>, align 16
|
||||
@@ -262,7 +262,7 @@ entry:
|
||||
}
|
||||
|
||||
; Function Attrs: nounwind
|
||||
define void @vector_ops.testb() #0 {
|
||||
define void @vector_ops_testb() #0 {
|
||||
entry:
|
||||
%y = alloca <4 x i8>, align 4
|
||||
%z = alloca <4 x i8>, align 4
|
||||
@@ -381,7 +381,7 @@ entry:
|
||||
}
|
||||
|
||||
; Function Attrs: nounwind
|
||||
define void @vector_ops.testi() #0 {
|
||||
define void @vector_ops_testi() #0 {
|
||||
entry:
|
||||
%y = alloca <4 x i32>, align 16
|
||||
%z = alloca <4 x i32>, align 16
|
||||
|
||||
@@ -99,7 +99,7 @@ fn void main()
|
||||
|
||||
/* #expect: test.ll
|
||||
|
||||
define void @test.testf() #0 {
|
||||
define void @test_testf() #0 {
|
||||
entry:
|
||||
%y = alloca <4 x float>, align 16
|
||||
%z = alloca <4 x float>, align 16
|
||||
@@ -149,7 +149,7 @@ entry:
|
||||
br i1 %zero, label %panic, label %checkok
|
||||
|
||||
panic: ; preds = %entry
|
||||
call void @"std::core::builtin.panic"(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.zstr, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.zstr.2, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.zstr.3, i64 0, i64 0), i32 12)
|
||||
call void @std_core_builtin_panic(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.zstr, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.zstr.2, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.zstr.3, i64 0, i64 0), i32 12)
|
||||
br label %checkok
|
||||
|
||||
checkok: ; preds = %panic, %entry
|
||||
@@ -273,7 +273,7 @@ checkok: ; preds = %panic, %entry
|
||||
}
|
||||
|
||||
; Function Attrs: nounwind
|
||||
define void @test.testb() #0 {
|
||||
define void @test_testb() #0 {
|
||||
entry:
|
||||
%y = alloca <4 x i8>, align 4
|
||||
%z = alloca <4 x i8>, align 4
|
||||
@@ -392,7 +392,7 @@ entry:
|
||||
}
|
||||
|
||||
; Function Attrs: nounwind
|
||||
define void @test.testi() #0 {
|
||||
define void @test_testi() #0 {
|
||||
entry:
|
||||
%y = alloca <4 x i32>, align 16
|
||||
%z = alloca <4 x i32>, align 16
|
||||
@@ -433,7 +433,7 @@ entry:
|
||||
br i1 %zero, label %panic, label %checkok
|
||||
|
||||
panic: ; preds = %entry
|
||||
call void @"std::core::builtin.panic"(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.zstr.20, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.zstr.21, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.zstr.22, i64 0, i64 0), i32 56)
|
||||
call void @std_core_builtin_panic(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.zstr.20, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.zstr.21, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.zstr.22, i64 0, i64 0), i32 56)
|
||||
br label %checkok
|
||||
|
||||
checkok: ; preds = %panic, %entry
|
||||
@@ -468,7 +468,7 @@ checkok: ; preds = %panic, %entry
|
||||
br i1 %shift_underflow, label %panic1, label %checkok2
|
||||
|
||||
panic1: ; preds = %checkok
|
||||
call void @"std::core::builtin.panic"(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.zstr.25, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.zstr.26, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.zstr.27, i64 0, i64 0), i32 60)
|
||||
call void @std_core_builtin_panic(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.zstr.25, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.zstr.26, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.zstr.27, i64 0, i64 0), i32 60)
|
||||
br label %checkok2
|
||||
|
||||
checkok2: ; preds = %panic1, %checkok
|
||||
@@ -477,7 +477,7 @@ checkok2: ; preds = %panic1, %checkok
|
||||
br i1 %shift_exceeds, label %panic3, label %checkok4
|
||||
|
||||
panic3: ; preds = %checkok2
|
||||
call void @"std::core::builtin.panic"(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.zstr.28, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.zstr.29, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.zstr.30, i64 0, i64 0), i32 60)
|
||||
call void @std_core_builtin_panic(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.zstr.28, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.zstr.29, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.zstr.30, i64 0, i64 0), i32 60)
|
||||
br label %checkok4
|
||||
|
||||
checkok4: ; preds = %panic3, %checkok2
|
||||
@@ -500,7 +500,7 @@ checkok4: ; preds = %panic3, %checkok2
|
||||
br i1 %shift_underflow5, label %panic6, label %checkok7
|
||||
|
||||
panic6: ; preds = %checkok4
|
||||
call void @"std::core::builtin.panic"(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.zstr.32, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.zstr.33, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.zstr.34, i64 0, i64 0), i32 62)
|
||||
call void @std_core_builtin_panic(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.zstr.32, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.zstr.33, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.zstr.34, i64 0, i64 0), i32 62)
|
||||
br label %checkok7
|
||||
|
||||
checkok7: ; preds = %panic6, %checkok4
|
||||
@@ -509,7 +509,7 @@ checkok7: ; preds = %panic6, %checkok4
|
||||
br i1 %shift_exceeds8, label %panic9, label %checkok10
|
||||
|
||||
panic9: ; preds = %checkok7
|
||||
call void @"std::core::builtin.panic"(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.zstr.35, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.zstr.36, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.zstr.37, i64 0, i64 0), i32 62)
|
||||
call void @std_core_builtin_panic(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.zstr.35, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.zstr.36, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.zstr.37, i64 0, i64 0), i32 62)
|
||||
br label %checkok10
|
||||
|
||||
checkok10: ; preds = %panic9, %checkok7
|
||||
|
||||
@@ -14,10 +14,10 @@ fn void tester()
|
||||
|
||||
/* #expect: test.ll
|
||||
|
||||
@test.b = local_unnamed_addr global <2 x i32> <i32 1, i32 2>, align 8
|
||||
@test.c = local_unnamed_addr global [2 x i32] [i32 1, i32 2], align 4
|
||||
@test_b = local_unnamed_addr global <2 x i32> <i32 1, i32 2>, align 8
|
||||
@test_c = local_unnamed_addr global [2 x i32] [i32 1, i32 2], align 4
|
||||
|
||||
define void @test.tester() #0 {
|
||||
define void @test_tester() #0 {
|
||||
entry:
|
||||
%x = alloca <2 x i32>, align 8
|
||||
%y = alloca [2 x i32], align 4
|
||||
|
||||
Reference in New Issue
Block a user