diff options
author | Akira Hatanaka <ahatanaka@mips.com> | 2012-12-20 04:06:06 +0000 |
---|---|---|
committer | Akira Hatanaka <ahatanaka@mips.com> | 2012-12-20 04:06:06 +0000 |
commit | 68fe665b9a878b4a19e005ad9a8c92c402ecd320 (patch) | |
tree | bb28f8f9844fa5d9121c351d3d59f10bd29e2127 /test/CodeGen/Mips/gpreg-lazy-binding.ll | |
parent | ba836a2e803e51cc26279a8522f05c7452729fe3 (diff) | |
download | llvm-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/gpreg-lazy-binding.ll')
-rw-r--r-- | test/CodeGen/Mips/gpreg-lazy-binding.ll | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/CodeGen/Mips/gpreg-lazy-binding.ll b/test/CodeGen/Mips/gpreg-lazy-binding.ll index 85d8d4b1db..bb3ad4264e 100644 --- a/test/CodeGen/Mips/gpreg-lazy-binding.ll +++ b/test/CodeGen/Mips/gpreg-lazy-binding.ll @@ -2,10 +2,10 @@ @g = external global i32 -; CHECK: addu $gp +; CHECK: or $gp ; CHECK: jalr $25 ; CHECK: nop -; CHECK-NOT: addu $gp +; CHECK-NOT: or $gp ; CHECK: jalr $25 define void @f0() nounwind { |