[PATCH] D49171: [Sparc] Use the correct encoding for ta 3

Daniel Cederman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 16 05:33:41 PDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rL337165: [Sparc] Use the correct encoding for ta 3 (authored by dcederman, committed by ).

Changed prior to commit:
  https://reviews.llvm.org/D49171?vs=154944&id=155651#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D49171

Files:
  llvm/trunk/lib/Target/Sparc/SparcInstrInfo.td
  llvm/trunk/test/CodeGen/SPARC/2011-01-11-FrameAddr.ll


Index: llvm/trunk/test/CodeGen/SPARC/2011-01-11-FrameAddr.ll
===================================================================
--- llvm/trunk/test/CodeGen/SPARC/2011-01-11-FrameAddr.ll
+++ llvm/trunk/test/CodeGen/SPARC/2011-01-11-FrameAddr.ll
@@ -1,6 +1,6 @@
-;RUN: llc -march=sparc < %s | FileCheck %s -check-prefix=V8
+;RUN: llc -march=sparc -show-mc-encoding < %s | FileCheck %s -check-prefix=V8
 ;RUN: llc -march=sparc -mattr=v9 < %s | FileCheck %s -check-prefix=V9
-;RUN: llc -march=sparc -regalloc=basic < %s | FileCheck %s -check-prefix=V8
+;RUN: llc -march=sparc -show-mc-encoding -regalloc=basic < %s | FileCheck %s -check-prefix=V8
 ;RUN: llc -march=sparc -regalloc=basic -mattr=v9 < %s | FileCheck %s -check-prefix=V9
 ;RUN: llc -march=sparcv9  < %s | FileCheck %s -check-prefix=SPARC64
 
@@ -31,7 +31,7 @@
 define i8* @frameaddr2() nounwind readnone {
 entry:
 ;V8-LABEL: frameaddr2:
-;V8: ta 3
+;V8: ta 3 ! encoding: [0x91,0xd0,0x20,0x03]
 ;V8: ld [%fp+56], {{.+}}
 ;V8: ld [{{.+}}+56], {{.+}}
 ;V8: ld [{{.+}}+56], {{.+}}
Index: llvm/trunk/lib/Target/Sparc/SparcInstrInfo.td
===================================================================
--- llvm/trunk/lib/Target/Sparc/SparcInstrInfo.td
+++ llvm/trunk/lib/Target/Sparc/SparcInstrInfo.td
@@ -421,7 +421,7 @@
     def FLUSHW : F3_1<0b10, 0b101011, (outs), (ins),
                       "flushw",
                       [(flushw)]>, Requires<[HasV9]>;
-  let rd = 0, rs1 = 1, simm13 = 3 in
+  let rd = 8, rs1 = 0, simm13 = 3 in
     def TA3 : F3_2<0b10, 0b111010, (outs), (ins),
                    "ta 3",
                    [(flushw)]>;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D49171.155651.patch
Type: text/x-patch
Size: 1609 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180716/8fd28ad0/attachment.bin>


More information about the llvm-commits mailing list