-
Notifications
You must be signed in to change notification settings - Fork 15.3k
Implement the trampoline intrinsics and nest parameter for AIX. #149388
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
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,7 @@ | ||
| ; RUN: not --crash llc -mtriple powerpc-ibm-aix-xcoff < %s 2>&1 | FileCheck %s | ||
| ; RUN: not --crash llc -mtriple powerpc64-ibm-aix-xcoff < %s 2>&1 | FileCheck %s | ||
|
|
||
| ; CHECK: LLVM ERROR: INIT_TRAMPOLINE operation is not supported on AIX. | ||
| ; RUN: llc -mtriple powerpc-ibm-aix-xcoff < %s 2>&1 | \ | ||
| ; RUN: FileCheck %s --check-prefix=32BIT | ||
| ; RUN: llc -mtriple powerpc64-ibm-aix-xcoff < %s 2>&1 -mattr=-altivec | \ | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Might be a silly question, but is the
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not silly at all. When altivec is enabled we coalesce the 2 pointer loads and stores into vector load/store of<2xi64>. I wanted to preserve the three separate loads with the distinct offsets so I disabled altivec. |
||
| ; RUN: FileCheck %s --check-prefix=64BIT | ||
|
|
||
| define void @create_trampoline(ptr %buffer, ptr %nval) nounwind { | ||
| entry: | ||
|
|
@@ -12,3 +12,17 @@ entry: | |
| declare i32 @nested(i32); | ||
|
|
||
| declare void @llvm.init.trampoline(ptr, ptr, ptr) nounwind | ||
|
|
||
| ; 32BIT: stw 4, 8(3) | ||
| ; 32BIT: lwz [[FuncDesc:[0-9]+]], L..C0(2) | ||
| ; 32BIT-DAG: lwz [[SCRATCH1:[0-9]+]], 0([[FuncDesc]]) | ||
| ; 32BIT-DAG: lwz [[SCRATCH2:[0-9]+]], 4([[FuncDesc]]) | ||
| ; 32BIT-DAG: stw [[SCRATCH1]], 0(3) | ||
| ; 32BIT-DAG: stw [[SCRATCH2]], 4(3) | ||
|
|
||
| ; 64BIT: std 4, 16(3) | ||
| ; 64BIT-DAG: ld [[FuncDesc:[0-9]+]], L..C0(2) | ||
| ; 64BIT-DAG: ld [[SCRATCH1:[0-9]+]], 0([[FuncDesc]]) | ||
| ; 64BIT-DAG: ld [[SCRATCH2:[0-9]+]], 8([[FuncDesc]]) | ||
| ; 64BIT-DAG: std [[SCRATCH1]], 0(3) | ||
| ; 64BIT-DAG: std [[SCRATCH2]], 8(3) | ||
Uh oh!
There was an error while loading. Please reload this page.