-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EABI requires to pass structurs larger than 32 bits by reference #18
Comments
So in clang case we have a garbage in r12. This is incorrect. |
How does IR look like?
…On Tue, Oct 23, 2018, 08:40 mskvortsov ***@***.***> wrote:
So in clang case we have a garbage in r12. This is incorrect.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#18 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAEHQFcTeJ9E8I0TWdlTiCaxCoi0nIPRks5unzhfgaJpZM4X1yLv>
.
|
For -O2 version:
|
Ok, so it seems that our byval lowering is broken.
…On Tue, Oct 23, 2018, 08:59 chbessonova ***@***.***> wrote:
For -O2 version:
target datalayout = "e-m:e-p:16:16-i32:16-i64:16-f32:16-f64:16-a:8-n8:16-S16"
target triple = "msp430"
%struct.t = type { i32, i32 }
@test.a1 = private unnamed_addr constant %struct.t { i32 1000, i32 10001 }, align 2
; Function Attrs: nounwind
define dso_local i16 @test() local_unnamed_addr #0 {
tail call void @boo(%struct.t* byval nonnull align 2 @test.a1) #2
ret i16 0
}
declare dso_local void @boo(%struct.t* byval align 2) local_unnamed_addr #1
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#18 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAEHQMcOVszRlpYfvbeLL_GdXkntNc3Cks5unzzrgaJpZM4X1yLv>
.
|
Small note: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
p. 3.5 MSP430-EABI
Example:
clang:
clang -02:
gcc:
The text was updated successfully, but these errors were encountered: