diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2017-02-25 14:40:33 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2017-02-25 14:40:33 +0000 |
| commit | 9c618dddcd075579cf4f157ba4a03d088c166dab (patch) | |
| tree | 25c9f5ba1aa4fdc4e96faae87aec82f1ad0b0a30 /lib/Target | |
| parent | 5a813558fccf203e1f8733f4c8217a03fd87b430 (diff) | |
Notes
Diffstat (limited to 'lib/Target')
| -rw-r--r-- | lib/Target/AMDGPU/SIInstructions.td | 5 | ||||
| -rw-r--r-- | lib/Target/AMDGPU/VOP1Instructions.td | 6 |
2 files changed, 5 insertions, 6 deletions
diff --git a/lib/Target/AMDGPU/SIInstructions.td b/lib/Target/AMDGPU/SIInstructions.td index b86c041911896..38e31e75ee67d 100644 --- a/lib/Target/AMDGPU/SIInstructions.td +++ b/lib/Target/AMDGPU/SIInstructions.td @@ -997,6 +997,11 @@ def : Pat < >; def : Pat < + (i1 (trunc i16:$a)), + (V_CMP_EQ_U32_e64 (S_AND_B32 (i32 1), $a), (i32 1)) +>; + +def : Pat < (i1 (trunc i64:$a)), (V_CMP_EQ_U32_e64 (S_AND_B32 (i32 1), (i32 (EXTRACT_SUBREG $a, sub0))), (i32 1)) diff --git a/lib/Target/AMDGPU/VOP1Instructions.td b/lib/Target/AMDGPU/VOP1Instructions.td index a15b9ceff2f43..8cae83cd9d1a0 100644 --- a/lib/Target/AMDGPU/VOP1Instructions.td +++ b/lib/Target/AMDGPU/VOP1Instructions.td @@ -607,12 +607,6 @@ def : Pat< (COPY $src) >; -def : Pat< - (i1 (trunc i16:$src)), - (COPY $src) ->; - - def : Pat < (i16 (trunc i64:$src)), (EXTRACT_SUBREG $src, sub0) |
