From c9bf74fdc543c2da90f334e0bf8e34b128c8a615 Mon Sep 17 00:00:00 2001 From: Venkatraman Govindaraju Date: Sat, 1 Mar 2014 01:04:26 +0000 Subject: [Sparc] Emit 'restore' instead of 'restore %g0, %g0, %g0'. This improves the readability of the generated code. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202563 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/MC/Disassembler/Sparc/sparc.txt | 3 +++ test/MC/Sparc/sparc-alu-instructions.s | 3 +++ 2 files changed, 6 insertions(+) (limited to 'test/MC') diff --git a/test/MC/Disassembler/Sparc/sparc.txt b/test/MC/Disassembler/Sparc/sparc.txt index 388dd68717..fefde2c703 100644 --- a/test/MC/Disassembler/Sparc/sparc.txt +++ b/test/MC/Disassembler/Sparc/sparc.txt @@ -167,3 +167,6 @@ # CHECK: fbo 4194303 0x1f 0xbf 0xff 0xff + +# CHECK: restore +0x81 0xe8 0x00 0x00 diff --git a/test/MC/Sparc/sparc-alu-instructions.s b/test/MC/Sparc/sparc-alu-instructions.s index 5531bcca7a..ef337b0032 100644 --- a/test/MC/Sparc/sparc-alu-instructions.s +++ b/test/MC/Sparc/sparc-alu-instructions.s @@ -75,3 +75,6 @@ ! CHECK: or %g0, 255, %g3 ! encoding: [0x86,0x10,0x20,0xff] mov 0xff, %g3 + + ! CHECK: restore ! encoding: [0x81,0xe8,0x00,0x00] + restore %g0, %g0, %g0 -- cgit v1.2.3