summaryrefslogtreecommitdiff
path: root/test/CodeGen/Mips/frame-address.ll
diff options
context:
space:
mode:
authorAkira Hatanaka <ahatanaka@mips.com>2012-12-20 04:06:06 +0000
committerAkira Hatanaka <ahatanaka@mips.com>2012-12-20 04:06:06 +0000
commit68fe665b9a878b4a19e005ad9a8c92c402ecd320 (patch)
treebb28f8f9844fa5d9121c351d3d59f10bd29e2127 /test/CodeGen/Mips/frame-address.ll
parentba836a2e803e51cc26279a8522f05c7452729fe3 (diff)
downloadllvm-68fe665b9a878b4a19e005ad9a8c92c402ecd320.tar.gz
llvm-68fe665b9a878b4a19e005ad9a8c92c402ecd320.tar.bz2
llvm-68fe665b9a878b4a19e005ad9a8c92c402ecd320.tar.xz
[mips] Use "or $r0, $r1, $zero" instead of "addu $r0, $zero, $r1" to copy
physical register $r1 to $r0. GNU disassembler recognizes an "or" instruction as a "move", and this change makes the disassembled code easier to read. Original patch by Reed Kotler. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@170655 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/Mips/frame-address.ll')
-rw-r--r--test/CodeGen/Mips/frame-address.ll2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/CodeGen/Mips/frame-address.ll b/test/CodeGen/Mips/frame-address.ll
index 9df1808fde..e64e6d8cfe 100644
--- a/test/CodeGen/Mips/frame-address.ll
+++ b/test/CodeGen/Mips/frame-address.ll
@@ -8,5 +8,5 @@ entry:
ret i8* %0
; CHECK: addu $fp, $sp, $zero
-; CHECK: addu $2, $zero, $fp
+; CHECK: or $2, $fp, $zero
}