diff options
author | Venkatraman Govindaraju <venkatra@cs.wisc.edu> | 2014-03-01 01:04:26 +0000 |
---|---|---|
committer | Venkatraman Govindaraju <venkatra@cs.wisc.edu> | 2014-03-01 01:04:26 +0000 |
commit | c9bf74fdc543c2da90f334e0bf8e34b128c8a615 (patch) | |
tree | fcf7595ecd1b914f9b82c893135ec5445b250159 /test/MC | |
parent | 5de568068963748c789a42777f1e7f9fade7403b (diff) | |
download | llvm-c9bf74fdc543c2da90f334e0bf8e34b128c8a615.tar.gz llvm-c9bf74fdc543c2da90f334e0bf8e34b128c8a615.tar.bz2 llvm-c9bf74fdc543c2da90f334e0bf8e34b128c8a615.tar.xz |
[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
Diffstat (limited to 'test/MC')
-rw-r--r-- | test/MC/Disassembler/Sparc/sparc.txt | 3 | ||||
-rw-r--r-- | test/MC/Sparc/sparc-alu-instructions.s | 3 |
2 files changed, 6 insertions, 0 deletions
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 |