| OLD | NEW |
| 1 ; RUN: opt %s -minsfi-expand-allocas -S | FileCheck %s | 1 ; RUN: opt %s -minsfi-expand-allocas -S | FileCheck %s |
| 2 | 2 |
| 3 !llvm.module.flags = !{!0} | 3 !llvm.module.flags = !{!0} |
| 4 !0 = metadata !{i32 1, metadata !"Debug Info Version", i32 1} | 4 !0 = metadata !{i32 1, metadata !"Debug Info Version", i32 2} |
| 5 | 5 |
| 6 target datalayout = "p:32:32:32" | 6 target datalayout = "p:32:32:32" |
| 7 target triple = "le32-unknown-nacl" | 7 target triple = "le32-unknown-nacl" |
| 8 | 8 |
| 9 ; Check that the stack pointer global variable is created. This does not check | 9 ; Check that the stack pointer global variable is created. This does not check |
| 10 ; the initial value of the stack ptr. | 10 ; the initial value of the stack ptr. |
| 11 ; CHECK: @__sfi_stack_ptr = internal global i32 | 11 ; CHECK: @__sfi_stack_ptr = internal global i32 |
| 12 | 12 |
| 13 declare i8* @llvm.stacksave() | 13 declare i8* @llvm.stacksave() |
| 14 declare void @llvm.stackrestore(i8* %ptr) | 14 declare void @llvm.stackrestore(i8* %ptr) |
| (...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 250 } | 250 } |
| 251 | 251 |
| 252 ; CHECK-LABEL: define i32 @_start_minsfi(i32 %args) { | 252 ; CHECK-LABEL: define i32 @_start_minsfi(i32 %args) { |
| 253 ; CHECK-NEXT: store i32 %args, i32* @__sfi_stack_ptr | 253 ; CHECK-NEXT: store i32 %args, i32* @__sfi_stack_ptr |
| 254 ; CHECK-NEXT: ret i32 0 | 254 ; CHECK-NEXT: ret i32 0 |
| 255 ; CHECK-NEXT: } | 255 ; CHECK-NEXT: } |
| 256 | 256 |
| 257 !1 = metadata !{i32 138, i32 0, metadata !1, null} | 257 !1 = metadata !{i32 138, i32 0, metadata !1, null} |
| 258 !2 = metadata !{i32 142, i32 0, metadata !2, null} | 258 !2 = metadata !{i32 142, i32 0, metadata !2, null} |
| 259 !3 = metadata !{i32 144, i32 0, metadata !3, null} | 259 !3 = metadata !{i32 144, i32 0, metadata !3, null} |
| OLD | NEW |