diff options
author | Andrew Trick <atrick@apple.com> | 2013-11-12 22:58:39 +0000 |
---|---|---|
committer | Andrew Trick <atrick@apple.com> | 2013-11-12 22:58:39 +0000 |
commit | 0ef482ef02cd230f456b051d832920554fe623e5 (patch) | |
tree | 5e82bf4c516192c2532967c3876033e9ff7d16f2 /llvm/test | |
parent | a1cc34b98132a9a7cf5c4c4f302edc12b00852d0 (diff) | |
download | bcm5719-llvm-0ef482ef02cd230f456b051d832920554fe623e5.tar.gz bcm5719-llvm-0ef482ef02cd230f456b051d832920554fe623e5.zip |
Cleanup the stackmap operand folding code and fix a corner case.
I still don't know how to refer to the fixed operands symbolically. I
plan to look into it.
llvm-svn: 194529
Diffstat (limited to 'llvm/test')
-rw-r--r-- | llvm/test/CodeGen/X86/stackmap.ll | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/llvm/test/CodeGen/X86/stackmap.ll b/llvm/test/CodeGen/X86/stackmap.ll index 335aaf0db47..71bb72e58c1 100644 --- a/llvm/test/CodeGen/X86/stackmap.ll +++ b/llvm/test/CodeGen/X86/stackmap.ll @@ -9,7 +9,7 @@ ; CHECK-NEXT: .long 1 ; CHECK-NEXT: .quad 4294967296 ; Num Callsites -; CHECK-NEXT: .long 8 +; CHECK-NEXT: .long 9 ; Constant arguments ; @@ -195,6 +195,26 @@ entry: ret void } +; Spilled stack map values. +; +; Verify 17 stack map entries. +; +; CHECK: .long 12 +; CHECK-LABEL: .long L{{.*}}-_spilledStackMapValue +; CHECK-NEXT: .short 0 +; CHECK-NEXT: .short 17 +; +; Check that at least one is a spilled entry from RBP. +; Location: Indirect RBP + ... +; CHECK: .byte 3 +; CHECK: .byte 0 +; CHECK: .short 6 +define webkit_jscc void @spilledStackMapValue(i64 %l0, i64 %l1, i64 %l2, i64 %l3, i64 %l4, i64 %l5, i64 %l6, i64 %l7, i64 %l8, i64 %l9, i64 %l10, i64 %l11, i64 %l12, i64 %l13, i64 %l14, i64 %l15, i64 %l16) { +entry: + call void (i32, i32, ...)* @llvm.experimental.stackmap(i32 12, i32 15, i64 %l0, i64 %l1, i64 %l2, i64 %l3, i64 %l4, i64 %l5, i64 %l6, i64 %l7, i64 %l8, i64 %l9, i64 %l10, i64 %l11, i64 %l12, i64 %l13, i64 %l14, i64 %l15, i64 %l16) + ret void +} + declare void @llvm.experimental.stackmap(i32, i32, ...) declare void @llvm.experimental.patchpoint.void(i32, i32, i8*, i32, ...) declare i64 @llvm.experimental.patchpoint.i64(i32, i32, i8*, i32, ...) |