diff options
author | Simon Dardis <simon.dardis@imgtec.com> | 2016-04-12 12:22:45 +0000 |
---|---|---|
committer | Simon Dardis <simon.dardis@imgtec.com> | 2016-04-12 12:22:45 +0000 |
commit | 2b9d31a9e75af9f60c41530cd8b1c5924b3703eb (patch) | |
tree | b90ac8f7a2870cc0deffc163a22a7769cb13c3ac /test/CodeGen/Mips/llvm-ir/call.ll | |
parent | ef1a3d260726fba8b84a93f2bec1e096a9a99d9f (diff) |
Revert "[mips] MIPSR6 Compact branch aliases"
This reverts commit r266055.
ps4-buildslave2 is highlighting a failure.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@266061 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/Mips/llvm-ir/call.ll')
-rw-r--r-- | test/CodeGen/Mips/llvm-ir/call.ll | 22 |
1 files changed, 8 insertions, 14 deletions
diff --git a/test/CodeGen/Mips/llvm-ir/call.ll b/test/CodeGen/Mips/llvm-ir/call.ll index 063b7465aed..da3ffaf64b1 100644 --- a/test/CodeGen/Mips/llvm-ir/call.ll +++ b/test/CodeGen/Mips/llvm-ir/call.ll @@ -26,10 +26,9 @@ define i32 @call_void_void() { ; N64: ld $[[TGT:[0-9]+]], %call16(extern_void_void)($gp) ; NOT-R6C: jalr $[[TGT]] -; R6C: jalrc $[[TGT]] +; R6C: jialc $[[TGT]], 0 call void @extern_void_void() -; R6C: jrc $ra ret i32 0 } @@ -41,11 +40,10 @@ define i32 @call_i32_void() { ; N64: ld $[[TGT:[0-9]+]], %call16(extern_i32_void)($gp) ; NOT-R6C: jalr $[[TGT]] -; R6C: jalrc $[[TGT]] +; R6C: jialc $[[TGT]], 0 %1 = call i32 @extern_i32_void() %2 = add i32 %1, 1 -; R6C: jrc $ra ret i32 %2 } @@ -60,12 +58,11 @@ define float @call_float_void() { ; N64: ld $[[TGT:[0-9]+]], %call16(extern_float_void)($gp) ; NOT-R6C: jalr $[[TGT]] -; R6C: jalrc $[[TGT]] +; R6C: jialc $[[TGT]], 0 %1 = call float @extern_float_void() %2 = fadd float %1, 1.0 -; R6C: jrc $ra ret float %2 } @@ -113,10 +110,10 @@ define i32 @indirect_call_void_void(void ()* %addr) { ; ALL: move $25, $4 ; NOT-R6C: jalr $25 -; R6C: jalrc $25 +; R6C: jialc $25, 0 + call void %addr() -; R6C: jrc $ra ret i32 0 } @@ -125,12 +122,11 @@ define i32 @indirect_call_i32_void(i32 ()* %addr) { ; ALL: move $25, $4 ; NOT-R6C: jalr $25 -; R6C: jalrc $25 +; R6C: jialc $25, 0 %1 = call i32 %addr() %2 = add i32 %1, 1 -; R6C: jrc $ra ret i32 %2 } @@ -139,12 +135,11 @@ define float @indirect_call_float_void(float ()* %addr) { ; ALL: move $25, $4 ; NOT-R6C: jalr $25 -; R6C: jalrc $25 +; R6C: jialc $25, 0 %1 = call float %addr() %2 = fadd float %1, 1.0 -; R6C: jrc $ra ret float %2 } @@ -202,11 +197,10 @@ define i32 @jal_only_allows_symbols() { ; ALL: addiu $[[TGT:[0-9]+]], $zero, 1234 ; ALL-NOT: {{jal }} ; NOT-R6C: jalr $[[TGT]] -; R6C: jalrc $[[TGT]] +; R6C: jialc $[[TGT]], 0 ; ALL-NOT: {{jal }} call void () inttoptr (i32 1234 to void ()*)() -; R6C: jrc $ra ret i32 0 } |