Skip to content

Commit eaef645

Browse files
committed
[test] Update stack_guard_remat.ll
1 parent 8675952 commit eaef645

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

llvm/test/CodeGen/Thumb/stack_guard_remat.ll

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
; RUN: llc < %s -mtriple=thumb-apple-darwin -relocation-model=pic -no-integrated-as | FileCheck %s -check-prefix=PIC
1+
; RUN: cp %s %t.pic.ll
2+
; RUN: echo -e '!llvm.module.flags = !{!0}\n!0 = !{i32 7, !"PIC Level", i32 2}' >> %t.pic.ll
3+
; RUN: llc < %t.pic.ll -mtriple=thumb-apple-darwin -relocation-model=pic -no-integrated-as | FileCheck %s -check-prefix=PIC
24
; RUN: llc < %s -mtriple=thumb-apple-darwin -relocation-model=static -no-integrated-as | FileCheck %s -check-prefix=NO-PIC -check-prefix=STATIC
35
; RUN: llc < %s -mtriple=thumb-apple-darwin -relocation-model=dynamic-no-pic -no-integrated-as | FileCheck %s -check-prefix=NO-PIC -check-prefix=DYNAMIC-NO-PIC
46

@@ -19,7 +21,7 @@
1921
;NO-PIC: add [[SAVED_GUARD:r[0-9]+]], sp, #904
2022
;NO-PIC-NEXT: ldr [[SAVED_GUARD]], [[[SAVED_GUARD]], #124]
2123
;NO-PIC-NEXT: ldr [[ORIGINAL_GUARD:r[0-9]+]], [[ORIGINAL_GUARD_LABEL:LCPI[0-9_]+]]
22-
;NO-PIC-NOT: LPC
24+
;DYNAMIC-NO-PIC: add [[ORIGINAL_GUARD]], pc
2325
;NO-PIC-NEXT: ldr [[ORIGINAL_GUARD]], [[[ORIGINAL_GUARD]]]
2426
;DYNAMIC-NO-PIC-NEXT: ldr [[ORIGINAL_GUARD]], [[[ORIGINAL_GUARD]]]
2527
;NO-PIC-NEXT: cmp [[ORIGINAL_GUARD]], [[SAVED_GUARD]]
@@ -49,6 +51,3 @@ declare void @foo3(ptr)
4951
declare void @llvm.lifetime.end.p0(i64, ptr nocapture)
5052

5153
attributes #0 = { nounwind ssp "less-precise-fpmad"="false" "frame-pointer"="all" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" }
52-
53-
!llvm.module.flags = !{!0}
54-
!0 = !{i32 7, !"PIC Level", i32 2}

0 commit comments

Comments
 (0)