diff options
author | Venkatraman Govindaraju <venkatra@cs.wisc.edu> | 2013-06-02 02:24:27 +0000 |
---|---|---|
committer | Venkatraman Govindaraju <venkatra@cs.wisc.edu> | 2013-06-02 02:24:27 +0000 |
commit | dd48226b15510c57a9486aa2bbc38bd0eb2cbb40 (patch) | |
tree | c6c9ed17f83dd274e7cc98188b8910f2bb6ad410 /test/CodeGen/SPARC/globals.ll | |
parent | 44dbb749f0917d69e9dfaf6e39224349b680dfc2 (diff) | |
download | external_llvm-dd48226b15510c57a9486aa2bbc38bd0eb2cbb40.zip external_llvm-dd48226b15510c57a9486aa2bbc38bd0eb2cbb40.tar.gz external_llvm-dd48226b15510c57a9486aa2bbc38bd0eb2cbb40.tar.bz2 |
Sparc: Perform leaf procedure optimization by default
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183083 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/SPARC/globals.ll')
-rw-r--r-- | test/CodeGen/SPARC/globals.ll | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/test/CodeGen/SPARC/globals.ll b/test/CodeGen/SPARC/globals.ll index 8d8de58..0e0dfc8 100644 --- a/test/CodeGen/SPARC/globals.ll +++ b/test/CodeGen/SPARC/globals.ll @@ -14,15 +14,17 @@ define zeroext i8 @loadG() { ; abs32: loadG ; abs32: sethi %hi(G), %[[R:[gilo][0-7]]] -; abs32: ldub [%[[R]]+%lo(G)], %i0 -; abs32: jmp %i7+8 +; abs32: jmp %o7+8 +; abs32: ldub [%[[R]]+%lo(G)], %o0 + ; abs44: loadG ; abs44: sethi %h44(G), %[[R1:[gilo][0-7]]] ; abs44: add %[[R1]], %m44(G), %[[R2:[gilo][0-7]]] ; abs44: sllx %[[R2]], 12, %[[R3:[gilo][0-7]]] -; abs44: ldub [%[[R3]]+%l44(G)], %i0 -; abs44: jmp %i7+8 +; abs44: jmp %o7+8 +; abs44: ldub [%[[R3]]+%l44(G)], %o0 + ; abs64: loadG ; abs64: sethi %hi(G), %[[R1:[gilo][0-7]]] @@ -30,21 +32,24 @@ define zeroext i8 @loadG() { ; abs64: sethi %hh(G), %[[R3:[gilo][0-7]]] ; abs64: add %[[R3]], %hm(G), %[[R4:[gilo][0-7]]] ; abs64: sllx %[[R4]], 32, %[[R5:[gilo][0-7]]] -; abs64: ldub [%[[R5]]+%[[R2]]], %i0 -; abs64: jmp %i7+8 +; abs64: jmp %o7+8 +; abs64: ldub [%[[R5]]+%[[R2]]], %o0 + ; v8pic32: loadG ; v8pic32: _GLOBAL_OFFSET_TABLE_ ; v8pic32: sethi %hi(G), %[[R1:[gilo][0-7]]] ; v8pic32: add %[[R1]], %lo(G), %[[Goffs:[gilo][0-7]]] ; v8pic32: ld [%[[GOT:[gilo][0-7]]]+%[[Goffs]]], %[[Gaddr:[gilo][0-7]]] -; v8pic32: ldub [%[[Gaddr]]], %i0 -; v8pic32: jmp %i7+8 +; v8pic32: jmp %o7+8 +; v8pic32: ldub [%[[Gaddr]]], %o0 + ; v9pic32: loadG ; v9pic32: _GLOBAL_OFFSET_TABLE_ ; v9pic32: sethi %hi(G), %[[R1:[gilo][0-7]]] ; v9pic32: add %[[R1]], %lo(G), %[[Goffs:[gilo][0-7]]] ; v9pic32: ldx [%[[GOT:[gilo][0-7]]]+%[[Goffs]]], %[[Gaddr:[gilo][0-7]]] -; v9pic32: ldub [%[[Gaddr]]], %i0 -; v9pic32: jmp %i7+8 +; v9pic32: jmp %o7+8 +; v9pic32: ldub [%[[Gaddr]]], %o0 + |