]> granicus.if.org Git - llvm/commit
[Sparc] Do not depend on icc for ta 1
authorDaniel Cederman <cederman@gaisler.com>
Tue, 17 Jul 2018 05:49:33 +0000 (05:49 +0000)
committerDaniel Cederman <cederman@gaisler.com>
Tue, 17 Jul 2018 05:49:33 +0000 (05:49 +0000)
commit00e3426bc2bc4ae5daa30b0ce8edc2086a1db0cf
tree8ca8483230cf474cc90207a695606a85e3b5ceee
parent7904f0b1e7bdb3f7989e0b1c83408ffa7d2e211a
[Sparc] Do not depend on icc for ta 1

The ta instruction will always trap, regardless of the value
of the integer condition codes. TRAPri is marked as using icc,
so we cannot use a pattern for TRAPri to implement ta 1, as
verify-machineinstrs can complain that icc is not defined.
Instead we implement ta 1 the same way as ta 5.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@337236 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/Sparc/SparcInstrInfo.td
test/CodeGen/SPARC/trap.ll