From 1cc41bf63c7ed5c789932cd9e202a2182cbf00e9 Mon Sep 17 00:00:00 2001 From: Matt Arsenault Date: Thu, 10 Oct 2013 18:04:16 +0000 Subject: R600: Fix trunc i64 to i32 on SI git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192375 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/R600/SIInstructions.td | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib') diff --git a/lib/Target/R600/SIInstructions.td b/lib/Target/R600/SIInstructions.td index d9cf1e5c57..c0db7f9c2b 100644 --- a/lib/Target/R600/SIInstructions.td +++ b/lib/Target/R600/SIInstructions.td @@ -851,6 +851,11 @@ def : Pat < (V_CNDMASK_B32_e64 $src0, $src1, $src2) >; +def : Pat < + (i32 (trunc i64:$val)), + (EXTRACT_SUBREG $val, sub0) +>; + //use two V_CNDMASK_B32_e64 instructions for f64 def : Pat < (f64 (select i1:$src2, f64:$src1, f64:$src0)), -- cgit v1.2.3