diff options
| author | Daniel Cederman <cederman@gaisler.com> | 2018-07-17 05:49:33 +0000 |
|---|---|---|
| committer | Daniel Cederman <cederman@gaisler.com> | 2018-07-17 05:49:33 +0000 |
| commit | c812dcc3dbc1ae59c2229dff0e788712852b0096 (patch) | |
| tree | 8c42a8ecc0c322b745cb0758b9d50e545cfaed76 /llvm/test/CodeGen/SPARC | |
| parent | 81d0dbda79f8db7f64dc3c34ac544adac45f358c (diff) | |
| download | bcm5719-llvm-c812dcc3dbc1ae59c2229dff0e788712852b0096.tar.gz bcm5719-llvm-c812dcc3dbc1ae59c2229dff0e788712852b0096.zip | |
[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.
llvm-svn: 337236
Diffstat (limited to 'llvm/test/CodeGen/SPARC')
| -rw-r--r-- | llvm/test/CodeGen/SPARC/trap.ll | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/test/CodeGen/SPARC/trap.ll b/llvm/test/CodeGen/SPARC/trap.ll index c2f66ca6cbd..12ce8485f0a 100644 --- a/llvm/test/CodeGen/SPARC/trap.ll +++ b/llvm/test/CodeGen/SPARC/trap.ll @@ -1,4 +1,4 @@ -; RUN: llc -mtriple=sparc-linux-gnu < %s -show-mc-encoding | FileCheck %s +; RUN: llc -mtriple=sparc-linux-gnu < %s -show-mc-encoding -verify-machineinstrs | FileCheck %s define void @test1() { tail call void @llvm.trap() |

