diff options
| author | Strahinja Petrovic <strahinja.petrovic@rt-rk.com> | 2018-03-27 11:23:53 +0000 |
|---|---|---|
| committer | Strahinja Petrovic <strahinja.petrovic@rt-rk.com> | 2018-03-27 11:23:53 +0000 |
| commit | 06cf6a6490bbb466f340307c111b63a979a5b17e (patch) | |
| tree | 9116bc8ee0b09c2b96e9f99e851350a18b31b921 /llvm/test | |
| parent | e8059b1de44ff96530d151515123a28048c59833 (diff) | |
| download | bcm5719-llvm-06cf6a6490bbb466f340307c111b63a979a5b17e.tar.gz bcm5719-llvm-06cf6a6490bbb466f340307c111b63a979a5b17e.zip | |
[PowerPC] Secure PLT support
This patch supports secure PLT mode for PowerPC 32 architecture.
Differential Revision: https://reviews.llvm.org/D42112
llvm-svn: 328617
Diffstat (limited to 'llvm/test')
| -rw-r--r-- | llvm/test/CodeGen/PowerPC/ppc32-pic-large.ll | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/PowerPC/ppc32-pic-large.ll b/llvm/test/CodeGen/PowerPC/ppc32-pic-large.ll index 1f24ea1021f..d6e491ea273 100644 --- a/llvm/test/CodeGen/PowerPC/ppc32-pic-large.ll +++ b/llvm/test/CodeGen/PowerPC/ppc32-pic-large.ll @@ -1,4 +1,5 @@ ; RUN: llc < %s -mtriple=powerpc-unknown-linux-gnu -relocation-model=pic | FileCheck -check-prefix=LARGE-BSS %s +; RUN: llc < %s -mtriple=powerpc-unknown-linux-gnu -mattr=+secure-plt -relocation-model=pic | FileCheck -check-prefix=LARGE-SECUREPLT %s @bar = common global i32 0, align 4 declare i32 @call_foo(i32, ...) @@ -29,3 +30,6 @@ entry: ; LARGE-BSS: [[VREF]]: ; LARGE-BSS-NEXT: .p2align 2 ; LARGE-BSS-NEXT: .long bar +; LARGE-SECUREPLT: addis 30, 30, .LTOC-.L0$pb@ha +; LARGE-SECUREPLT: addi 30, 30, .LTOC-.L0$pb@l +; LARGE-SECUREPLT: bl call_foo@PLT+32768 |

