diff options
author | Tom Stellard <thomas.stellard@amd.com> | 2013-03-08 15:37:09 +0000 |
---|---|---|
committer | Tom Stellard <thomas.stellard@amd.com> | 2013-03-08 15:37:09 +0000 |
commit | 1454cb86be54a8703fca396752be71c50c805b88 (patch) | |
tree | 4db8262b78df8a49e769c1f096ba9d6c948331b4 /test/CodeGen/R600/fcmp-cnde-int-args.ll | |
parent | d41650590669bf561d8f3bcae1204f11354954dc (diff) | |
download | llvm-1454cb86be54a8703fca396752be71c50c805b88.tar.gz llvm-1454cb86be54a8703fca396752be71c50c805b88.tar.bz2 llvm-1454cb86be54a8703fca396752be71c50c805b88.tar.xz |
R600: Improve custom lowering of select_cc
Two changes:
1. Prefer SET* instructions when possible
2. Handle the CND*_INT case with floating-point args
Reviewed-by: Christian König <christian.koenig@amd.com>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@176699 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/R600/fcmp-cnde-int-args.ll')
-rw-r--r-- | test/CodeGen/R600/fcmp-cnde-int-args.ll | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/CodeGen/R600/fcmp-cnde-int-args.ll b/test/CodeGen/R600/fcmp-cnde-int-args.ll index 5c981efa9d..55aba0d72d 100644 --- a/test/CodeGen/R600/fcmp-cnde-int-args.ll +++ b/test/CodeGen/R600/fcmp-cnde-int-args.ll @@ -1,10 +1,10 @@ -;RUN: llc < %s -march=r600 -mcpu=redwood | FileCheck %s +; RUN: llc < %s -march=r600 -mcpu=redwood | FileCheck %s ; This test checks a bug in R600TargetLowering::LowerSELECT_CC where the -; chance to optimize the fcmp + select instructions to CNDE was missed +; chance to optimize the fcmp + select instructions to SET* was missed ; due to the fact that the operands to fcmp and select had different types -;CHECK: CNDE T{{[0-9]+\.[XYZW], T[0-9]+\.[XYZW], literal.x, 0.0, -1}} +; CHECK: SET{{[A-Z]+}}_DX10 define void @test(i32 addrspace(1)* %out, float addrspace(1)* %in) { entry: |