Fixes to the aarch64 ABI.

This commit is contained in:
Christoffer Lerno
2022-01-15 01:37:43 +01:00
parent c5a862f4d1
commit 0f4a43717e
9 changed files with 135 additions and 191 deletions

View File

@@ -15,7 +15,7 @@ fn Event test(int x)
// #expect: test.ll
define i64 @test.test(i32 %0) #0 {
define i32 @test.test(i32 %0) #0 {
entry:
%foo = alloca %Event, align 4
%bar = alloca %Event, align 4
@@ -40,6 +40,5 @@ cond.phi: ; preds = %cond.rhs, %cond.lhs
store %Event %val, %Event* %taddr, align 4
%5 = getelementptr inbounds %Event, %Event* %taddr, i32 0, i32 0
%6 = load i32, i32* %5, align 4
%7 = zext i32 %6 to i64
ret i64 %7
ret i32 %6
}