summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAndrew Trick <atrick@apple.com>2013-11-22 19:07:36 +0000
committerAndrew Trick <atrick@apple.com>2013-11-22 19:07:36 +0000
commited20bf5ef876bf490d1796f5bd01f70f231102bd (patch)
treec9fa95a68510c10149ab900b45bbfa725977abaf /test
parent3419a7dde378e61ae91dce1e10d3986b65453282 (diff)
downloadllvm-ed20bf5ef876bf490d1796f5bd01f70f231102bd.tar.gz
llvm-ed20bf5ef876bf490d1796f5bd01f70f231102bd.tar.bz2
llvm-ed20bf5ef876bf490d1796f5bd01f70f231102bd.tar.xz
patchpoint: factor SD builder code for live vars. Plain stackmap also optimizes Constant values now.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@195488 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/CodeGen/X86/stackmap.ll20
1 files changed, 19 insertions, 1 deletions
diff --git a/test/CodeGen/X86/stackmap.ll b/test/CodeGen/X86/stackmap.ll
index ed95583028..2cc198db17 100644
--- a/test/CodeGen/X86/stackmap.ll
+++ b/test/CodeGen/X86/stackmap.ll
@@ -9,7 +9,7 @@
; CHECK-NEXT: .long 1
; CHECK-NEXT: .quad 4294967296
; Num Callsites
-; CHECK-NEXT: .long 11
+; CHECK-NEXT: .long 12
; Constant arguments
;
@@ -287,6 +287,24 @@ define void @subRegOffset(i16 %arg) {
ret void
}
+; Map a constant value.
+;
+; CHECK: .long 15
+; CHECK-LABEL: .long L{{.*}}-_liveConstant
+; CHECK-NEXT: .short 0
+; 1 location
+; CHECK-NEXT: .short 1
+; Loc 0: SmallConstant
+; CHECK-NEXT: .byte 4
+; CHECK-NEXT: .byte 8
+; CHECK-NEXT: .short 0
+; CHECK-NEXT: .long 33
+
+define void @liveConstant() {
+ tail call void (i32, i32, ...)* @llvm.experimental.stackmap(i32 15, i32 5, i32 33)
+ 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, ...)